Hacker Newsnew | past | comments | ask | show | jobs | submit | Amorymeltzer's favoriteslogin

Similar oneliner to paste on MacOS terminal and get the eldest line for each file extension:

for ext in $(git ls-files | grep -vE 'node_modules|\.git' | awk -F. '{if (NF>1) print $NF}' | sort -u); do echo -e "\n.$ext:"; git ls-files | grep "\.$ext$" | xargs -I {} git blame -w {} 2>/dev/null | LC_ALL=C sort -t'(' -k2 | head -n1; done


we sell coffee from the terminal

ssh terminal.shop

will do 6 figures in revenue the first year - not bad for a side thing!


In case you are already using my BetterTouchTool app: I have created a little tutorial & example preset here on how to use it for status item management: https://community.folivora.ai/t/bartender-controversy-tutori...

You can add feature requests there, it should be pretty simple to extend BTT to support the remaining required features.

I have also recently been approached by shady companies trying to buy my app (I'd never do that) - maybe they are currently targeting apps that require special permissions?


> - Emacs buffer, window and project management. I wasted so much time in vscode navigating across projects and windows

This. So much. The number of times I have seen people fumbling around with multiple VS Code windows and closing and opening it again in another directory, because the working directory wasn't right and switchting between loads of tabs they opened, overflowing the tab bar ... It isn't even funny any longer.

Another point to that is, that in Emacs I can press `C-x 1` at any time to get everything except the current buffer out of the way, using all the screen estate I want for some buffer, be it a shell or a code buffer.

> - That I don't need to switch out of emacs for git (magit is great), complex file operations (dired), and other things like repl/shell/complex rgreps/etc

Same here. I feel like I get things done in git 3x faster than what I see people do in VS Code or IntelliJ based IDEs. I just know my keys and do it much faster, which leaves me more time for the actually important thing: The commit message. Also being able to copy commit ids and branch names out of the magit version of log (M-x magit-log RET -c b if my favorite) avoids typos and improves my speed. Add to that the fact, that of course Emacs stores last used commands of M-x. Or interactive command input history, which one can cycle through easily.

On occasions, when a refactoring is needed, most of the times I can do it quickly via opening dired, moving the point to the directory I want to replace in and pressing Q. This basically always works, but does not have knowledge about the programming language. On even rarer occasions, I can feel a bit of regret of not configuring my Emacs even more, to support refactoring for Python. But I am sure, if I had to do it more often, I would put my mind to configuring Emacs and would configure it to have better Python support. Probably I can just find a tutorial in 1min of searching for it.

So people can tell me stories about how their IDE is more efficient all day, until they can show me they are up to speed for all the other actions besides refactoring with language understanding, which only happens rarely, I will not be convinced, that it would make me faster.


Less consuming, more creating. Doesn't matter what it is, doesn't matter if it's bad.

I found this thread on StackExchange [1] with an extremely thorough answer. Basically, the numbers don't differ that much. Also, different electrical systems having additional features like GFCI's make it hard to compare.

[1] https://skeptics.stackexchange.com/questions/22572/are-briti...


I found this user management strategy somewhere, and it's been working great for me:

  git config --global --unset user.name
  git config --global --unset user.email
  git config --global --unset user.signingkey

  git config --global user.useConfigOnly true

  git config --global user.<id>.name "<name>"
  git config --global user.<id>.email "<email>"

  git config --global alias.identity '! git config user.name "$(git config user.$1.name)"; git config user.email "$(git config user.$1.email)"; :'
So given that I have created two users, e.g. personal and work I run:

  git identity work
in repos that need the work name/e-mail, and

  git identity personal
in the ones that are private.

A few that come to mind:

Hosting SQLite databases on GitHub Pages or any static file hoster https://news.ycombinator.com/item?id=27016630

How to crawl a quarter billion webpages in 40 hours https://news.ycombinator.com/item?id=4367933

Writing an open source GPU driver without the hardware https://news.ycombinator.com/item?id=30107002

Teleforking a process onto a different computer https://news.ycombinator.com/item?id=22987747

How NAT traversal works https://news.ycombinator.com/item?id=30707711

BPF, XDP, Packet Filters, and UDP https://news.ycombinator.com/item?id=24848391

A viable solution for Python concurrency https://news.ycombinator.com/item?id=28880782

Updating the Go Memory Model https://news.ycombinator.com/item?id=27810459

zig-cc: A drop in replacement for gcc/clang https://news.ycombinator.com/item?id=22679138

Finite state machines as data structure for representing ordered sets and maps https://news.ycombinator.com/item?id=10551280

Time-lock encryption https://news.ycombinator.com/item?id=22061752

My first impressions of Web3 https://news.ycombinator.com/item?id=29845208

How to build large scale end to end encrypted video calls https://news.ycombinator.com/item?id=29570938

Secure value recovery https://news.ycombinator.com/item?id=21838413

How Google code search worked https://news.ycombinator.com/item?id=18582469

Deploying authoritative DNS with Mirage Unikernels https://news.ycombinator.com/item?id=21868589

Playing around with Fuschia OS https://news.ycombinator.com/item?id=23466564

Making tokio scheduler 10x faster https://news.ycombinator.com/item?id=21249708

JVM Anatomy Quarks https://news.ycombinator.com/item?id=22190815

The hunt for a cluster-killer Erlang bug https://news.ycombinator.com/item?id=31746090

Static B Trees https://news.ycombinator.com/item?id=30376140

Files are hard https://news.ycombinator.com/item?id=10725859

Faster JavaScript calls https://news.ycombinator.com/item?id=26143648

Firefox's new compiler https://news.ycombinator.com/item?id=16169236

Abusing Linux's firewall: The hack that allowed us to build Spectrum https://news.ycombinator.com/item?id=16821807

Million packets per second ingress https://news.ycombinator.com/item?id=9726185

Streams: A general purpose data structure for Redis https://news.ycombinator.com/item?id=15384396

Let's build a compiler https://news.ycombinator.com/item?id=20444474

Improving compression with zstandard https://news.ycombinator.com/item?id=18719592

When bloom filters don't bloom https://news.ycombinator.com/item?id=22463979

Critbit trees https://news.ycombinator.com/item?id=6920862

Mobile physical memory security https://news.ycombinator.com/item?id=25505517

How the Linux kernel works https://news.ycombinator.com/item?id=14422605

https://news.ycombinator.com/item?id=11467309 Following a select statement through postgres internals

LMAX https://news.ycombinator.com/item?id=3173993

ELF https://news.ycombinator.com/item?id=17114672

Reading privileged memory with side channels https://news.ycombinator.com/item?id=16065845

How fast are Linux pipes anyway https://news.ycombinator.com/item?id=31592934

Reverse engineering a mysterious UDP stream in my hotel https://news.ycombinator.com/item?id=11744518

io_uring examples https://news.ycombinator.com/item?id=23132549

Clojure design patterns https://news.ycombinator.com/item?id=15771561

Inside the Magic Pocket https://news.ycombinator.com/item?id=11645536

A high performance cache in Go https://news.ycombinator.com/item?id=21023949

Lockfree data structures https://news.ycombinator.com/item?id=7734202

mtime considered harmful https://news.ycombinator.com/item?id=18473744

Bracket colorization https://news.ycombinator.com/item?id=28692470

Linux load averages https://news.ycombinator.com/item?id=14959288

A bump in the wire to make your internet go faster https://news.ycombinator.com/item?id=17721496

Backblaze durability https://news.ycombinator.com/item?id=17550837

H.264 is magic https://news.ycombinator.com/item?id=12871403

Redbean: single file web server https://news.ycombinator.com/item?id=26271117

Gotchas from 2 years with Node https://news.ycombinator.com/item?id=9372303

Counting objects https://news.ycombinator.com/item?id=10259471

Idempotent APIs https://news.ycombinator.com/item?id=13707681

Norvig's auto correct https://news.ycombinator.com/item?id=42587

QuickJS https://news.ycombinator.com/item?id=20411154

...


I'm 53 and work in IT for a 'funky' learning/media company, ranking among the seniors in both age and position.

I have a customised Cornell Notes* Word doc template, and I run off batches of 5-10 sheets to take to meetings and training sessions. My colleagues typically turn up with their tablets, surfaces, laptops, phones and 'multitask', however a few have started to adopt my method - it's been particularly useful for client meetings where I have been able to later confirm sub-points or asides mentioned by customers - sometimes months later. It's also very easy to drill down through Quarterly reviews and link chains of historic comments 'on the fly' - for example, being able to confirm that so-and-so first mentioned something about a similar technical issue on a different system 12 months ago.

My 'Cornell' style has developed an element of mindmapping on the pages, which makes it easy to track conversations or sections of meetings that break off into side discussions/brainstorming.

The biggest benefit is that the structure of all notes is consistent, so not only can I find things very quickly, but others can interpret them too - this is a particularly powerful way to allow teams to share, compare and understand someone else's notes, even months after the meeting or training took place.

Edit: I also believe it looks very professional in customer meetings when everyone from the same business is taking notes in a similar way, using identical stationery.

I've been working this way since the mid 1990s and find it beats all forms of tech.

https://en.wikipedia.org/wiki/Cornell_Notes

http://lsc.cornell.edu/notes.html


this is a great anectdote, but the reason i am replying to your comment is because of your user name

i am a huge fan of the turn of the century dancer isadora duncan and her lover who she first had a child with, the theatre set design theorist, edward gordon craig who she affectionately called endymion

a complete aside, but if you have, or anyone reading this has, yet to read duncan's autobiography 'my life' i highly recommend it to anyone and everyone

she is a brilliant writer, lived an eccentric life, and she was and her writing is imbued with a mad passion for expression and both life's hardships and joys


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: