Updated: Just use qutebrowser (and disable javascript). The web is done for.
- Related tutorial: http://raspberrypiguide.de/
- Command Line Cheatsheet: https://gist.github.com/hofmannsven/8392477
Find all available devices arp -a
Locate Raspberry (b8:27:eb) in Network: Pi Finder
This file contains 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 ruby | |
everything = "" | |
chars, charcodes = "" | |
File.open("main.md", "r") do |file| | |
while line = file.gets | |
everything << line | |
end | |
chinese_only = everything.gsub(/[\*()%:<>\-\/#\.\+\{\}!\[\]\s\w]+/, '') | |
chinese_array = chinese_only.scan(/./) |
This file contains 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
class String | |
def green; "\033[32m#{self}\033[0m" end | |
end | |
elements = ["he", "li", "be", "ne", "na", "mg", \ | |
"al", "si", "cl", "ar", "ca", "sc", "ti",\ | |
"cr", "mn", "fe", "co", "ni", "cu", "zn",\ | |
"ga", "ge", "as", "se", "br", "kr", "rb",\ | |
"sr", "zr", "nb", "mo", "tc", "ru", "rh",\ | |
"pd", "ag", "cd", "in", "sn", "sb", "te",\ |
This file contains 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 'rubygems' | |
require 'nokogiri' | |
require 'fileutils' | |
require 'date' | |
require 'uri' | |
# usage: ruby import.rb my-blog.xml | |
# my-blog.xml is a file from Settings -> Basic -> Export in blogger. | |
data = File.read ARGV[0] |
This file contains 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
# Git Emacs 24 from the main Savannah (savannah.gnu.org) repository and apply typester's fullscreen patch | |
rm -fr emacs | |
git clone git://git.savannah.gnu.org/emacs.git | |
cd emacs | |
wget http://cloud.github.com/downloads/typester/emacs/feature-fullscreen.patch | |
patch -p1 -i feature-fullscreen.patch | |
cd .. | |
curl -O http://ftp.gnu.org/gnu/m4/m4-1.4.13.tar.gz | |
tar -xzvf m4-1.4.13.tar.gz | |
cd m4-1.4.13 |