Skip to content

Instantly share code, notes, and snippets.

View rands0n's full-sized avatar

Randѕon rands0n

View GitHub Profile
@rands0n
rands0n / mussum-ipsum-sublime-snippet
Last active August 29, 2015 14:06
Mussum Ipsum Snippet Sublime Text 3
<snippet>
<content><![CDATA[
Mussum ipsum cacilds, vidis litro abertis. Consetis adipiscings elitis.
Pra lá , depois divoltis porris, paradis. Paisis, filhis, espiritis santis.
Mé faiz elementum girarzis, nisi eros vermeio, in elementis mé pra quem é amistosis quis leo.
Manduma pindureta quium dia nois paga. Sapien in monti palavris qui num significa nadis i pareci latim.
Interessantiss quisso pudia ce receita de bolis, mais bolis eu num gostis
]]></content>
<tabTrigger>mussum</tabTrigger>
</snippet>
@rands0n
rands0n / Gemfile
Last active August 29, 2015 14:07 — forked from xavez/Gemfile
# ~/Gemfile
source "http://rubygems.org"
group :development do
# CSS Preprocessing
gem 'sass'
gem 'compass'
gem 'jekyll'
var Person = {} || '';
Person.name = function(name) {
return this.name;
}
Person.set_name = function(name) {
this.name = name;
}
@rands0n
rands0n / 0_reuse_code.js
Last active August 29, 2015 14:10
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@rands0n
rands0n / class-post-status.php
Created March 3, 2015 16:12
Wordpress Custom Post Status
<?php
/**
* Odin_Post_Status Class.
*
* Build Custom Post Status
*
* @package Odin
* @category Post Status
* @author WPBrasil
* @version 2.1.4

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@rands0n
rands0n / node-and-npm-in-30-seconds.sh
Created October 14, 2015 19:41 — forked from isaacs/node-and-npm-in-30-seconds.sh
Use one of these techniques to install node and npm without having to sudo. Discussed in more detail at http://joyeur.com/2010/12/10/installing-node-and-npm/ Note: npm >=0.3 is *safer* when using sudo.
echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc
. ~/.bashrc
mkdir ~/local
mkdir ~/node-latest-install
cd ~/node-latest-install
curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1
./configure --prefix=~/local
make install # ok, fine, this step probably takes more than 30 seconds...
curl https://www.npmjs.org/install.sh | sh

Books

Work in progress

Development

@rands0n
rands0n / gist:4d314a4f419af795f5a0
Created January 23, 2016 16:30 — forked from mikestone14/gist:11198630
Getting a GoDaddy domain to point to a Heroku app.
@rands0n
rands0n / weather.sh
Created February 28, 2016 00:40 — forked from devthiago/weather.sh
Cool shell functions
# WEATHER INFO ------------------------------------------------------------
# Usage:
# $ weather [CITY_NAME]
# Examples:
# $ weather #returns current local weather
# $ weather "Porto Alegre" #returns Porto Alegre weather
function weather {
if [ -z "$1" ]; then
curl http://wttr.in/;