HNHacker News
TopNewBestAskShowJobs

laksdjf

24 karma · joined February 22, 2022

submissionscomments
laksdjf··on I found a useful Git one liner buried in leaked CIA developer docs
I have the same issue. Changes get pushed to gerrit and rebased on the server. This is what I have, though not perfected yet.

  prunable = "!f() { \
  : git log ; \
  target=\"$1\"; \
  [ -z \"$target\" ] && target=$(git for-each-ref --format=\"%(refname:short)\" --count=1 refs/remotes/m/); \
  if [ -z \"$target\" ]; then echo \"No remote branches found in refs/remotes/m/\"; return 1; fi; \
  echo \"# git branch --merged shows merged if same commit ID only\" ;\
  echo \"# if rebased, git cherry can show branch HEAD is merged\"  ;\
  echo \"# git log grep will check latest commit subject only.  if amended, this status won't be accurate\" ;\
  echo \"# Comparing against $target...\"; \
  echo \"# git branch --merged:\"; \
  git branch --merged $target  ;\
  echo \" ,- git cherry\" ; \
  echo \" |  ,- git log grep latest message\"; \
  for branch in $(git for-each-ref --format='%(refname:short)' refs/heads/); do \
   if git cherry \"$target\" \"$branch\" | tail -n 1 | grep -q \"^-\"; then \
    cr=""; \
   else \
    cr=""; \
   fi ; \
   c=$(git rev-parse --short $branch) ; \
   subject=$(git log -1 --format=%s \"$branch\" | sed 's/[][(){}.^$\*+?|\\/]/\\\\&/g') ; \
   if git log --grep=\"^$subject$\" --oneline \"$target\" | grep -q .; then \
    printf \"$cr  $c %-20s $subject\\n\"  $branch; \
   else \
    printf \"$cr  \\033[0;33m$c \\033[0;32m%-20s\\033[0m $subject\\n\"  $branch; \
   fi; \
  done; \
  }; f"
(some emojis missing in above. see gist) https://gist.github.com/lawm/8087252b4372759b2fe3b4052bf7e45...

It prints the results of 3 methods:

1. git branch --merged

2. git cherry

3. grep upstream git log for a commit with the same commit subject

Has some caveats, like if upstream's commit was amended or the actual code change is different, it can have a false positive, or if there are multiple commits on your local branch, only the top commit is checked

laksdjf··on Ask HN: How often do you restart your computer?
desktop pc. shutdown every night
laksdjf··on Latch Bio: “We work six days a week”
that's for employers with 15 or more employees
laksdjf··on WiPhone: An Open Source, modular VoIP phone for calls over WiFi
Took me some time to figure out how this works. The webpage is mostly about the hardware.

Here are some old screenshots (2018). You basically enter your own SIP account to call

https://www.wiphone.io/blog/2018-08-17_-_GUI_Screenshots.htm...

laksdjf··on Ask HN: PayPal dismissed my claim, saying I didn't provide evidence (yet I did)
Your post is confusing.

It sounds like PayPal is asking you to prove you did not receive the cloud credits.

But what you should do is say you did not purchase cloud credits.

There is a difference between an unauthorized charge and goods not received.

laksdjf··on Ask HN: I want a modern 2-way pager with clamshell keyboard. Does this exist?
not clamshell, satellite texting device:

https://www.amazon.com/Bluetooth-Protection-Globalstar-Subsc...

maybe you need to build your own device from a 4g module, arduino, etc.

laksdjf··on Tax Advantaged Accounts
Having all the info summarized in one page is useful.

> IRAs do not allow access until minimum age 59.5

For a Roth IRA, you can withdraw the contributions, but not the earnings, at any time. For example, if you contribute $5k that gains $100 in interest, you can withdraw the $5k without penalty. If you withdraw the $100, it'll be taxed and penalized.

One source:

> You can withdraw contributions you made to your Roth IRA anytime, tax- and penalty-free. However, you may have to pay taxes and penalties on earnings in your Roth IRA.

https://www.schwab.com/ira/roth-ira/withdrawal-rules