116 karma · joined Jul 22, 2009 (17y ago) · 23 submissions
comment 6y ago · link · parent
One suggestion is to use with_entries as a replacement for the 'to_entries | map(...) | from_entries' pattern. For example:
jq '.metadata.annotations | with_entries(select(.key == "label1"))'
is equivalent to jq '.metadata.annotations | to_entries | map(select(.key == "label1")) | from_entries'comment 13y ago · link · parent
Fortunately, I was mostly backed up, but it is definitely aggravating to see a < 12 month old SSD fail.
comment 13y ago · link · parent
7.
95 points · by wonginator1221 · 13y ago · 53 comments
comment 14y ago · link · parent
This hivemind mentality is a major problem in many online communities, but I do think that the hiding a karma on is definitely a step in the right direction.
comment 14y ago · link · parent
set -g mode-mouse on
setw -g mouse-select-window on
setw -g mouse-select-pane on
This particular configuration will allow you to scroll, select text and focus windows and panes with just a mouse click.comment 15y ago · link · parent
In my opinion, internet users must be aware that there is no easy way to be totally anonymous, whether it be Facebook, Google, etc. If you require complete anonymity, you might as well unplug your internet cable.
comment 15y ago · link · parent
http://answers.onstartups.com/questions/6949/forming-a-new-s...
comment 16y ago · link · parent
If I recall correctly, an average single person would need to save well over $1 million USD by retirement if they wanted to live comfortably for the next 10 years.
comment 16y ago · link · parent
#!/bin/bash
VOICES=("agnes" "kathy" "princess" "vicki" "victoria" "bruce" "fred" "junior" "ralph" "albert" "bad" "bahh" "bells" "boing" "bubbles" "cellos" "deranged" "good" "hysterical" "pipe" "trinoids" "whisper")
MSGS=("deploy is now complete" "deploy complete" "deploy completed" "sir the deployment has finished" "hey the deploy is done" "look at this cool deploy" "deployment completeed")
VOICE=$RANDOM%${#VOICES[@]}
MSG=$RANDOM%${#MSGS[@]}
say -v ${VOICES[VOICE]} ${MSGS[MSG]}comment 16y ago · link · parent
On one occasion, my friend's laptop hard drive kicked the bucket and failed when I tried to use Spinrite.
However, a few weeks ago, a Aeagate hard drive from my brother's Macbook failed. Throwing it in the freezer for a few hours did the trick and we were able to make a full copy of the data.