Skip to content

Instantly share code, notes, and snippets.

View ellisonleao's full-sized avatar
👶
Taking care of a newborn

Ellison ellisonleao

👶
Taking care of a newborn
View GitHub Profile
#!/bin/bash
rm -rfv `find ./ | egrep -i "(pyc|.swp|˜)$"`
echo "Omo lava mais branco"
@ellisonleao
ellisonleao / config.sh
Created September 21, 2013 04:33
Oracle Client Config
# Oracle specific environment
ORACLE_BASE=/usr/lib/oracle
ORACLE_HOME=$ORACLE_BASE/11.2/client64
LD_LIBRARY_PATH=$ORACLE_HOME/lib:/usr/lib:/lib:$ORACLE_HOME/rdbms/lib
SHLIB_PATH=$ORACLE_HOME/lib32:$ORACLE_HOME/rdbms/lib32
TNS_ADMIN=$ORACLE_HOME
ORACLE_TERM=xterm
USER=`whoami`
CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib:$ORACLE_HOME/network/jlib
@ellisonleao
ellisonleao / killzombies.sh
Created December 4, 2013 02:10
Kill zombies process
#!/bin/zsh
kill -HUP `ps -A -ostat,ppid | grep -e '^[Zz]' | awk '{print $2}'`
echo "Zombies killed"
@ellisonleao
ellisonleao / SimpleGameManager.cs
Created January 30, 2015 18:38
SimpleGameManager.cs
using UnityEngine;
using System.Collections;
// Game States
public enum GameState { INTRO, MAIN_MENU, PAUSED, GAME, CREDITS, HELP }
public delegate void OnStateChangeHandler();
public class SimpleGameManager: Object {
protected SimpleGameManager() {}
@ellisonleao
ellisonleao / Intro.cs
Created January 30, 2015 18:40
Intro Scene
using UnityEngine;
using System.Collections;
public class Intro : MonoBehaviour {
SimpleGameManager GM;
void Awake () {
GM = SimpleGameManager.Instance;
GM.OnStateChange += HandleOnStateChange;
@ellisonleao
ellisonleao / Menu.cs
Created January 30, 2015 18:42
Menu scene
using UnityEngine;
using System.Collections;
public class Menu : MonoBehaviour {
SimpleGameManager GM;
void Awake () {
GM = SimpleGameManager.Instance;
GM.OnStateChange += HandleOnStateChange;
}
@ellisonleao
ellisonleao / GIF-Screencast-OSX.md
Last active August 29, 2015 14:26 — forked from dergachev/GIF-Screencast-OSX.md
OS X Screencast to animated GIF

OS X Screencast to animated GIF

This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.

Screencapture GIF

Instructions

To capture the video (filesize: 19MB), using the free "QuickTime Player" application:

@ellisonleao
ellisonleao / renavam.py
Created December 21, 2016 18:13
Validador Renavam Python
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import unittest
def validar_renavam(renavam):
"""
No caso do RENAVAM, o DV (dígito verificador) módulo 11 é calculado
multiplicando cada dígito do número base pela sequência de multiplicadores
2, 3, 4, 5, 6, 7, 8, 9, 2 e 3, posicionados da direita para a esquerda.
@ellisonleao
ellisonleao / myweechat.md
Created March 14, 2017 00:29 — forked from pascalpoitras/config.md
My always up-to-date WeeChat configuration (weechat-dev)

WeeChat Screenshot

Enable mouse support

/mouse enable

Encrypted password in sec.conf

A Simple, Base16 Friendly, Weechat Setup

Scripts

  • Some must-have scripts
  /script install buffers.pl beep.pl urlserver.py highmon.pl