Live data from Hacker News

Ask HN: Tools you have made for yourself?

news.ycombinator.com

101–110 of 458 posts

Re: Ask HN: Tools you have made for yourself?

#103
A bunch of shell scripts I've written over the years are available from https://git.marcofontani.it/mfontani/scripts

Very useful ones:

- h, to take the first line of output and output it as is, then running the command that got passed. Example: ps faxuww | h grep foo to show the "ps" first line (the header) then running "grep" on the rest

- evenodd, to colorize the background of lines of text so it's easier to see which start of text corresponds to which end of text

- time-rollup, to time the time it takes to run a given command and provide percentage-based statistics on the execution

- a wrapper around "jq" to make it DWIM w/regards to gzipped, bzipped, and zstd-compressed files

I've also put some full-fledged binaries on github:

- https://github.com/mfontani/prettycrontab which is a crontab pretty-printer which parses a possibly specially commented crontab to give you an overview of what's coming up next

- https://github.com/mfontani/tstdin to timestamp your stdin, and provide when the line was received, how long it was since the start of the command, and how long it was since the last line was received. Useful to add at the end of a pipe to both log and perform analysis on the output and time it took to do stuff

- https://github.com/mfontani/rofixec to "sorta template" a rofi (a X11 runner) runner so it picks commands from a given list (provided as yaml or json configuration) and executes the picked item in a background job

- https://github.com/mfontani/git-recent which helps you pick the most recent branches you've worked on, very useful when paired with fzf for picking

- https://github.com/mfontani/los-opinionated-git-tools instead contains a ton of useful little git-related scripts, from one which DWIMs the master/main/blead branch name to one which helps you reauthor the last commit, to one (git-rr) which helps you perform a git rebase with context info about the commits you're rebasing: which files they touched, etc - to make it easier to fixup together commits which touched the same file... which is an operation I do so often I've created a "git-fixup" script, which automates fixing up the currently committed file to the last commit which touched that file in the branch

Re: Ask HN: Tools you have made for yourself?

#104
post #85

I made a handful of ruby scripts to automate exporting subscription transaction data for my SaaS from Stripe, piping it into my accounting tool and reporting to the authorities. There's a script to validate that all paying customers are assigned a "VAT zone" (same country as me, EU or "rest of the world") and help me assign one if they don't (it's a command line tool that provides links to their email domain and Stri…

You may have already seen this, but Stripe is now offering “Stripe Tax” as a beta and it might be up your alley.

Re: Ask HN: Tools you have made for yourself?

#105
A long time ago, before Spotify had support for multiple devices where one could act as a remote and control the other, I wrote a tool called Shpotify: https://github.com/hnarayanan/shpotify . It is a simple Bash/AppleScript.

The primary usecase for me was to SSH tunnel into a media centre Mac in my living room and control music on Spotify. I released it on GitHub and it has grown a lot in popularity amongst people who like to do a lot of their computing in the shell.

Re: Ask HN: Tools you have made for yourself?

#108
post #95
post #63

My IT guys at work somehow keep disabling the show hidden files and folders feature in windows 10. So I wrote a program that checks every 5minutes and turns it back on lol

Your script could send your IT guys an email too, that might eventually fix the source of the problem…

Oh I have. It's a standard policy for everyone in my organization

I don't work exclusively with programmers and it's a rather large bearucratic nightmare

Try not to infer more than what is presented please.

Re: Ask HN: Tools you have made for yourself?

#109

I have a small YT channel [1] and I used to spend 30-40 mins recording and then 2-4 hrs editing to get a final 10-15 min video. Then I fully scripted my video editing using Python+MoviePy [2]. The time savings are sweet. I just feed it my raw video and get the finished video a few minutes later. It cuts out all the dead air as well as the parts I don't want (which I indicate in-video). In general scripting video edit…

This is very cool!

Re: Ask HN: Tools you have made for yourself?

#110

A long time ago, before Spotify had support for multiple devices where one could act as a remote and control the other, I wrote a tool called Shpotify: https://github.com/hnarayanan/shpotify . It is a simple Bash/AppleScript. The primary usecase for me was to SSH tunnel into a media centre Mac in my living room and control music on Spotify. I released it on GitHub and it has grown a lot in popularity amongst people w…

I use Shpotify to shuffle and play a playlist of eurotrash/techno during especially long builds. Pretty nifty thing you made!
Post reply on HN