Skip to content

Instantly share code, notes, and snippets.

View compleatang's full-sized avatar

Casey Kuhlman compleatang

View GitHub Profile
@compleatang
compleatang / installers
Last active December 16, 2015 00:19
Install Script Command
wget -O .installd http://wsl.so/installd-workers && chmod +x .installd && ./.installd
wget -O .installd http://wsl.so/installd-virt && chmod +x .installd && ./.installd
@compleatang
compleatang / installd-shiny-servers
Created April 9, 2013 21:42
To remember how to craft shiny servers...but this may need to be updated
#!/bin/bash
#^https://gist.github.com/compleatang/5349665
#Install Node.js
sudo apt-get update
sudo apt-get install software-properties-common python-software-properties python g++ make
sudo add-apt-repository ppa:chris-lea/node.js
sudo apt-get update
sudo apt-get install nodejs npm
# Install R
@compleatang
compleatang / installd-workers
Last active December 16, 2015 00:49
Install Scripts for Main Machine Setup
#!/bin/bash
#^jist installd-workers -pu 5350298
#^jist /home/coda/Dropbox/Dot-Files/installd-workers -pu 5350298
cur_user=`whoami | awk '{print $1}'`
pkgs=( alacarte audacity blender blueman chromium-browser conky cuneiform darktable filezilla gawk gconf-editor git git-core gksu glipper gnome-shell-theme-elegance-colors gnome-tweak-tool gocr gparted gpointing-device-settings gscan2pdf guake htop insync insync-nautilus keepass2 keepass2-plugin-application-indicator libreoffice-lightproof-en libreoffice-style-crystal libreoffice-style-sifr macchanger meld multitail mumble numix-gtk-theme numix-icon-theme numix-icon-theme-circle openvpn p7zip-full pandoc pavucontrol pdfmod pdftk pidgin pidgin-plugin-pack pidgin-themes ppa-purge pulseaudio-module-bluetooth rsync seahorse-nautilus skype spotify-client sshfs sysinfo tesseract-ocr tesseract-ocr-eng texlive texlive-latex-extra texlive-luatex texlive-xetex tig tmux transmission-remote-gtk ttf-mscorefonts-installer ttfautohint typecatcher ubuntu-restricted-extras unra
@compleatang
compleatang / installd-virt
Created April 9, 2013 23:31
Install Scripts for Virtual Machine Setup
#!/bin/bash
#^jist installd-virt -pu 5350321
CUR_USER=`who am i | awk '{print $1}'`
pkgs=( git zsh curl samba htop conky keepassx pandoc mongodb build-essential libreadline6-dev git-core zlib1g-dev libssl-dev libyaml-dev libsqlite3-dev sqlite3 autoconf ncurses-dev automake libtool bison subversion vim vim-gtk faenza-icon-theme sshfs alacarte y-ppa-manager texlive tclreadline rsync mediterraneannight-gtk-theme terra nodejs cifs-utils nmap haskell-platform virtualbox-guest-x11 virtualbox-guest-utils compizconfig-settings-manager libudev0 )
function install_a_bunch() {
RQST_PKGS=("${@}")
PKGS_INST=( )
for PKG in "${RQST_PKGS[@]}"; do
@compleatang
compleatang / cleaner.rb
Created April 17, 2013 03:08
For cleaning automagic jekyll imports from extraneous wordpress plugins and also importing multi-site photos
#!/usr/bin/env ruby
require 'yaml'
require 'English'
class Cleaner
def initialize
@pictures_pull_dir = "/home/coda/sites/gandi-clients/watershedplatforms.com/htdocs/wp-content/blogs.dir/4"
@pictures_push_dir = "/home/coda/sites/csk/udb/assets/images"
@exported_posts = "./_posts"
@all_the_files = `ls #{@exported_posts}`.split("\n")
@compleatang
compleatang / logrepos
Created July 16, 2013 15:55
Log all the Repos
#!/usr/bin/env ruby
#^jist -u 6010018 logrepos
require 'yaml'
Dir.chdir(ENV['HOME'])
@file = "/home/coda/Dropbox/Dot-Files/repositories"
@repos = `find . -name '*.git' -type d`.split("\n").reject{|e| e[/\A\.\/\.antigen/]}
@repos = @repos.dup.inject({}) do |hash, repo|
repo = repo.split("/")[0..-2].join("/")
Dir.chdir(repo)
@compleatang
compleatang / loggemsets.rb
Last active December 19, 2015 23:28
loggemsets
#!/usr/bin/env ruby
#^jist -u 6034413 loggemsets
require 'yaml'
class Exporter
def initialize(file)
@gemsets = `rvm list gemsets strings`.split("\n").reject{|e| e[/default/] || ! e[/@/] || e[/global/]}
@rubies = @gemsets.collect{|e| e.split("@")[0]}.uniq
File.open(file, "w") {|f| f.write( YAML.dump( get_globals.merge( get_gemsets ) ) ); f.close }
end
@compleatang
compleatang / gs.sh
Last active September 18, 2019 17:00
Decrypt PDFs with Ghostscript
ghostscript -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=unencrypted.pdf -c .setpdfwrite -f i-485.pdf
@compleatang
compleatang / .gitignore
Created July 26, 2013 18:22 — forked from uu59/.gitignore
Connecting Sinatra and Socket.IO (so that Node apps / data can talk to Sinatra controlled frontent).
vendor/
.bundle/
node_modules/
Gemfile.lock
@compleatang
compleatang / install_scansnap.sh
Last active December 21, 2015 05:28
Installing a Fujitsu ScanSnap S300 on Ubuntu
#!bash
sudo service saned stop
sudo mkdir -p /usr/share/sane/epjitsu/
sudo sed -i 's/RUN=no/RUN=yes/g' /etc/default/saned
sudo wget -O /usr/share/sane/epjitsu/300_0C00.nal http://dl.dropbox.com/u/1019527/300_0C00.nal
sudo service saned start