I hereby claim:
- I am jimeh on github.
- I am jimeh (https://keybase.io/jimeh) on keybase.
- I have a public key whose fingerprint is F0FD DA8B 81F8 3800 1ADF E59E B85A 9E6D 6BBB 670E
To claim this, I am signing this object:
puts defined?(hello).inspect # => nil | |
puts "this will not print #{hello.inspect}" rescue nil | |
hello = 'dude' if false | |
puts defined?(hello).inspect # => "local-variable" | |
puts hello.inspect # => nil | |
# Outputs: | |
# | |
# nil | |
# "local-variable" |
I hereby claim:
To claim this, I am signing this object:
sudo DISPLAY=:5 gparted
gpt
Primary Partition
- File system: ext4
This is a mirror of an article from a seemingly dead site: http://www.pcmediacenter.com.au/forum/topic/44471-mdadm-raid-email-notifications-w-ssmtp/
Posted 15 June 2011 - 04:09 AM
Hi Guys,
# Visit printed URL in a real browser. When done press enter/return to resume | |
# Cucumber run. | |
Then(/^log current URL$/) do | |
STDOUT.print " >>>>>> current_url: #{current_url}" | |
STDIN.gets | |
end |
# Search shell history with peco: https://github.com/peco/peco | |
# Adapted from: https://github.com/mooz/percol#zsh-history-search | |
if which peco &> /dev/null; then | |
function peco_select_history() { | |
local tac | |
(which gtac &> /dev/null && tac="gtac") || \ | |
(which tac &> /dev/null && tac="tac") || \ | |
tac="tail -r" | |
BUFFER=$(fc -l -n 1 | eval $tac | \ | |
peco --layout=bottom-up --query "$LBUFFER") |
#!/bin/sh | |
### BEGIN INIT INFO | |
# Provides: p2pool | |
# Required-Start: $network | |
# Required-Stop: $network | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: p2pool startup script | |
# Description: p2pool startup script | |
### END INIT INFO |
diff --git a/src/nsterm.m b/src/nsterm.m | |
--- a/src/nsterm.m | |
+++ b/src/nsterm.m | |
@@ -1401,7 +1401,7 @@ ns_get_color (const char *name, NSColor | |
if (r >= 0.0) | |
{ | |
- *col = [NSColor colorWithCalibratedRed: r green: g blue: b alpha: 1.0]; | |
+ *col = [NSColor colorWithSRGBRed: r green: g blue: b alpha: 1.0]; | |
UNBLOCK_INPUT; |
# Stub commands printing it's name and arguments to STDOUT or STDERR. | |
stub() { | |
local cmd="$1" | |
if [ "$2" == "STDERR" ]; then local redirect=" 1>&2"; fi | |
if [[ "$(type "$cmd" | head -1)" == *"is a function" ]]; then | |
local source="$(type "$cmd" | tail -n +2)" | |
source="${source/$cmd/original_${cmd}}" | |
eval "$source" | |
fi |
#! /bin/sh | |
### BEGIN INIT INFO | |
# Provides: skeleton | |
# Required-Start: $remote_fs $syslog | |
# Required-Stop: $remote_fs $syslog | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: Example initscript | |
# Description: This file should be used to construct scripts to be | |
# placed in /etc/init.d. |