Quoted post unavailable.
Ask HN: What's your proudest hack?
101–110 of 414 posts
Re: Ask HN: What's your proudest hack?
#102My proudest hack and the hack I'm most known for both happened at the same company. My proudest (and also maybe least proud at the same time) was writing a BASH script that was able to successfully replicate a complex server environment that had been previously built by contractors for an essential service that we needed to re-deploy, both for growing regions, but also to resolve a possible security issue due to how…
Did you try to recover the corrupted windows partition table first using either Testdisk by CGSecurity or Hiren's BootCD? If it was on a UNIX or Linux file system that sort of thing can be recovered a lot easier thanks to alternate superblocks and the ability to basically copy the partition sectors from another disk that is the same size with the same partitioning thanks to the dd command.
Re: Ask HN: What's your proudest hack?
#1031. Synced all 5 using git-svn into 5 branches
2. Used filter branch to rewrite each into its own folder
3. Handcrafted a single merge commit that combined all 5 branches into one
Re: Ask HN: What's your proudest hack?
#104Re: Ask HN: What's your proudest hack?
#105Re: Ask HN: What's your proudest hack?
#106More recently, replacing `7z.exe` with a PowerShell script that logged input, to get archive passwords for an obfuscated data format. Not technically impressive at all but a few days were saved and lolz were had.
Re: Ask HN: What's your proudest hack?
#107[heavy cream powder]: https://www.amazon.com/Anthonys-Fillers-Preservatives-Friend...
[baby formula dispenser]: https://www.amazon.com/Philips-AVENT-Powder-Formula-Dispense...
Re: Ask HN: What's your proudest hack?
#108When I was in highschool I wrote a Tetris game for the TRS-80. My clever hack was that I could make it twice as fast by keeping the state of the falling shapes in video memory instead of a separate object model. In an early version of this, I failed to completely draw the "cup" the objects were falling into, and one fell straight through the bottom into system memory and crashed the machine.
Re: Ask HN: What's your proudest hack?
#109Apparently, Tetris Friends only seeded their RNG once, and there were only a few hundred possible seeds (perhaps 256? I didn't check). So if you got the same initial seed, you got the exact same pieces for the entire game. Tetris Friends also happened to have a highly competitive global leaderboard, where you tried to clear 40 lines as fast as possible... and I happened to have recently learned how to use AutoHotKey. You see where this is going.
I restarted over and over until I got a good seed, then carefully played through a whole game, copying my inputs into a giant AutoHotKey script. Tetris Friends was a flash game, meaning it could only process so many inputs per second, so I had to insert a short delay between each input. Testing/debugging was a nightmare too, because I had to restart until I found the same seed again! But after a few hours, my script made it all the way through a game, and bam, I was #1 in the world.
Felt real good for about a week, until Tetris Friends purged the leaderboard. :^)
Re: Ask HN: What's your proudest hack?
#110I initial did it to help a friend who wanted to customize and sell bycicle bells. since most printing techniques are made for flat surfaces this creates an interesting challenge. The solution I eventually arrived at involves a pen plotter and a custom fixture. There's actually a article about it here: https://www.evilmadscientist.com/2019/bike-bells-with-axidra...
And by the way, the obvious way to produce them would probably using transparent stickers a heat gun an a coat of varnish but where's the fun in that.