This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var page = require('webpage').create(); | |
page.onConsoleMessage = function(msg, lineNum, sourceId) { | |
console.log('CONSOLE: ' + msg + ' (from line #' + lineNum + ' in "' + sourceId + '")'); | |
}; | |
console.log("Antes de llamara a la carga") | |
page.onCallback = function(data){ | |
console.log("llamda a onCallBack a través de window número "+data) | |
success=page.render("example_"+data+".png") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#List all containers (only IDs) | |
docker ps -aq | |
#Stop all running containers. | |
docker stop $(docker ps -aq) | |
#Remove all containers. | |
docker rm $(docker ps -aq) | |
#Remove all images. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git clone https://git.myrepo.com/group/reponame.git | |
cd reponame | |
git branch -r | grep -v '\->' | while read remote; do git branch --track "${remote#origin/}" "$remote"; done | |
git fetch --all | |
git pull --all | |
cd .. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://superuser.com/questions/178587/how-do-i-detach-a-process-from-terminal-entirely | |
"You can background it by first stopping it (hit Ctrl-Z) and then typing bg to let it resume in the background. It's now a "job", and its stdout/stderr/stdin are still connected to your terminal." | |
You can start a process as backgrounded immediately by appending a "&" to the end of it: firefox & |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#Create a directory to store the data in | |
mkdir nexus-data | |
chown -R 200:200 nexus-data | |
#Launch docker with a volume | |
docker run -d -p 28081:28081 --name nexus -v $(pwd)nexus-data:/sonatype-work sonatype/nexus3 | |
#show log | |
docker logs -f nexus3 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Comprobar qué unidades hay conectadas | |
sudo blkid | |
#Crear el punto de montaje | |
sudo mkdir /mnt/vol1 | |
#Realizar montaje de unidad | |
sudo mount /dev/sdd2 /mnt/vol1/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Install vbox tools | |
sudo apt-get install virtualbox-guest-additions-iso | |
#Resize volume (increase). In MB and tellin the vdi location | |
VBoxManage modifyhd “C:\Users\Chris\VirtualBox VMs\Windows 7\Windows 7.vdi” --resize 81920 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Checking the size | |
echo $HISTFILESIZE $HISTSIZE | |
#Chaning the size | |
HISTFILESIZE=10000000 | |
HISTSIZE=10000000 | |
#Later execute | |
echo $HISTFILESIZE $HISTSIZE |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
127.0.0.1 localhost | |
127.0.1.1 XPS-8700 | |
127.0.0.1 forocoches.com | |
127.0.0.1 www.forocoches.com | |
127.0.0.1 marca.com | |
127.0.0.1 marca.es | |
127.0.0.1 www.elmundo.es | |
127.0.0.1 elmundo.es | |
127.0.0.1 meneame.net | |
127.0.0.1 facebook.com |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cp $(find . |grep '\.war$' |grep target) /tmp/war |
NewerOlder