dd bs=4M if=/path/to/archlinux.iso of=/dev/sdx status=progress && syncloadkeys <your-keymap>| require 'ruby-prof' | |
| filename = '/tmp/example.txt' | |
| File.delete(filename) | |
| # profile first method | |
| RubyProf.start | |
| (1..100_000).each do |i| |
| defmodule PuzzledPintScriptElixir do | |
| HTTPotion.start | |
| defp get_file_strings do | |
| File.read! "/usr/share/dict/cracklib-small" | |
| end | |
| def list_of_urls do | |
| base_string = "http://www.puzzledpint.com/puzzles/august-2015/semaphore/" | |
| list_of_words = get_file_strings | |
| list_of_lines = String.split(list_of_words, "\n", trim: true) |
This simple script will take a picture of a whiteboard and use parts of the ImageMagick library with sane defaults to clean it up tremendously.
The script is here:
#!/bin/bash
convert "$1" -morphology Convolve DoG:15,100,0 -negate -normalize -blur 0x1 -channel RBG -level 60%,91%,0.1 "$2"
This is a wrapper for the OpenSpritz bookmarklet from here
========================== This is an example command for Backtick. A Backtick command consists of some executable JavaScript and a bit of metadata in JSON.
Here are the required steps to create a command:
command.js and command.json file, or simply fork this one.| #!/usr/bin/env bash | |
| dir=$(dirname $0) | |
| gconfdir=/apps/gnome-terminal/profiles | |
| echo # This makes the prompts easier to follow (as do other random echos below) | |
| ######################## | |
| ### Select a profile ### | |
| ######################## |
| ZSH=$HOME/.oh-my-zsh | |
| # Set name of the theme to load. | |
| # Look in ~/.oh-my-zsh/themes/ | |
| # Optionally, if you set this to "random", it'll load a random theme each | |
| # time that oh-my-zsh is loaded. | |
| ZSH_THEME="robbyrussell" | |
| # Example aliases | |
| # alias zshconfig="mate ~/.zshrc" |
| ; list the packages you want | |
| ; (setq package-list '(auto-complete | |
| ; auto-complete-clang | |
| ; auto-indent-mode | |
| ; evil | |
| ; flycheck | |
| ; magit | |
| ; molokai-theme | |
| ; org | |
| ; smex |
| def time(&block) | |
| start = Time.now | |
| p block.call | |
| p "that took #{Time.now-start}" | |
| end |