gpg --full-generate-key;
Look for your Key ID in using the following command:
#!/bin/sh | |
# Check configuration file | |
sudo varnishd -C -f /path/to/default.vcl -p vcl_dir=/path/to/vcl_dir | |
# Ban/Purge a URL | |
sudo varnishadm "ban req.http.host ~ ^<hostname>$ && req.url ~ ^<url>$" | |
# Change configuration | |
## Show list of configurations |
#!/bin/bash | |
# Clone the old repo using the mirror option | |
git clone --mirror git@git.my-old-server.com:my-old-repo.git | |
# Enter the new clonned repo directory | |
cd my-old-repo.git | |
# Add the new remote repo | |
git remote add new_origin git@git.my-new-server.com:my-new-repo.git |
#!/bin/sh | |
# Delete last commit already pushed to a remote repository | |
git reset HEAD^ --hard; | |
git push origin -f; | |
# Change remote URL | |
git remote set-url origin <repo_url> | |
# Revert local changes to move back to the origin is |
- Search and replace: :%s/foo/bar/g | |
- Delete text block: ma + d'a | |
- Macro: qd, <commands>, then q, apply with @d and @@ | |
- Write as sudo: :w !sudo tee % | |
- Increase/Decrease number: Ctl+A Ctl+X |
module.exports = { | |
config: { | |
fontSize: 14, | |
fontFamily: '"Fira Mono", Menlo, "DejaVu Sans Mono", Consolas, "Lucida Console", monospace', | |
cursorColor: 'cyan', | |
cursorShape: 'BEAM', | |
cursorBlink: false, | |
foregroundColor: '#ffffff', | |
backgroundColor: '#000000', | |
borderColor: '#000000', |
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Effect": "Allow", | |
"Action": [ | |
"s3:ListAllMyBuckets" | |
], | |
"Resource": [ | |
"arn:aws:s3:::my-bucket" |
# Configure variables | |
OPENSHIFT_PACKAGE=https://github.com/openshift/origin/releases/download/v3.11.0/openshift-origin-client-tools-v3.11.0-0cbc58b-linux-64bit.tar.gz | |
OPENSHIFT_HOSTNAME=openshift.xip.io | |
# Install Docker | |
sudo yum install docker -y | |
sudo usermod -aG docker ec2-user | |
# Add insecure registry to Docker |
The following commands are rquiered to expoand a partition and resize the file system of an EBS volume. Those steps work in EBS volumes including root volumes and can be done while they are attached to a running instance (zero downtime)
df -H