ITT little programs, or scripts, or any automations you have made to make your daily life easier. Software, hardware all kinds welcome
>made a script to turn on the capslock LED when the CPU temperature hits 50°C to let me know it's heating >tiny C program to listen for UDP packets on a port. Executes the Shell script name it receives it the packets. Consequently, also made an Android application to easily send said packets
I installed Windows so to make it a bit easier to use my pc hardware.
Jace Jackson
Actually it's pretty nice.
>I have a little script that downloads a random XKCD comic and lock my screen with this image. >Useless but cool, I think.
Cooper Morris
I have created bash scripts that i run with a shortcut key to start a pomodoro timer.
Brody Bailey
Raspberry pi with a small color screen and a few sensors showing room temp and humid, desktop's cpu load and free ram (helper program works in Linux, os x - python; Win - C), shows current speed of all outgoing traffic of all device connected to router (openwrt, bmon). If traffic exceeds 100 kB/s - text's bg color changes to yellow; above 500 - red; this quickly grabs eye's attention. Also has 3 selectable timers for 30, 60, 90 min. Shows remaining time and beeps thru small speakers once done. You enable them with small IR remote. The main program on RPi is written in Python.
Blake Morris
>Also has 3 selectable timers for 30, 60, 90 min. Shows remaining time and beeps thru small speakers once done. You enable them with small IR remote.
i think this is the nicest feature, setting up timers is always really annoying in the modern world
Landon Roberts
I spent a couple hundred hours making a screenshot tool specifically geared towards capping threads. It has a layered undo-able image editor with a brush, text tool, layer resizer and layer rotation. Layers are movable and orderable in a virtual dynamic boundary space. You can cap the full screen, current window, or a selection. You can cap new layers right into the editor. You can have as many editors open as you want. There's a hotkey system that can invoke any snip type and action. Hotkeys can be "chorded", so you can required several key sequences in order to trigger the action. Images can be saved to disk, uploaded to a my Amazon S3 image library (gives a public link on upload), or just copied out of the editor. You can also send arbitrary files to the S3 store.
It was just supposed to be a quick project for shitpost support. It turned into a for-fun time sink. Now all my friends use it because apparently other screenshot tools suck. I've never gone public with it because I know of a few security flaws around the S3 store that I'm not comfortable with exposing, but I'm too busy with actual work to spend the time and fix it.
Jacob Morris
nice post a screenshot
Anthony Jones
- a bash script that gets and shows CPU temp and frequency, memory usage, and battery info and calculates battery percentage, battery health (current max capacity vs. design capacity) and remaining time left. Pretty useful.
- a tiny program that calculates PPI, dot size, width and height in mm, total pixel count and aspect ratio based on WxH in pixels and screen size in iches. I don't use it much anymore, but it was breddy useful when I was deep into smartphones
- a C program that calculates RAM latency in nanoseconds based on frequency and CAS latency. It also calculates possible configurations with better or similar performance. Useful when overclocking
- a multitude of simple plugins for LCDSmartie, including converting time in seconds to hh:mm:ss or mm:ss format, interfacing with MSI Afterburner and simple floating point math plugin.
Ryan Murphy
Okay...
Benjamin Morales
Holy shit that looks nice
David Adams
I use a autohotkey script for volume controls through a keyboard macro. Don't have to pay extra money for a keyboard with media keys.
Christian Morales
plz finish or just take out s3 part id suck ur dick.
Ryan Hernandez
I have several embedded devices at home; multiple Raspberry Pi's and an odriod xu4 I work with and am constantly flashing different images.
I developed a final solution to enact a systemd holocaust systemd on my embedded devices. Every new install is a anudah systemd shoah.
so basically a script that automatically checks if the platform is debian or armbian, purges systemd accordingly, and installs sysvinit in its place.
makes my life a whole bunch easier.
Xavier Mitchell
Thanks guys. There's no way I can release it right now, but maybe some day soon. I have another project going for managing media files/playlists and watching them with friends online, and the domain for that project is a subdomain of the screenshot application's home. I'll have to sanitize the screenshot application before I go public with the media sharing site.
Jordan Reyes
I want. Gibs DL link
Joshua Parker
Read the reply chain.
Jayden Edwards
lots of irc spamming scripts with colors
like, lots.
one of them grabs random tweets given a hash tag and dumps them in irc
funny shit
Kayden Foster
...
Samuel Williams
I made, or started, development on an automated wallpaper downloader.
You'd basically go to a site and spell out how you get to one wallpaper and then the program would repeat the process with whatever search terms you wanted
It definitely needs refinement but one day I might release it.
Nicholas Bell
Can't you just use the greenshot image editor? Sorry developer user but it kindof outclasses it in every regard, including censoring options which may be often needed
Daniel Morris
Gibs NOW
Luis Peterson
i resort to this too sometimes, it feels so disgusting though
Colton Russell
Was annoyed with having to switch between windows of the same process without a twm in windows. Came up with an autohotkey script that's pretty handy. Basically just shuffles through open windows. The nice thing is it works no matter where the window is or it's size, so you can have a few tiled in a certain position and flip between them.
Currently use it for Chrome, Explorer, git bash, notepad.
Example:
; Switch between open Chrome windows Pause:: WinActivateBottom, ahk_exe chrome.exe Return
; Win+Pause -> Switch between open Explorer windows #Pause:: WinActivateBottom, ahk_class CabinetWClass Return
Logan Jones
thankfully there's a bot for this on our irc channel
Adrian Richardson
shitty web automation scripts for voting on strawpoll / logging in to my (dorm) router and doing dhcp stuff
Oliver Bennett
I've got a script in my homedir that just runs xscreensaver-command -lock so I can quickly lock my screen via dmenu.
More interestingly, I have a script on a server that takes a bunch of textfiles and cats them together into a blogpage.
Mason Clark
Seems like a cool program
I'm gonna steal that idea and make a program as well.
Thank you.
Jeremiah Davis
mkcd () { mkdir -p $1; cd $1; }
Joseph Gray
Son of a bitch why didn't I think of that.
Joseph Clark
>>tiny C program to listen for UDP packets on a port. Executes the Shell script name it receives it the packets So you made a backdoor on your own system and a huge security risk, congratulations OP.
Anthony Myers
At least now he can write an authentication system.
Ian Taylor
Or, you know, he could have just set up an SSH daemon and use a well-known Android SSH library such as Jsch and had it secure all along.
John Butler
Nice! Seems like a C# application, how about incorporating that feature straight into ShareX?
Camden Campbell
It only executes shell scripts that exist in the program's directory, which I set beforehand. I don't think I'll intentionally create a malicious shell script
Ayden Reed
>It only executes shell scripts that exist in the program's directory, which I set beforehand. And what do these scripts do?
Also, how have you verified that the input string is sanitised so only scripts in the current directory (and not any arbitrary command) can be ran?
What happens if a billion chinese botnet nodes decide to launch the same script over and over again at the same time?
Elijah Howard
github.com/iasatan/Tampermonkey-scripts Here are my tampermonkey script Few for steam 2 for porn(hides videos you don't want to see, it may not work anymore, haven't used them in 4 months) 2 for torrent(searches episodes from pogdesign on piratebay)
Jason Reed
That's amazing
Nathan Ramirez
Well its not that sophisticated at all, it executes anything it receives in the packet. I don't think i need to care much about security since it's supposed to run only it my home network
Ethan Powell
>Well its not that sophisticated at all, it executes anything it receives in the packet. This is a huge red flag, if you ask me.
>I don't think i need to care much about security since it's supposed to run only it my home network What if your neighbour cracks your wifi passphrase?
I just don't understand why you wouldn't just use a SSH library when you're using the Android SDK anyway? It's literally there at a click of a button.
Jason Reed
I was getting annoyed with a writing tick of mine where I wrote the world "thing" a lot where other, more expressive words would fit, so I wrote up a script using someone else's basic keylogger. It runs in the background, capturing (but not saving, of course) all keypresses, and whenever I type any word from a plaintext file saved in the same folder, it plays an extremely loud, sudden and unpleasant sound.
It actually turned out to be way too effective. By the second day, typing in any capacity was starting to make me really anxious, so I stopped using it. Might be good for a prank, though.
Connor Smith
I wrote a program tiny program that changes the last line of the .xinitrc file based on the command line argument. I also added some alias's to my .zshrc so i could start different de/wm's with a two letter command, and it would not be a subprocess.
Owen Gonzalez
I created a startpage to store notes in IndexedDB storage, so it survives a history/cookie wipe.
>tfw when website could upload huge data volumes on your drive that are hard to delete
Bentley Stewart
I was annoyed with media keys on my keyboard so I made a little box with 2 knobs. One controls volume and mutes on push, other changes audio tracks and pauses/resumes on push. Pretty happy with it.
Jacob Hernandez
>knob that changes audio track cute confused anime girl with interrogation mark floating above her head.jpg
Liam Gutierrez
What? You turn it one click right to change forward and left for previous.
Carson Cooper
A script that mounts /boot, removes all old kernels in it, unmerges the corresponding kernel sources, compiles a new kernel, dumps it into /boot and reconfigures GRUB to load the new kernel per default. It goes nicely together with my auto-update script, which calls the kernel script if new kernel sources were installed. I'm gonna rework it soon so it works with EFISTUB.
Lincoln Harris
>Python lol
James Hughes
looks like shit desu
Kayden Long
>cute confused anime girl with interrogation mark floating above her head.jpg
David Williams
AHK is pretty comfy to script in, save for the occasional odd syntaxes. I've written a TTS + soundboard for my discord use, and a battery charging level in huge text for my dad.
Lucas Kelly
>hiding ebony
Grayson Edwards
>save for the occasional odd syntaxes The syntax is a fucking mess. Don't kid yourself.
Hunter Brown
>watching niggers >ever
Cooper Gomez
A script that opens a page of search results from DDG or nyaa because I don't know how to quickly switch between search engines in firefox and it's easier to fire up the browser for a quick find this way. Also because I once used surf and it was a pain typing out whole urls to go to just to search.
Justin Flores
that's the laziest shit i've ever seen
Bravo!
Julian Barnes
You could set the script up to launch surf, of course.
Luke Phillips
That was the original plan. Just have a nice big clean page. Wasn't able to fix the downloads and clipboard though so I just let it be in firefox for now.
Bentley Robinson
Convert VTT subtitles and include them in files. Was used for some youtube downloads back then. Ghetto regex in there.
Christopher Ortiz
For your pc or phone If it's your phone how did you do it Something like Tasker?
Alexander Young
Yeah it's completely C#. I took a look into ShareX and found it's exactly the kind of screenshot tool I was running away from. It's just way too complicated to the point where the main goal of the application is overshadowed by the kitchen sink aspects. When your screenshot tool contains a DNS changer and FTP client you know you've jumped the shark.
The ruler tool is pretty cool shit though.
Benjamin Martin
Out of pure curiousity does anyone have a boss key that hides programs from screen and task/toolbar? As a program, mind sharing?
Jace Long
How'd you get around the hunt for drivers? My favorite part is finding the NIC driver so I have networking to find drivers with.
Kevin Torres
just post it you faggit, it's clearly working well. I promise I won't shit on your for not making your code pretty
Brayden Torres
I mean, the best thing about optional features is that you don't have to use them if you don't want to. Also, ShareX is still very lightweight with all the features.
Henry Brooks
Sick peer pressure. Almost got me. Why do you even want it? It's just a hobby project screenshot tool.
It is far more light than you'd expect with all the stuff bolted on. The optional features really just get in the way though. I can't see myself using it instead of separate dedicated tools. Even with my editor, which is where most of the work went in my screenshot tool, there comes a point in editing where I might say "okay, this is too big a job to do here, it's time to open Gimp". I wouldn't ever put a feature into the tool that isn't used by at least half of my users on a regular basis. I just don't believe in composing absolutely everything into a project. Scope creep is a terrible thing.
Isaiah James
>torrent downloader >have it download shows based on the day it is >send a text when download finishes.
>have it download 720p only >from certain groups.
>pastebin to show me the trending pastes and download them.
>Sup Forums image download using bash, this downloads all images in thread. I havent used this in years, needs updating.
>using rpi model B to control RC car via wifi, made java program for laptop, and made android app.
Jackson Collins
Tell us more about that torrent downloader, from which website it downloads? Is it customizable?
Lincoln Nguyen
I would like a program that blocks all Windoh telemetry packets or at least tells me where they are heading or something
Jayden Phillips
>bash script to monitor acpi output to stop laptop charging above 50% for maximum battery life when in storage
Kayden Smith
...
Kevin Adams
You should charge to 70%. You get a lot more storage time for essentially no drawback in lifespan shortening.
Dominic Johnson
I don't see how the features get in the way, except of course they can make the menus have more items, which may result in difficulties for the user to find what they need; the UI could be better for this, sure.
Personally that isn't a problem for me since I basically never open the interface. Once it's configured I don't really meddle with the menus as I use keyboard shortcuts.
Hunter Gonzalez
>be brainlet >don't understand this at all
K
Jack Taylor
This kind of reasoning is why Microsoft Office is such a clusterfuck and modern browsers are essentially their own operating system.
Christian Martin
wrote a tiny c++ wrapper for redshift that adds toggling functionality so i can turn it on and off with one button #include #include #include
Not him, but Sonarr can be used for pretty much everything he says. Can even have it automatically rename files to Plex format.
Evan Lopez
I wrote a simple c++ program that generates a wallpaper from the album art of what I'm currently scrobbling to last.fm/what I last scrobbled. It's totally useless but looks quite nice
Aaron Nelson
Seconding this, Sonarr is very good at those things. Personally I use it with Kodi, it's great as it can hardlink the files from my torrent folder to tv shows folder, and rename them to the proper Kodi format. Tho on Loonix you'll need Mono to run it Sonarr, which sucks.
Nicholas Price
you make a directory with the command mkdir and you go into a directory with the command cd. This makes a directory and then automatically enters the directory because that's what you do 99% of the time that you made a directory.
example: mkdir /user/folder cd /user/folder *do whatever you were going to do* user's program: mkcd /user/folder *do whatever you were going to do*
Jaxon Long
dude on linux several DE's have widgets/extensions for that
Carson Richardson
bash script to fix resolution at kde startup because xorg STILL sucks balls in 2017: xrandr --newmode "1280x1024_60.00" 108.88 1280 1360 1496 1712 1024 1025 1028 1060 -HSync +Vsync xrandr --addmode DisplayPort-1 "1280x1024_60.00" xrandr --output DisplayPort-1 --mode "1280x1024_60.00" --pos 0x56 --rotate normal --output DisplayPort-0 --off --output DVI-D-0 --off --output HDMI-A-0 --primary --mode "1920x1080" --pos 1280x0 --rotate normal --output HDMI-A-1 --off > arandroutput.log
alias getmp3='youtube-dl -f bestaudio --extract-audio --audio-format mp3'
Matthew Cooper
I keked
Robert Brown
Maximum efficiency.
Blake King
>Small sketch made on Arduino which keeps a HD44780 screen powered on 24/7 saying "you wont have sex today" >It never fails.
Thomas Jackson
Botnet timer
Bentley Nguyen
It was for my Linux Desktop, sorry
Noah Hernandez
yup, but I wanted something fast
>some tool that I tried were written in Python, and were slow as fuck >maybe caching is an idea, dunno
Robert Thomas
>no quotes
Adam Perez
>Has to make his scripts because his OS is too shitty to do what its supposed to
>DIY TV remote controller Made with an Arduino, an infrared LED and a lot of autism
>script to download the hottest nosleep stories into text files >inb4 >>>/reddit/
>PHP script to download specific chapters from mangastream I wrote a bunch of scraping-related scripts but this is the one I use the most.
>small command line xor crypting utility Encrypts all files in a given directory. I honestly have no idea why I still use this, pretty sure xor can be easily cracked.
Joshua Davis
I don't screencap threads, but if I did, your tool is exactly what the dr ordered.
Good god, someone who knows the pain of systemd on an live embedded system that you cannot reboot.
Winners in this thread.
Josiah Sullivan
And if Windows breaks?
Daniel Wood
Windows automatically installs all the necessary drivers and keeps them up to date.
Kayden Kelly
>no NIC driver >can't install necessary drivers because no internet >no internet because can't install the necessary drivers
Caleb Foster
Fake and gay. Last time I had an nic issue was 2002. Every mobo I've purchased worked out the box with windows 10.
Generally, your nic should work with some basic driver in windows. If they didn't design it to work with that, then it's whoever designed the device's fault.
It's like complaining that the lanes on roads are too thin, because the car you bought is wider than the lanes. Who's the real retard here?
Daniel Bailey
this. take out the s3 amazon shit and make $$$ add the cloud shit if your confident with it and make more $$$