Skip to content

Instantly share code, notes, and snippets.

View carlosipe's full-sized avatar
⛰️
🪂

Carlos I. Peña carlosipe

⛰️
🪂
View GitHub Profile
@carlosipe
carlosipe / gist:0e6cbd39005a896c96ab
Created December 6, 2014 00:37
Convert mp4 to mp3
for i in *.m4a; do avconv -i "$i" "${i/.m4a/.mp3}"; done
ssh -R 9696:localhost:22 rocinante
and then in rocinante, ssh -p9696
f you try to install any version of Windows from USB falsh drive you may got this error: “Setup was unable to create a new system partition or locate an existing system partition”
I have already found tricky solution for Windows 7 but it didn’t help me with Windows 8.1.
So I have found another solution that will be suitable for any Windows version.
Basically you just need to copy all installation files from USB flash drive to your HDD (or SDD) drive and make it bootable, and then continue installation from HDD to HDD
Step by step instruction:
var casper = require('casper').create({
viewportSize: {width: 950, height: 950}
});
casper.start('http://www.google.com/', function() {
this.captureSelector('/tmp/pp.png', 'body');
});
casper.run();
@carlosipe
carlosipe / fb.js
Last active August 29, 2015 14:21 — forked from ganglio/fb.js
var casper = require('casper').create({
verbose : true,
logLevel : 'info'
});
var images = [];
var fs=require("fs")
/**
* Configuration here
*/
convert `ls -1v` file.pdf
for i in `find . |grep .ppt`;do catppt $i > "$i.txt";done
echo "options rtl8723be fwlps=N ips=N" | sudo tee /etc/modprobe.d/rtl8723be.conf
-Lenovo-G50-30:~$ time rbenv install 2.2.3 && rbenv global 2.2.3
Downloading ruby-2.2.3.tar.gz...
-> https://dqw8nmjcqpjn7.cloudfront.net/df795f2f99860745a416092a4004b016ccf77e8b82dec956b120f18bdc71edce
Installing ruby-2.2.3...
Installed ruby-2.2.3 to /home/carlos2/.rbenv/versions/2.2.3
real 15m2.534s
user 14m16.244s
sys 1m10.520s
sudo add-apt-repository ppa:ondrej/php5-5.6
sudo curl -sS https://getcomposer.org/installer | php
#Place the composer executable in a directory included in the system PATH.
sudo mv composer.phar /usr/local/bin/composer
#Ensure {USER} has ownership of files installed in their home directory.
sudo chown -hR {USER}:{USER} ~/
#Make sure Composer's global bin directory is on the system PATH.
sudo sed -i '1i export PATH="$HOME/.composer/vendor/bin:$PATH"' $HOME/.bashrc
source $HOME/.bashrc