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| "*": | |
| "ansible-vault": | |
| vault_automatic_de_and_encrypt: true | |
| "atom-beautify": | |
| php: {} | |
| "autocomplete-ansible": | |
| pythonPaths: "/usr/local/Cellar/ansible/2.3.2.0_1/libexec/bin/python2.7" | |
| autosave: | |
| enabled: true | |
| core: |
| { | |
| "Version": "2012-10-17", | |
| "Statement": [ | |
| { | |
| "Effect": "Allow", | |
| "Action": [ | |
| "logs:CreateLogGroup", | |
| "logs:CreateLogStream", | |
| "logs:PutLogEvents", | |
| "logs:DescribeLogStreams" |
| #!/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 |
| Content Type: %{content_type}\n | |
| HTTP Code: %{http_code}\n | |
| HTTP Connect: %{http_connect}\n | |
| Number Connects: %{num_connects}\n | |
| Number Redirects: %{num_redirects}\n | |
| Redirect URL: %{redirect_url}\n | |
| Size Download: %{size_download}\n | |
| Average speed download: %{speed_download}\n | |
| Size Upload: %{size_upload}\n | |
| SSL Verify: %{ssl_verify_result}\n |
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| 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', |
| #!/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/bash | |
| # Replace string in all files in a directory (macOS) | |
| grep -Rnl "old_string" **/*.txt | xargs sed -i "" 's/old_string/new_string/g' |
| - 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 |