Skip to content

Instantly share code, notes, and snippets.

@Raiuc
Raiuc / hosts
Created November 13, 2018 00:55 — forked from consti/hosts
/etc/hosts to block shock sites etc.
# This hosts file is brought to you by Dan Pollock and can be found at
# http://someonewhocares.org/hosts/
# You are free to copy and distribute this file for non-commercial uses,
# as long the original URL and attribution is included.
#<localhost>
127.0.0.1 localhost
127.0.0.1 localhost.localdomain
255.255.255.255 broadcasthost
::1 localhost
@Raiuc
Raiuc / tmux-cheatsheet.markdown
Created October 19, 2018 23:05 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@Raiuc
Raiuc / Markov_Experiment_II.rtf
Created December 11, 2017 05:51 — forked from jacobjoaquin/Markov_Experiment_II.rtf
SuperCollider Markov Experiment II
// SuperCollider Markov Experiment II
// August 21st, 2011
// Jacob Joaquin
// CodeHop.com
//
// Translated from Csound:
// http://codehop.com/markov-experiment-ii/
SynthDef(\my_synth, {|dur = 1.0, amp = 1.0, freq = 440|
var env = EnvGen.ar(Env.new([1, 0.1, 0], [0.06, dur - 0.06]), doneAction: 2);
@Raiuc
Raiuc / guinicorn_app_start
Created November 6, 2016 00:34 — forked from SyNeto/guinicorn_app_start
gunicorn virtualenv init.d script (could be simpler with upstart)
#! /bin/bash
### BEGIN INIT INFO
# Provides: yourapp
# Required-Start: nginx
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: The main django process
# Description: The gunicorn process that receives HTTP requests
# from nginx