- telnet
- qemu
- samba
Command to install the requirements:
apt-get update && \
apt-get install -y \
cp /etc/apt/sources.list /etc/apt/sources.list.bak | |
sudo sed -i -re 's/([a-z]{2}.)?archive.ubuntu.com|security.ubuntu.com/old-releases.ubuntu.com/g' /etc/apt/sources.list | |
sudo apt-get update |
git add <file> | |
git update-index --chmod=+x <file> | |
git commit -m 'adding execute permissions' |
cat /dev/urandom | tr -dc A-Za-z0-9 | head -c 32 ; echo ' ' |
#Stop docker service | |
sudo service docker stop | |
#Define the new folder to contain the all the docker data | |
sudo nano /etc/docker/daemon.json | |
{ | |
"data-root": "/path/to/your/new/docker/root" | |
} | |
#Copy docker data folder to the same location indicated in data-root field in daemon.json |
#!/bin/bash | |
# Script is needed because my default firewall rules are messed up and after | |
# every restart, docker containers can't make connections to the host, notably | |
# preventing debuggers like xdebug from attaching. | |
# If networking fails in your containers but works in others, rm and re-create the | |
# docker network that container is bound to. | |
set -euo pipefail |
Start QEMU with QMP UNIX socket and connect:
qemu-system-x86_64 -qmp unix:test.socket,server,nowait ...
nc -U test.socket
qmp-shell test.socket # use the raw qmp interface. see https://github.com/0xef53/qmp-shell
qmp-shell -H test.socket # use the human interface. see https://github.com/0xef53/qmp-shell
# Set hostname and port of Selenium Grid Hub: | |
GRID_HOST="localhost" | |
GRID_PORT=4444 | |
# Create new session, by specifying capabilities (in this case, just Chrome) to get a connection to a browser on a selenium node | |
# Store this session ID in a variable so we can use it for the other commands | |
SESSION_ID=`curl -X POST http://$GRID_HOST:$GRID_PORT/wd/hub/session -d '{"desiredCapabilities":{"browserName":"chrome"}}'| grep '"sessionId"' | sed 's/.*sessionId": "\(.*\)".*/\1/g'` | |
# Tell the browser to load the URL for LMGTFY | |
curl -X POST http://$GRID_HOST:$GRID_PORT/wd/hub/session/$SESSION_ID/url -d '{"url":"https://lmgtfy.com"}' |
See how a minor change to your commit message style can make a difference.
git commit -m"<type>(<optional scope>): <description>" \ -m"<optional body>" \ -m"<optional footer>"
#!/bin/bash | |
echo "removing evaluation key" | |
rm ~/.IntelliJIdea2017.3/config/eval/idea173.evaluation.key | |
echo "resetting evalsprt in options.xml" | |
sed -i '/evlsprt/d' ~/.IntelliJIdea2017.3/config/options/options.xml | |
echo "resetting evalsprt in prefs.xml" | |
sed -i '/evlsprt/d' ~/.java/.userPrefs/prefs.xml |