This file contains 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
<?php | |
// Setup Theme | |
function theme_setup() { | |
/* * * * * | |
* Enable plugins to manage the document title | |
* http://codex.wordpress.org/Function_Reference/add_theme_support#Title_Tag | |
*/ | |
add_theme_support('title-tag'); |
This file contains 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
# Backup | |
docker exec CONTAINER /usr/bin/mysqldump -u root --password=root DATABASE > backup.sql | |
# Restore | |
cat backup.sql | docker exec -i CONTAINER /usr/bin/mysql -u root --password=root DATABASE | |
This file contains 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/sh | |
keylength=8 | |
algo=$1 | |
[[ "$algo" = "aes" ]] && keylength=16 | |
[[ "$algo" = "3des" ]] && keylength=24 | |
encfile=$(mktemp -t _encXXXXXX) && \ | |
keyfile=$(mktemp -t _encXXXXXX) && \ | |
dd if=/dev/urandom of="$keyfile" bs="$keylength" count=1 >/dev/null 2>&1 && \ |
This file contains 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 | |
EMAIL="[email protected]" | |
ssh-keygen -t rsa -b 4096 -N '' -C "${EMAIL}" -f ~/.ssh/id_rsa | |
ssh-keygen -t rsa -b 4096 -N '' -C "${EMAIL}" -f ~/.ssh/github_rsa | |
ssh-keygen -t rsa -b 4096 -N '' -C "${EMAIL}" -f ~/.ssh/mozilla_rsa |
OlderNewer