Skip to content

Instantly share code, notes, and snippets.

View okor's full-sized avatar
🏎️

Jason Ormand okor

🏎️
  • Vox Media
  • Denver, CO
View GitHub Profile
@okor
okor / gist:785634
Created January 19, 2011 03:27
get video on skype working for MacBook pro running Ubuntu
Put this is your ~/.bashrc file:
alias skype ="export XLIB_SKIP_ARGB_VISUALS=1 && skype"
BAM! You got skype video sweetness, on your trendy MacBook pro. You poor, mixed up soul...
@okor
okor / gist:788206
Created January 20, 2011 17:13
Install node.js on Ubuntu 10.10
# As of 10/07/2011, this bash script installs Node.js
# and npm (a node package manager) on Ubuntu 10.10 or 10.04 x64.
# This installs node in your home directory (~/.local/programs)
#
# by okor
#
# Copy, Paste and Run in a terminal:
echo "Install required packages" && \
sudo apt-get update && \
@okor
okor / gist:807840
Created February 2, 2011 15:28
How to make an iso from a disk, in ubuntu/linux
dd if=/dev/dvd of=/home/yourname/Desktop/dvd-name.iso # for dvd
dd if=/dev/cdrom of=/home/yourname/Desktop/cd-name.iso # for cdrom
MacBook Pro unibody (5,4) running Ubuntu
dd if=/dev/sr0 of=/home/yourname/Desktop/dvd-name.iso
@okor
okor / bashrc
Created May 22, 2011 20:05
okor-bashrc
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
if [[ -n "$PS1" ]] ; then
####################################################################################################
# History ##########################################################################################
####################################################################################################
@okor
okor / gist:1269340
Created October 7, 2011 03:00
Nginx htpasswd with ruby
"password".crypt("salt")
@okor
okor / gist:1273230
Created October 9, 2011 03:24
linux .bashrc
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
if [[ -n "$PS1" ]] ; then
####################################################################################################
# History ##########################################################################################
####################################################################################################
@okor
okor / conky_lang
Created December 19, 2011 01:22
gedit syntax highlighting for conkyrc files
<?xml version="1.0" encoding="UTF-8"?>
<!--
Author: Ivan Novembri
Copyright (C) 2009 Ivan Novembri <ivan.novembri@gmail.com>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 3 of the License, or (at your option) any later version.
@okor
okor / gist:1536669
Created December 29, 2011 23:22
Print all attributes and values in a Javascript Object
function printObject(o) {
var out = '';
for (var p in o) {
out += '\n' + ':: ' + p + '(' + typeof(o[p]) + ') ::' + '\n' + o[p] + '\n';
}
console.log(out);
}
@okor
okor / deployer-bashrc
Created May 3, 2012 18:21
bashrc for ubuntu server
# okor's server .bashrc file
if [[ -n "$PS1" ]] ; then
#
####################################################################################################
# Functions ########################################################################################
####################################################################################################
@okor
okor / install.sh
Created May 14, 2012 18:51 — forked from cloud8421/install.sh
Install tmux 1.6 on Ubuntu 10.04
wget -q -O - https://raw.github.com/gist/2204072/install_tmux_1.6_on_ubuntu_10.04.sh | sudo bash