ITT little programs, or scripts, or any automations you have made to make your daily life easier. Software...

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

Other urls found in this thread:

github.com/iasatan/Tampermonkey-scripts
youtube.com/watch?v=6LqTcaoXATc
pingfrommorocco.blogspot.com/2017/08/re-adjusting-out-of-sync-subtitles.html
twitter.com/SFWRedditImages

I installed Windows so to make it a bit easier to use my pc hardware.

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.

I have created bash scripts that i run with a shortcut key to start a pomodoro timer.

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.

>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

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.

nice
post a screenshot

- 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.

Okay...

Holy shit that looks nice

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.

plz finish or just take out s3 part id suck ur dick.

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.

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.

I want. Gibs DL link

Read the reply chain.

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

...

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.

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

Gibs NOW

i resort to this too sometimes, it feels so disgusting though

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

thankfully there's a bot for this on our irc channel

shitty web automation scripts for voting on strawpoll / logging in to my (dorm) router and doing dhcp stuff

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.

Seems like a cool program

I'm gonna steal that idea and make a program as well.

Thank you.

mkcd () {
mkdir -p $1;
cd $1;
}

Son of a bitch why didn't I think of that.

>>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.

At least now he can write an authentication system.

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.

Nice! Seems like a C# application, how about incorporating that feature straight into ShareX?

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

>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?

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)

That's amazing

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

>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.

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.

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.

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

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.

>knob that changes audio track
cute confused anime girl with interrogation mark floating above her head.jpg

What? You turn it one click right to change forward and left for previous.

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.

>Python
lol

looks like shit desu

>cute confused anime girl with interrogation mark floating above her head.jpg

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.

>hiding ebony

>save for the occasional odd syntaxes
The syntax is a fucking mess. Don't kid yourself.

>watching niggers
>ever

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.

that's the laziest shit i've ever seen

Bravo!

You could set the script up to launch surf, of course.

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.

Convert VTT subtitles and include them in files. Was used for some youtube downloads back then. Ghetto regex in there.

For your pc or phone
If it's your phone how did you do it
Something like Tasker?

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.

Out of pure curiousity does anyone have a boss key that hides programs from screen and task/toolbar? As a program, mind sharing?

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.

just post it you faggit, it's clearly working well. I promise I won't shit on your for not making your code pretty

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.

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.

>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.

Tell us more about that torrent downloader, from which website it downloads? Is it customizable?

I would like a program that blocks all Windoh telemetry packets or at least tells me where they are heading or something

>bash script to monitor acpi output to stop laptop charging above 50% for maximum battery life when in storage

...

You should charge to 70%. You get a lot more storage time for essentially no drawback in lifespan shortening.

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.

>be brainlet
>don't understand this at all

K

This kind of reasoning is why Microsoft Office is such a clusterfuck and modern browsers are essentially their own operating system.

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

//argv[1]: night color: 3500
//argv[0]: day color: 6500
int main(int argc, char* argv[]){
std::string to_write;
std::string cmd = "redshift -O ";
std::string line;
int n = 0;
std::ifstream ifs(".rs_state.state");
std::getline(ifs, line);
ifs.close();
if(line == "0"){
cmd += argv[1];//strcat(cmd, argv[1]);
to_write = "1";
}
//else strcat(cmd, argv[2]);
else{
cmd += argv[2];
to_write = "0";
}
system(cmd.c_str());
std::ofstream ofs(".rs_state.state");
ofs

Not him, but Sonarr can be used for pretty much everything he says. Can even have it automatically rename files to Plex format.

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

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.

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*

dude on linux several DE's have widgets/extensions for that

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'

I keked

Maximum efficiency.

>Small sketch made on Arduino which keeps a HD44780 screen powered on 24/7 saying "you wont have sex today"
>It never fails.

Botnet timer

It was for my Linux Desktop, sorry

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

>no quotes

>Has to make his scripts because his OS is too shitty to do what its supposed to

Just linux things

youtube.com/watch?v=6LqTcaoXATc

Please don't spoonfeed the summertrash

So it's basically gimp with inbuilt botnet? Why do so many people want it lmao.

I made a bunch of these throughout the years.

>D program to resync subtitles
Literally just wrote about it : pingfrommorocco.blogspot.com/2017/08/re-adjusting-out-of-sync-subtitles.html

>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.

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.

And if Windows breaks?

Windows automatically installs all the necessary drivers and keeps them up to date.

>no NIC driver
>can't install necessary drivers because no internet
>no internet because can't install the necessary drivers

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?

this. take out the s3 amazon shit and make $$$
add the cloud shit if your confident with it and make more $$$