HNHacker News
TopNewBestAskShowJobs

gaving

272 karma · joined June 18, 2011

[ my public key: https://keybase.io/gaving; my proof: https://keybase.io/gaving/sigs/sXBrlhmAqNe63KrqrL2l1lO0emvtoMSof_C5XQ3LiFM ]
submissionscomments
gaving··on Ask HN: What are your best shell scripts that you use?
Pretty cool with the editor interaction.

Also worth bearing in mind most shells can do this sort of thing easily enough too.

The example from your video with zsh's zmv (bundled: https://github.com/zsh-users/zsh/blob/master/Functions/Misc/... )

  > touch btn_google_{signin,signup}_dark_normal_web{,@2x}.png # create files
  > ls -l
  .rw-r--r-- 0 gaving 31 Dec 10:34 btn_google_signin_dark_normal_web.png
  .rw-r--r-- 0 gaving 31 Dec 10:34 btn_google_signin_dark_normal_web@2x.png
  .rw-r--r-- 0 gaving 31 Dec 10:34 btn_google_signup_dark_normal_web.png
  .rw-r--r-- 0 gaving 31 Dec 10:34 btn_google_signup_dark_normal_web@2x.png

  > zmv -n -W btn_*_sign*_dark_normal_web* *_sign_** # dry run
  mv -- btn_google_signin_dark_normal_web.png google_sign_in.png
  mv -- btn_google_signin_dark_normal_web@2x.png google_sign_in@2x.png
  mv -- btn_google_signup_dark_normal_web.png google_sign_up.png
  mv -- btn_google_signup_dark_normal_web@2x.png google_sign_up@2x.png

  > zmv -W btn_*_sign*_dark_normal_web* *_sign_** # change files
  > ls -l
  .rw-r--r-- 0 gaving 31 Dec 10:34 google_sign_in.png
  .rw-r--r-- 0 gaving 31 Dec 10:34 google_sign_in@2x.png
  .rw-r--r-- 0 gaving 31 Dec 10:34 google_sign_up.png
  .rw-r--r-- 0 gaving 31 Dec 10:34 google_sign_up@2x.png
gaving··on HappyOrNot terminals look simple, but the information they gather is revelatory
Interesting to see an article about this, I knocked together a React app the other month for my company based off questions from rands famous "Shields Down" https://medium.com/the-blueprint/shields-down-c291f015618f using this method.

https://github.com/gaving/happy-or-not

Never got around to analyzing the data, too scared.

gaving··on Ask HN: How secure is the encryption offered by OS X's Disk Utility?
Nothing to hide; nothing to fear, right?
gaving··on Ask HN: What's your working day like?
I'd certainly try it out for a day or two a week, backpack / jersey pockets for stuff.. easier if you have a locker or showers at your work. Hopefully you wouldn't arrive too sweaty after 3 miles which should take you about ~15 minutesish.

Win-win though, exercise and if you get in to it less fuel costs. Could easily clock up 30 miles a week and extend your route on nice days.. no brainer!

gaving··on Ask HN: What's your working day like?
"5 minute drive"? Buy a bike and chuck out 0600-0700!
gaving··on Disassembling Sublime Text
not for much longer https://www.youtube.com/watch?v=rzclz1seo0g
gaving··on Shopify is processing over $260k per minute right now
Neat D3 based globe component, don't suppose the source is anywhere?
gaving··on [dead]
Aren't most people using neovim now?
gaving··on Electron 1.0 is here
If you don't have to support win32 platforms, I'd say go with Electron.

Other than that, features pretty similar.

gaving··on What's new in NW.js v0.13
Announcement: http://nwjs.io/blog/v0.13.0/
gaving··on Neovim public release 0.1.0
Congrats to the team, I'm dying to switch myself but closely watching Windows support since it's unfortunately my primary work platform.
gaving··on Using htop to generate a live website background
Nice. Always meant to try and do something similar myself using https://github.com/joewalnes/websocketd
gaving··on Show HN: Australia Quiz (Sound)
Weekend(ish) project to play with React.

https://github.com/gaving/terra

Related:- https://news.ycombinator.com/item?id=7178358

gaving··on Show HN: First Clojure project
Rather than a hello world, a GUI to show users on a GitLab instance.
gaving··on Great Quotes
I'm prone to indecision, and try to remember this one at all times:-

"He who deliberates fully before taking a step will spend his entire life on one leg."

- Chinese Proverb

gaving··on Node.js in Flame Graphs
not exactly highly endorsed https://twitter.com/tjholowaychuk/status/382084838179614721
gaving··on A look at the 2014 Mac mini
Even more hilarious is the sounds of these "tamper proof" screws on the bottom. I mean, why do they care so much?
gaving··on Commander Keen source code released
http://github.com/keendreams/keen/blob/master/kd_main.c#L279

God, so wish I'd known this at the time.

gaving··on Practical Tmux
Woah. Just tried prefix-alt-[n], totally awesome.

Thanks!

gaving··on Neovim's Next Feature Poll
Loving the progress of Neovim so far, even better that notable plugin authors (https://github.com/neovim/neovim/issues/622#issuecomment-415...) are getting involved.
gaving··on Please fix: Unknown or expired link.
I'm not sure anybody particularly cares why it is happening, just that it is happening.
gaving··on Why vacation at tech companies should be mandatory
To be honest, it's hard to understand why US tech workers put up with a lot of things.
gaving··on Email (let's drop the hyphen) (2003)
"I have a wonderful secretary who looks at the incoming mail and separates out anything that she knows I've been looking forward to seeing urgently."

Ding ding ding.

gaving··on Show HN: United States Quiz (Sound)
Weekend(y) project to teach myself some Sails.js.

https://github.com/gaving/murica

gaving··on Unix Command Lines and Relations
The broken back button behaviour is a nice touch, too.
gaving··on Teleportation on the command line
lighter (non python) alternative to autojump https://github.com/rupa/z
gaving··on Never Going Back - A Week of Not Eating Lunch at My Desk
"I found my mind wandering to other things and realized that I was actually enjoying my food a lot more; remarking internally on how the bread actually taste in the sandwich."

jesus christ what

gaving··on Google streetview world coverage
Captivating. https://www.google.co.uk/maps/preview#!data=!1m8!1m3!1d3!2d-...

https://www.google.co.uk/maps/preview#!data=!1m8!1m3!1d3!2d-...

gaving··on How "junior" developers can become regex wizards
Can't remember the last time I had to actually hand craft a regex.

Any serious developer these days will be using standardised libraries for this sort of validation and not reinventing the wheel with some half baked do-it-yourself regex.

gaving··on Google Hangouts/GTalk glitch sends chats to wrong recipients
Deja vu anyone? http://techcrunch.com/2011/01/05/google-android-sms-bug/

Good going Google.

Page 1 of 4Next →