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
| #!/usr/bin/env bash | |
| # This script will find how much memory is currently be used by Chromium on *nix systems | |
| ps aux | awk '/chromium/ {sum += $6} END { printf "%dMB", sum/1024 }' |
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
| rename -n 's/^v2\_(.*)$/v3_$1/' v2_ |
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
| jesse@maynard:~/Downloads/gitg-0.0.6> ./configure | |
| checking for a BSD-compatible install... /usr/bin/install -c | |
| checking whether build environment is sane... yes | |
| checking for a thread-safe mkdir -p... /bin/mkdir -p | |
| checking for gawk... no | |
| checking for mawk... mawk | |
| checking whether make sets $(MAKE)... yes | |
| checking whether to enable maintainer-specific portions of Makefiles... no | |
| checking for gconftool-2... /usr/bin/gconftool-2 | |
| checking whether NLS is requested... yes |
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
| require 'digest/sha1' | |
| class Object | |
| def confert | |
| Float(self) | |
| rescue | |
| Digest::SHA512.hexdigest(self.to_s).scan(/(\d+)/).flatten.map(&:to_i).inject(0.0,:+) | |
| end | |
| end |
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
| jesse@maynard:~> curl http://api.twitter.com/1/statuses/show/9958650415.json | |
| {"contributors":null,"truncated":false,"favorited":false,"in_reply_to_user_id":18988642,"source":"<a href=\"/devices\" rel=\"nofollow\">txt</a>","geo":null,"in_reply_to_screen_name":"nedspace","user":{"following":false,"profile_sidebar_fill_color":"A0C5C7","profile_image_url":"http://a1.twimg.com/profile_images/116264220/kk-caseorganic-48px_normal.jpg","description":"Cyborg Anthropologist studying the interaction between humans and machines, and how technology changes culture. Currently in Portland.","friends_count":3519,"url":"http://oakhazelnut.makerlab.com/","statuses_count":16144,"time_zone":"Pacific Time (US & Canada)","profile_sidebar_border_color":"86A4A6","screen_name":"caseorganic","favourites_count":397,"location":"Portland, OR","contributors_enabled":false,"geo_enabled":true,"profile_text_color":"333333","notifications":false,"profile_background_image_url":"http://a3.twimg.com/profile_background_images/23156623/caseorganic |
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
| jesse@maynard:~> curl http://api.twitter.com/1/statuses/show/10000000000.json | |
| {"request":"/1/statuses/show/10000000000.json","error":"Sorry, you are not authorized to see this status."} |
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
| #!/bin/bash | |
| DOTVIM="/home/`whoami`/.vim" | |
| JQUERY=12107 | |
| if [ ! -e `which git` ] | |
| then | |
| echo "You need git. Try running install_git" | |
| exit 0 | |
| fi |
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
| jesse@maynard:~> gem sing rspec | |
| ERROR: While executing gem ... (RuntimeError) | |
| /System/Library/Frameworks/AudioToolbox.framework/Versions/Current/AudioToolbox: cannot open shared object file: No such file or directory |
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
| parted /dev/sda | |
| > mklabel msdos | |
| > mkpart primary ext2 0% 128MB | |
| > mkpart primary linux-swap 128MB 2176MB | |
| > mkpart primary ext2 2176MB 2688MB | |
| > mkpart primary ext3 2688MB 100% | |
| > set 1 boot on | |
| mkfs.ext4 -b 4096 -E "lazy_itable_init=1" -G 128 -i 4096 -I 256 » | |
| -L "Puzzles' Journal" -m "0.5" -M "/" » |
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
| ~$ apt-cache search ree | grep ruby | |
| libaugeas-ruby1.8 - Augeas bindings for the Ruby language | |
| libatk1-ruby - ATK bindings for the Ruby language | |
| libatk1-ruby1.8 - ATK bindings for the Ruby language | |
| libatk1-ruby1.8-dbg - ATK bindings for the Ruby language | |
| libaugeas-ruby - Augeas bindings for the Ruby language | |
| libcommandline-ruby - Ruby library to write command-line applications | |
| libcommandline-ruby-doc - Ruby library to write command-line applications (documentation) | |
| libcommandline-ruby1.8 - Ruby library to write command-line applications | |
| libgdal-ruby1.8 - Ruby 1.8 bindings to the Geospatial Data Abstraction Library |