Live data from Hacker News

Ask HN: Have you created programs for only your personal use?

news.ycombinator.com

621–630 of 671 posts

Re: Ask HN: Have you created programs for only your personal use?

#621

Earlier quoted context omitted.

I thought everyone just searches for their exact needed pattern on SO

I just keep a "cook book" of common commands I've gathered from SO so I don't need to search each time to refresh my memory.

Have you tried

curl cht.sh/ffmpeg

Re: Ask HN: Have you created programs for only your personal use?

#622
I created a no-frills guest list management web app for social get togethers. You rsvp via sms and event hosts can broadcast any updates/reminders as needed. I got a little “dissatisfied” seeing group chats light up with “+1!” when plans were shared. Would be cool to enhance it and make it a business but [excuses here].

Here’s an example event: https://addyourself.to/it/c047e279-f5b4-4de8-9456-3fe71a77aa...

Re: Ask HN: Have you created programs for only your personal use?

#623
post #172

Earlier quoted context omitted.

>- Programs to actually solve various types of puzzles all on their own (I've written over 70 of these in the last 10+ years!) Cool, are these open source?

No, they're not in any public repo or anything. Besides, if you solve puzzles using a solver you didn't write yourself, it's cheating. :-)

Can you at least share a list of the puzzles? :)

Re: Ask HN: Have you created programs for only your personal use?

#624
post #561

Earlier quoted context omitted.

Sure! It is very rudimentary and some values are still hardcoded, but I could do bit of clean-up and then upload it. EDIT: Here it is – https://github.com/flobosg/journalert

Thanks! On the fence about whether to use as an excuse to try something small in python for the second time in my life... or just steal the idea and pretty much copy it line by line into something my non-programmer mind will find easier (php). Though maybe it'll be so simple to run and not need future tweaking that it won't even force me into learning by keeping it in python. Though also, I was hoping for the interes…

The sources are not that special, but I will post them here anyway. They lean towards biochemistry, bioinformatics and structural biology:

  feeds = ("http://feeds.nature.com/nbt/rss/current",
           "http://feeds.nature.com/nchembio/rss/current",
           "http://feeds.nature.com/nsmb/rss/current",
           "http://feeds2.feedburner.com/plosbiology/NewArticles",
           "http://feeds.plos.org/ploscompbiol/NewArticles",
           "http://feeds.plos.org/plosgenetics/NewArticles",
           "https://www.frontiersin.org/journals/bioinformatics/rss",
           "https://www.frontiersin.org/journals/molecular-biosciences/rss",
           "https://www.nature.com/subjects/computational-biology-and-bioinformatics.rss",
           "http://www.nature.com/subjects/protein-design.rss",
           "http://www.nature.com/subjects/protein-folding.rss",
           "https://www.nature.com/subjects/structural-biology.rss",
           "http://online.liebertpub.com/action/showFeed?mi=cjwv&ai=su&jc=CMB&type=etoc&feed=rss",
           "https://onlinelibrary.wiley.com/action/showFeed?jc=1469896x&type=etoc&feed=rss",
           "https://onlinelibrary.wiley.com/action/showFeed?jc=10970134&type=etoc&feed=rss",
           "https://onlinelibrary.wiley.com/action/showFeed?jc=15585646&type=etoc&feed=rss",
           "https://science.sciencemag.org/rss/current.xml")
  
  no_pubdate = ("http://rss.sciencedirect.com/publication/science/09581669",
                "http://rss.sciencedirect.com/publication/science/0959440X",
                "http://rss.sciencedirect.com/publication/science/13675931")
Most academic journals have RSS feeds, so it should be easier to find ones that fit your interests.

Re: Ask HN: Have you created programs for only your personal use?

#625
post #613

To name a few: * A script that emails me every day a list of new articles published by a selection of academic journals. Using an RSS reader for this turned out to be too messy. * A script that generates Spotify playlists based on my liked songs, optionally according to some criteria. The playlists can be sorted according to specific song features (higher to lower energy, for example). * A zettelkasten engine, includ…

