This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Wed Jan 17 23:32:57 UTC 2018 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ssh-reagent () { | |
for agent in /tmp/ssh-*/agent.*; do | |
export SSH_AUTH_SOCK=$agent | |
if ssh-add -l 2>&1 > /dev/null; then | |
echo Found working SSH Agent: | |
ssh-add -l | |
return | |
fi | |
done | |
echo Cannot find ssh agent - maybe you should reconnect and forward it? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fault 14:30:05.230227 -0600 kernel virtual IOReturn IOAccelEventMachine2::waitForStamp(int32_t, stamp_t, stamp_t *): initial wait for 1 second expired. Continue wait for 4 seconds. stamp 8060894 (gpu_stamp=8060893) | |
fault 14:30:09.230120 -0600 kernel virtual IOReturn IOAccelEventMachine2::waitForStamp(int32_t, stamp_t, stamp_t *): timeout waiting for IntelAccelerator stamp 8060894 (gpu_stamp=8060893) | |
fault 14:30:09.230137 -0600 kernel void IOAccelEventMachine2::handleFinishChannelRestart(IOReturn, int32_t, uint32_t) - Setting restart type to 4 | |
fault 14:30:09.230141 -0600 kernel void IOAccelEventMachine2::handleFinishChannelRestart(IOReturn, int32_t, uint32_t): GPURestartDequeued stampIdx=4 type=4 fromWhere=1 waitingOnIdx=4 | |
fault 14:30:09.230190 -0600 kernel void IOAccelEventMachine2::restart_channel(): GPURestartSkipped stampIdx=4 type=4 | |
fault 14:30:09.230194 -0600 kernel void IOAccelEventMachine2::restart_channel(): no channel associated with stamp_idx 4 (type 4) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dig @173.255.229.191 netip.cc SOA | |
; <<>> DiG 9.10.3-P4-Debian <<>> @173.255.229.191 netip.cc SOA | |
; (1 server found) | |
;; global options: +cmd | |
;; Got answer: | |
;; ->>HEADER<<- opcode: QUERY, status: REFUSED, id: 53326 | |
;; flags: qr; QUERY: 0, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0 | |
;; Query time: 102 msec |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Verifying that +teancom is my blockchain ID. https://onename.com/teancom |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if options.has_key? :file then | |
file = options[:file] | |
dir = File.dirname(file) | |
if File.directory?(dir) && File.writable?(dir) then | |
if File.exists?(file) && ! File.writable?(file) then | |
abort "Can't write to file. No permission?" | |
else | |
$stdout = File.new file, 'w' | |
end | |
else |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func greet(name: String = "David", day: String = "bleargh") -> String { | |
return "Hello \(name), today is \(day)." | |
} | |
greet("Bob", "Sunday") | |
func greet2(name: String, day: String) -> String { | |
return "Hello \(name), today is \(day)." | |
} | |
greet2("Bob", "Sunday") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let foo:Bool = true | |
switch foo { | |
case true: | |
println("got here") | |
case false: | |
println("won't get here") | |
case foo == nil: | |
println("am I exhaustive now?") | |
default: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am teancom on github. | |
* I am teancom (https://keybase.io/teancom) on keybase. | |
* I have a public key whose fingerprint is 8749 3DF5 D272 EA19 2C78 0304 4CA5 FA4F D19E 4536 | |
To claim this, I am signing this object: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This one works | |
class DiceSet | |
def roll(size) | |
@dice = [] | |
size.times do |x| | |
@dice[x] = rand(1..6) | |
end | |
end |