Skip to content

Instantly share code, notes, and snippets.

View Quantium's full-sized avatar
🧮

Andrés González Aragón Quantium

🧮
View GitHub Profile
@Quantium
Quantium / APC Centos Install
Created January 24, 2013 19:06
APC (Alternative PHP Cache) Installation on Centos
sudo yum install php-pear
sudo yum install httpd-devel
sudo yum install pcre-devel
sudo pecl install apc
#Add tophp.ini:
extension=apc.so
UPDATE ps_specific_price SET reduction = 1-((1-reduction)*(1-0.1))...
@Quantium
Quantium / fuzz.js
Created April 22, 2015 23:10
Fuzzy logic timelapse simulation
var fuzzylogic = require('fuzzylogic'),
colors = require('colors');
function simulate(ttl){
var timelapse = ttl*1000;
var half = timelapse /2;
var qrt = half/2;
//Cuando se guardó el caché
@Quantium
Quantium / gist:e6a493dbe2d89c16830b
Created July 7, 2014 20:08
Find raspberry machines IPs on local network
sudo nmap -sP 192.168.1.0/24 | awk '/^Nmap/{ip=$NF}/B8:27:EB/{print ip}'
@Quantium
Quantium / github_account_regex
Created May 14, 2014 01:15
Github account Regex
var githubAccount = /^(?:https?:\/\/)?(?:www\.)?(?:github\.com\/(\w+))\/?$/

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname