View restyling_template.user.js
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
// ==UserScript== | |
// @name Fix some style in GreaseMonkey | |
// @match *://example.com/* | |
// @copyright 2016+, You | |
// @grant GM_addStyle | |
// ==/UserScript== | |
GM_addStyle ( " \ | |
// ADD YOUR CSS HERE | |
" ); |
View docker.sh
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
#for not running docker, use save: | |
docker save <dockernameortag> | gzip > mycontainer.tgz | |
#for running or paused docker, use export: | |
docker export <dockernameortag> | gzip > mycontainer.tgz | |
#load | |
gunzip -c mycontainer.tgz | docker load |
View README.md
Simple WireGuard configuration
1 server, 2 clients
Getting started
Install Wireguard on all machines.
Generate all keys
View Google Drive Sync Wine Scripting.md
Google Drive Sync Wine Scripting
This is a set of scripts that help running Google Drive Backup and Sync under Wine, with multiple Google accounts.
Each account is given its own Wine prefix (a separate wine configuration).
To install, run install-gdrive-sync google_account
List the accounts set up in ~/.config/gdrive-accounts
View spaceship-prompt_ssh.zsh
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
# | |
# Alive SSH Connections | |
# | |
SPACESHIP_SSH_SHOW="${SPACESHIP_SSH_SHOW=true}" | |
SPACESHIP_SSH_COLOR="${SPACESHIP_SSH_COLOR="yellow"}" | |
# ------------------------------------------------------------------------------ | |
# Section | |
# ------------------------------------------------------------------------------ |
View letsencrypt-webroot-apache.md
Config Apache with /etc/apache2/conf-available/le.conf
:
Alias /.well-known/acme-challenge/ "/var/www/html/.well-known/acme-challenge/"
<Directory "/var/www/html/">
AllowOverride None
Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
Require method GET POST OPTIONS
</Directory>
View queueCounter.sh
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 | |
MAIL_BIN=`command -v mail` | |
QUEUE_SIZE=`/usr/sbin/postqueue -p | tail -n1 | awk '{print $5}'` | |
QUEUE_SUMMARY=`/usr/sbin/qshape -s deferred | head` | |
MAILTO="xxx@gmail.com" | |
LIMIT=100 | |
function send_notification_mail() { | |
echo $QUEUE_SUMMARY | $MAIL_BIN -s "WARNING: mail queue critical on $HOSTNAME" $MAILTO |
View encrypt_decrypt.sh
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
# Encryption functions. Requires the GNUpg "gpg" commandline tool. On OS X, "brew install gnupg" | |
# Explanation of options here: | |
# --symmetric - Don't public-key encrypt, just symmetrically encrypt in-place with a passphrase. | |
# -z 9 - Compression level | |
# --require-secmem - Require use of secured memory for operations. Bails otherwise. | |
# cipher-algo, s2k-cipher-algo - The algorithm used for the secret key | |
# digest-algo - The algorithm used to mangle the secret key | |
# s2k-mode 3 - Enables multiple rounds of mangling to thwart brute-force attacks | |
# s2k-count 65000000 - Mangles the passphrase this number of times. Takes over a second on modern hardware. | |
# compress-algo BZIP2- Uses a high quality compression algorithm before encryption. BZIP2 is good but not compatible with PGP proper, FYI. |
View keybase.md
Keybase proof
I hereby claim:
- I am akhiljalagam on github.
- I am akhiljalagam (https://keybase.io/akhiljalagam) on keybase.
- I have a public key ASA2eZrK4wVipx-wpBWXaW3fj8tcfpT5d9OAnR6igb9qcAo
To claim this, I am signing this object:
NewerOlder