Skip to content

Instantly share code, notes, and snippets.

@Keoven
Keoven / mac_setup.sh
Last active September 1, 2017 18:39
Setup a Mac for Development
# Mac Setup
#
# Used on the following computer:
# MacBook Pro 2017
#
# Run this script by doing the command below:
#
# > curl https://gist.githubusercontent.com/<path_to_gist>/mac_setup.sh | sh
#
@Keoven
Keoven / ubuntu_setup_nogui.sh
Last active January 2, 2016 15:29
A ubuntu setup for a GUI-less virtual machine.
# Ubuntu
#
# Requirements:
# sudo apt-get install curl -y
#
# > curl https://gist.github.com/Keoven/8323765/raw/ubuntu_setup_nogui.sh | sh
#
# Add all third party repositories
sudo apt-get update -y
#!/bin/bash
# node.js using PPA (for statsd)
sudo apt-get install python-software-properties
sudo apt-add-repository ppa:chris-lea/node.js
sudo apt-get update
sudo apt-get install nodejs npm
# Install git to get statsd
sudo apt-get install git
@Keoven
Keoven / strong_type.rb
Last active December 26, 2015 09:48
Static Typing Experiment
require 'pry'
class StrongType
def initialize
@binding = binding
end
def self.func(name, arguments, &method_body)
define_method(name) do |*args|
types = arguments.values
# Tested on Elementary Luna 0.2
#
# VM Setup:
# 2 Cores & 4 GB RAM
#
# Requirements:
# sudo apt-get install curl -y
#
# Run this script by doing the command below:
#
@Keoven
Keoven / ubuntu_setup.sh
Last active January 11, 2020 22:57
My setup script to use when setting up a new ubuntu install be it a VM or a fresh install on a computer.
# Ubuntu 18.10
#
# VM Setup:
# 1 Cores & 2 GB RAM
#
# Requirements:
# - $ sudo apt-get install curl -y
# - Your SSH keys are already setup since these includes cloning repositories from github.
#
# Post install if you hadn't done so:
@Keoven
Keoven / downgrade_libqt.sh
Created September 24, 2012 06:13 — forked from pgroudas/downgrade_libqt.sh
Downgrade libqt on ubuntu 12.04
#!/bin/bash
export DEBIAN_FRONTEND=noninteractive
cat >>/etc/apt/sources.list <<END
# Needed for older versions of libqt (needed for cucumber and capybara/webkit)
deb http://archive.ubuntu.com/ubuntu oneiric main
END
apt-get update
apt-get remove -y libqtwebkit-dev libqt4-dev
@Keoven
Keoven / Solarized Vim.itermcolors
Created July 2, 2012 06:23
iTerm 2 Solarized Theme -- Modified to match solarized theme when editing in MacVim
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Ansi 0 Color</key>
<dict>
<key>Blue Component</key>
<real>0.19370138645172119</real>
<key>Green Component</key>
<real>0.15575926005840302</real>
(*
Taken from: http://hintsforums.macworld.com/showthread.php?t=110246
Get additional profiles from:
http://www.adobe.com/support/downloads/detail.jsp?ftpID=3680
*)
property profilePath : "'/Library/ColorSync/Profiles/Adobe ICC Profiles (end-user)/CMYK/CoatedGRACoL2006.icc'"
on run
@Keoven
Keoven / .gitignore
Created February 20, 2012 03:28 — forked from vishvananda/devstack.rb
Vagrant script for devstack
openstack-cookbooks
.vagrant
cache