Did you share 2?

No, but I could share it as well. That one is a mess right now, though. It needs a lot of refactoring to make it readable. Let me see what I can do.

It uses spotipy (https://github.com/plamere/spotipy) to fetch my liked songs and generate the recommendations.

Re: Ask HN: Have you created programs for only your personal use?

#626
post #559

Earlier quoted context omitted.

* A replacement front-end for "tar" and various compressors Could you elaborate on this? I feel like this is something that could save people hours of time. I'm so incredibly sick of the various decompression flags and tools, (de)compressing something on the commandline should be as easy as it is with a GUI.

If you're using GNU tar, there are four short options to specify compression/decompression: -Z for compress, -z for gzip, -j for bzip2 and -J for xz. Using long options, you can specify --compress, --gzip, --bzip2, --xz for the same, or even --lzip, --lzma, --lzop or --zstd for others.

That's exactly why people hate tar/UNIX generally. Tons of parameters that don't EVEN CLOSELY represent their purpose. For example: -j -J if noone told me, I'd assume they were "join" or "jump", or something. PS: zcvf zxfv, and, - surprise, surprise! - by default tar deletes source archive!

Re: Ask HN: Have you created programs for only your personal use?

#627
post #269

Earlier quoted context omitted.

I posted some advice in a sibling thread, https://news.ycombinator.com/item?id=31021503 >, that applies here as well: > Please don't use $RANDOM or $((RANDOM)) or standard `shuf` for password generation. These RNGs are not cryptographically secure. Use input from /dev/urandom instead.

You can do this with "shuf --random-source=/dev/urandom". The same with gshuf. I use an alias to add this switch by default.

When using shuf for cryptographic purposes, I'd first check if it advertises as being able to be a secure cryptographic token generator when provided with a secure random source. It might very well use modulo operations, for example.

Re: Ask HN: Have you created programs for only your personal use?

#628
post #259

Earlier quoted context omitted.

I always find those annoying to copy (we use a lot of shared credentials, like when the customer gives us 3 accounts with different permission levels to pentest an application with) and it also simplifies the command to not have to specify all those symbols. You can also avoid the whole `fold` thing by just telling `head` to give you a certain number of -c instead of a certain number of -n. (Then again, you were prop…

Using head -c 16 will show an ugly '%' at the string end when not piped.

Right, I forget that it's not the default to print a \n as the first character of your PS1. Doesn't make sense to me that this isn't the default, as there are quite a few commands that might not end with a newline and then it messes up the prompt position, and it doesn't impact backwards compatibility to add it now.

Re: Ask HN: Have you created programs for only your personal use?

#629

Lots of small little scripts lying around in bin/, some of them for extracting information or downloading stuff from certain websites, some for small admin tasks. Possibly the most useful for others is a small wrapper around pdftk that splits a PDF file into smaller ones based on the "bookmarks" (the chapter annotations that many PDF readers show as outlines in a side bar).

> Possibly the most useful for others is a small wrapper around pdftk that splits a PDF file into smaller ones based on the "bookmarks" (the chapter annotations that many PDF readers show as outlines in a side bar). I'm interested in this if you are willing to share.

Sure, see https://gist.github.com/moritz/ea14aa095b3bd2e72a5667421808b...

Re: Ask HN: Have you created programs for only your personal use?

#630
yup, all the time. A simple scripts to make git branches fuzzy searchable, a script to process csv bank statements from my bank and categorize them. todo list, alias management, ELO graphs for Age of Empires II: DE, sublime text plugin to combine csv with textmate snippets, etc. I was submitting a couple just yesterday actually.

A cli todo list in 40 lines of bash https://news.ycombinator.com/item?id=31034532

Creating aliases from bash history with bash https://news.ycombinator.com/item?id=31034185

Post reply on HN