Skip to content

Instantly share code, notes, and snippets.

View carlosipe's full-sized avatar
⛰️
🪂

Carlos I. Peña carlosipe

⛰️
🪂
View GitHub Profile
docker run --name phpmyadmin-mysql -e MYSQL_ROOT_PASSWORD=password -d mysql
Start PHPMyAdmin
docker run -d --link phpmyadmin-mysql:mysql -e MYSQL_USERNAME=root --name phpmyadmin -p 80 corbinu/docker-phpmyadmin
curl -sSL https://get.docker.com/ | sh
sudo bash
curl -L https://github.com/docker/compose/releases/download/1.4.0/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose
#https://docs.docker.com/compose/
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
-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
echo "options rtl8723be fwlps=N ips=N" | sudo tee /etc/modprobe.d/rtl8723be.conf
for i in `find . |grep .ppt`;do catppt $i > "$i.txt";done
convert `ls -1v` file.pdf
@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
*/
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();
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: