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

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@Quantium
Quantium / gitstats_automata
Last active December 21, 2015 07:49
This is a little shell script for update, join and run gitstats on several repositories in order to see only one gitstats project
#!/bin/sh
echo --------
allrepos='';
c=0;
for D in ~/repos/*;do
if [ -d "${D}" ];
then
cd "${D}";
pwd;
#Can't exist a repository with the name 'www'"
@Quantium
Quantium / gist:5543602
Last active December 17, 2015 03:29
What distro you are using.
echo 'To know what linux distro you are using.'
lsb_release -a
echo 'or'
cat /etc/issue
@Quantium
Quantium / SSH VirtualBox VM Cloning
Created January 24, 2013 19:08
Debian VirtualBox Virtual Machine Cloning with ssh
vboxmanage createvm --name skydev --ostype Debian --basefolder VirtualBox\ VMs/skydev --register
vboxmanage storagectl skydev --name LsiLogic --add scsi --controller LsiLogic
VBoxManage storageattach "skydev" --storagectl LsiLogic --port 0 --device 0 --type hdd --medium sky.vdi
vboxmanage startvm skydev --type headless
vboxmanage controlvm skydev poweroff
@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))...