Email or username:

Password:

Forgot your password?
981 posts total
Darius Kazemi

When you push a branch to Github, if that branch has 1 commit and you make a pull request, the title of the PR becomes the short description of the commit, and the body becomes the long description of the commit. I like this a lot.

Is there a way to get Github to pre-populate a new PR with all the commit descriptions in a branch with multiple commits? Right now I have to copy/paste all the commit descriptions into the PR text body manually.

Jon Dubovsky

@darius This doesn't directly help you, but in case it helps a little: I have a script in my ~/bin that contains:

git log `git merge-base --fork-point master`..HEAD --format="format:%s%n%b"

which just prints all commit messages for the current branch. I can run it as:
glogbranch | xclip
or
glogbranch | clip (on cygwin)
to dump it into the clipboard for pastin'.

Show previous comments
American Typewriter

@darius it turns out this project is, for once, "dead".

Kit Rhett Aultman

@darius People wonder why I'm exceptionally cranky and leery of the dev ecosystems surrounding newer languages. Well, there you go right there. That's why.

✨phred🧙🏼‍♂️

@darius I felt a great disturbance in the force, as if 19 million CI builds cried out in error

Show previous comments
American Typewriter

@darius

"did you mean python3? regardless, no results."

Григорий Клюшников

From the creators of "just please give me a self-contained binary that I can run, and no, I don't want any of its 50 dependencies".

Darius Kazemi

went to install python on ubuntu and was punked by my former self

Darius Kazemi

Today I learned about "ctrl+q". This command is known as "parking" and what it does is takes the command you are typing, stashes it elsewhere and clears your command line, then after you execute your next command, retrieves it and fills your prompt.

So for example if I'm typing a git command and realized I need to `git diff` first, I can ctrl+q to "park" the command, type the diff, and then immediately get back to my original parked command

Show previous comments
D

@darius Ha, a git stash for your shell. That's great!

external quantum efficiency

@darius even better, the stash is a *stack*, you can push a bunch of commands onto it and they'll get popped back out one at a time. There's also a "swap top two items on the cmd stack" key that I can never remember.

Darius Kazemi

None of these garlic shoots were here a few days ago. I love gardening

Darius Kazemi

Something I learned in my ~3rd year of using git that has saved my ass many times: `git commit -am [commit message]` should be avoided. You inevitably end up auto-adding files you shouldn't, and the CLI encourages short commit messages.

Significantly better to do `git commit -v -a`. This pulls up your default editor and shows you the diff of the changes you are about to commit. You can see if any unwanted files/changes are about to be committed, and easily enter a verbose description.

Show previous comments
Adam Simpson

@darius great tip! I’m personally a fan of splitting adding and committing into two steps:
1. git add -p
2. git commit

Your friendly 'net denizen

@darius Well, dang, it's probably... [counting on fingers] over four years since I started using git, and now you have just taught me about commit's -v flag! Awesome. Most of the time I commit something, I have a 'git diff --staged' running in an alternate tmux pane. I'll have to try this out.

jim

@darius I used this for the first time today and it seems nice

Darius Kazemi

It is not fair that writing unit tests also forces me to write better-architected React components. I just want to write them perfectly from the start :(

Courtney Stanton

@darius only Rhianna can write perfect React components

Darius Kazemi

who called it civil legal liability incurred by a retail store instead of a "shop tortage"

Darius Kazemi

Since there's no "read in Remarkable" add-on for Firefox, I now read longform articles from the web by using the "ePub creator" add-on to save an article as a .epub file and then upload it to an "articles to read" folder on my tablet.

addons.mozilla.org/en-US/firef

Show previous comments
Dan Burzo

@darius may i also shamelessly suggest percollate? It's a CLI program rather than a browser add-on, but can produce a single EPUB / PDF out of a bunch of articles.

github.com/danburzo/percollate

Ed Summers

@darius do you use anything fancy for the upload? I'm on Ubuntu so I'm looking around for something to replace the win/mac apps.

JauntyWunderKind

@darius definitely still using my old Kobo Aura HD a lot more than expected, now that I have the reMarkable2. because the Aura HD has Pocket integration.

definitely some day want a more DIY, in my control solution. but for now, so easy to get article on the Kobo.

Darius Kazemi

That Was Hen,
This Is Cow
(our chicken sandwich
but with a burger patty
instead of chicken)

Darius Kazemi

Today I learned that Linux (or at least certainly Ubuntu) will enable power saving mode on a wifi device by default. This resulted in me getting ~300ms pings to my machine on my LAN and very laggy ssh sessions. You can turn it off permanently as described here (or temporarily as described in the question post):

unix.stackexchange.com/questio

Alex Garnett

@darius this was always my go-to for sane power management on linux that neither killed my battery or my performance: wiki.archlinux.org/index.php/p

Darius Kazemi

Paracelsus on the satyrion orchid root:

"[I]s it not formed like the male privy parts? No one can deny this." (Selected Writings, early 16th century)

Darius Kazemi

the "Please don't make me vote for Joe Biden" tiktok but it's "Please don't make me ever use Docker"

tiktok.com/@userhewidj6ya1/vid

(I'm sure docker is fine it's just a big complicated black box abstraction on top of black box abstractions and sometimes it does things like punch through my firewall without telling me)

tim 🍓

@darius i would pay five dollars for a docker that i didn't have to think about

Defund cops, fund social work

@darius a few tips if you find yourself in that situation: if you are looking for something compatible with a little less of the black-boxness, you can use podman. With either you can use --network=host, --network=none, or --network=ns:/var/lib/ns/your-own-ns to prevent network shenanigans. Or you could do the equivalent of "bare metal" and use crun directly.

Darius Kazemi

Yesterday I learned about Bookcision, which is a bookmarklet that can extract all your Kindle notes into plain text files. It's not perfect (I wish they offered some configuration, and it relies on Flash for clipboard functionality) but it does what it claims to do!

readwise.io/bookcision

Alexander Cobleigh

@darius see also: kindle-to-md (my kindle to markdown python script!)
github.com/cblgh/kindle-to-md

it munches a kindle's clippings file and poops out a few markdown files indexing the highlights according to authors / books :3

Darius Kazemi

I recently started working as a frontend engineer at Meedan! I work with an international team to build software that helps fact-checkers around the globe do their work more efficiently and accurately. I like their (our?!) approach to the software, which is that it's primarily about coordinating the labor of human verification rather than the software itself doing verification on its own.

meedan.com

Darius Kazemi

Messing around in Koala sampler with the intro to Rosinha de Valença's "Summertime" (source: youtu.be/vzpArFXi9uI). All the percussion is manipulated beatboxing

FiXato

@darius how about a dreamy james blunt with a blunt? ;)

Go Up