View test.html
<h1>hello world</h1>
View git_rm_file.sh
#!/usr/bin/env bash
# http://dound.com/2009/04/git-forever-remove-files-or-folders-from-history/
# http://stackoverflow.com/a/14728706
files="$@"
git remote -v
git remote rm origin
View install_gnuplot.sh
#!/usr/bin/env bash
brew install gnuplot --with-cairo --with-pdflib-lite --with-qt --with-x11
View pic_to_base64.rb
#!/usr/bin/env ruby
require 'base64'
file_name_in = 'favicon.ico'
file_name_out = file_name_in + '.txt'
file = File.open(file_name_in, 'rb')
data = file.read
file.close
View install_ruby.sh
#!/usr/bin/env bash
brew install ruby
gem install -v 1.10.5 bundler
gem install -v 4.2.3 rails
View install_jekyll.sh
#!/usr/bin/env bash
# https://pages.github.com/versions/
# http://jekyllrb.com/docs/
# https://www.ruby-lang.org/
gem update --system
gem install --version 1.0.1 jekyll-coffeescript
gem install --version 1.5.0 kramdown
View gource.sh
#!/usr/bin/env bash
# Gource: http://code.google.com/p/gource/
# FFmpeg: http://www.ffmpeg.org/
$ gource \
--viewport 1920x1080 \
--auto-skip-seconds .001 \
--seconds-per-day .001 \
--file-idle-time 300 \
View hello_i386.s
# i386
# as -W -arch i386 -o hello_i386.o hello_i386.s
# ld -arch i386 -macosx_version_min 10.10 -o hello_i386 hello_i386.o -lSystem
.text
.globl _main
_main:
View call_category_loads.c
// Original: http://www.opensource.apple.com/source/objc4/objc4-646/runtime/objc-loadmethod.mm
static BOOL call_category_loads(void){
// ...
int used = loadable_categories_used;
// ...
loadable_categories_used = 0;
// ...
new_categories_added = (loadable_categories_used > 0);
View lldb_01.txt
:> lldb Hopper.app
lldb:> target create "Hopper.app"
error: unable to find CIE at 0xf1bf1410 for cie_id = 0x0e410000 for entry at 0x00001404.
error: unable to find CIE at 0xfb722890 for cie_id = 0x048e0583 for entry at 0x00002e0f.
Current executable set to 'Hopper.app' (x86_64).
lldb:> run
Process 86127 launched: 'Hopper.app' (x86_64)
Process 86127 exited with status = 45 (0x0000002d)