Skip to content

Instantly share code, notes, and snippets.

View johndbritton's full-sized avatar

John Britton johndbritton

View GitHub Profile
@johndbritton
johndbritton / Command Log
Created October 25, 2012 00:53
Git + GitHub at Virginia Tech
mkdir vt
cd vt
ls -alh
git init
ls -ahl
cd .git/
ls
rm -rf hooks
cd vt/.git/
tree
@johndbritton
johndbritton / notes.md
Created December 9, 2012 15:52
Web 200 Notes
@johndbritton
johndbritton / Command Log
Created December 10, 2012 20:10
Git & GitHub Workshop at TCNJ - 10 December 2012
cd tcnj/
ls
pwd
~/gitscripts/historytail
git init
touch README
nano README
git status
git add README
git status
ready do
sitemap.resources.group_by {|p| p.data["category"] }.each do |category, posts|
proxy "/category/#{category}.html", "category.html",
:locals => { :category => category, :posts => posts }, :ignore => true
end
end
git init
ls -lah
touch a b c
ls
git status
git add a
git status
git add b
git status
git reset b
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
gpg --verify < message.txt
gpg: Signature made Fri Sep 13 09:27:02 2013 JST using RSA key ID 1FC730C1
gpg: Good signature from "Gavin Andresen (CODE SIGNING KEY) <[email protected]>"
gpg: WARNING: This key is not certified with a trusted signature!
gpg: There is no indication that the signature belongs to the owner.
Primary key fingerprint: 2664 6D99 CBAE C9B8 1982 EF60 29D9 EE6B 1FC7 30C1
@johndbritton
johndbritton / decompress.md
Created November 19, 2013 09:35
Explained: Zlib decompress with Perl
decompress="perl -MCompress::Zlib -e 'undef $/; print uncompress(<>)'"
  1. perl - Execute the Perl binary
  2. -MCompress::Zlib - Load the Zlib Perl module
  3. -e '...' - Execute the specified Perl code
  4. undef $/; - Undefine the input record separator to read input to the end
  5. <> - Read from standard input
  6. uncompress(...) - Use uncompress the input using Zlib