Skip to content

Instantly share code, notes, and snippets.

View mrmicahcooper's full-sized avatar
🥋
Focusing

Micah Cooper mrmicahcooper

🥋
Focusing
View GitHub Profile
@alanpeabody
alanpeabody / my_app.ex
Last active February 19, 2025 16:29
Websockets in Elixir with Cowboy and Plug
defmodule MyApp do
use Application
def start(_type, _args) do
import Supervisor.Spec, warn: false
children = [
Plug.Adapters.Cowboy.child_spec(:http, MyApp.Router, [], [
dispatch: dispatch
])
@hogihung
hogihung / How_To_Install_Oracle_Client_CentOS
Created November 11, 2014 13:05
Installing Oracle Client on CentOS, with Ruby support
[username@hostname Downloads]$ ls -l
total 67196
-rw-rw-r-- 1 username username 67349889 Aug 19 19:37 oracle-instantclient12.1-basic-12.1.0.1.0-1.i386.rpm
-rw-rw-r-- 1 username username 629474 Aug 19 19:37 oracle-instantclient12.1-devel-12.1.0.1.0-1.i386.rpm
-rw-rw-r-- 1 username username 824523 Aug 19 19:36 oracle-instantclient12.1-sqlplus-12.1.0.1.0-1.i386.rpm
[username@hostname Downloads]$ sudo rpm -i oracle-instantclient12.1-basic-12.1.0.1.0-1.i386.rpm
[sudo] password for username:
[username@hostname Downloads]$ sudo rpm -i oracle-instantclient12.1-devel-12.1.0.1.0-1.i386.rpm
[username@hostname Downloads]$ sudo rpm -i oracle-instantclient12.1-sqlplus-12.1.0.1.0-1.i386.rpm
[username@hostname Downloads]$ sqlplus
@camerond
camerond / whitespace-reset.sass
Last active March 5, 2016 21:39
Tantek Celik's Whitespace Reset in SASS
// Tantek Celik's Whitespace Reset
// Author: Tantek Celik, Shane Riley
// Version: (CC) 2010 Some Rights Reserved - http://creativecommons.org/licenses/by/2.0
// Description: Resets default styling of common browsers to a common base
ul,ol
list-style: none
h1,h2,h3,h4,h5,h6,pre,code
font-size: 1em
ul,ol,li,h1,h2,h3,h4,h5,h6,pre,form,body,html,p,blockquote,fieldset,input,dl,dt,dd, figure, figcaption, button
@naholyr
naholyr / _service.md
Created December 13, 2012 09:39
Sample /etc/init.d script

Sample service script for debianoids

Look at LSB init scripts for more information.

Usage

Copy to /etc/init.d:

# replace "$YOUR_SERVICE_NAME" with your service's name (whenever it's not enough obvious)