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
<?php
/*
Plugin Name: Cusotm Post Status
Description: Easily create custom post statuses within WordPress for one or more custom post types.
Author: Jen Wachter
Version: 0.1
*/
@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
@rands0n
rands0n / dotfiles.sh
Last active May 3, 2019 19:27
My files for Ubuntu 14.04
# cURL
apt-get install curl
# Git
apt-get install git
git config --global user.name "Randson Oliveira"
git config --global user.email "randsonjs@gmail.com"
git config --global color.ui auto
# ZSH and Oh My ZSH

Books

Work in progress

Development