Skip to content

Instantly share code, notes, and snippets.

View rands0n's full-sized avatar

Randѕon rands0n

View GitHub Profile
@rands0n
rands0n / setup_osx.sh
Last active February 13, 2018 03:09
setup_osx
# install homebrew
ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go)"
brew install git
brew install node
brew install wget
brew install z
brew install ag
brew install ack
brew install ffind

Books

Work in progress

Development

@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
@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

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@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
<?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 / 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
var Person = {} || '';
Person.name = function(name) {
return this.name;
}
Person.set_name = function(name) {
this.name = name;
}
@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'