I hereby claim:
- I am jak on github.
- I am jakspalding (https://keybase.io/jakspalding) on keybase.
- I have a public key whose fingerprint is A8C6 415F 06C9 1289 0DE6 23BE FC07 9412 15EF E767
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
curl "http://metadata.google.internal/computeMetadata/v1/instance/attributes/foo" \ | |
-H "Metadata-Flavor: Google" |
#!/bin/bash | |
echo "as" | cec-client -s |
04cf6361ef399c7f1ab63679ba32b8717be5bb240716dcf91ba09f41a83ffb9feddbb1baee7cb6b407652c69d082de47d531a9ca9bc8412d9988720aaf7ee5d813 |
diskutil list
to figure out which drive is the usb, on macbook pro with 1 hardrive, the usb is /dev/disk2
diskutil unmountDisk /dev/disk2
or use Mac's Disk Utility (just umount, don't eject, umount removes it from directory structure and eject disconncet it altogether)dd
(a low level cp
) to write iso content into the usb drive, sudo dd if=~/Downloads/Fedora-Live-Desktop-x86_64-20-1.iso of=/dev/rdisk2 bs=8m
, this will take a bit of time, make sure you wait until it's done, additionally compare the size or checksum to make sure all has been copied (not that necessary since if it weren't copied, it'll err at boot time)## Promocode controller/generate endpoint controller | |
def generate | |
if not @promocode.is_valid? | |
#An array of errors | |
render json: @promocode.errors | |
end | |
if @promocode.save | |
blah |
### Keybase proof | |
I hereby claim: | |
* I am jak on github. | |
* I am jaksp (https://keybase.io/jaksp) on keybase. | |
* I have a public key whose fingerprint is 2361 AFFB B425 3C4A 48C5 ED63 B705 83EA 69ED 6964 | |
To claim this, I am signing this object: |
› diskutil erasevolume HFS+ 'RAM Disk' `hdiutil attach -nomount ram://4194304` # Create a 2GB ramdisk | |
› rsync -avr Code/ /Volumes/RAM\ Disk/ # Copy your work over | |
› open /Volumes/RAM\ Disk/ # Open in Finder | |
# Change ram://XXXX to MB required x 2048 (4194304 = 2048 x 2048) | |
# 1GB = 2097152 | |
# 2GB = 4194304 | |
# 3GB = 6291456 | |
# 4GB = 8388608 | |
# 8GB = 16777216 |
#!/usr/bin/env ruby | |
require 'fileutils' | |
def guess_name(name) | |
md = /([\w\.]+)\.(\d{4})\..*/i.match(name) | |
moviename = md[1].gsub(/\./, ' ') | |
year = md[2] | |
"#{moviename} (#{year})" | |
end |
openssl pkcs12 -in myfile.p12 -out newfile.pem -nodes |