I hereby claim:
- I am nickgravel on github.
- I am nickgravel (https://keybase.io/nickgravel) on keybase.
- I have a public key whose fingerprint is CF9D EFCE D85C C190 70A2 BB69 1652 CE79 7874 7875
To claim this, I am signing this object:
#!/bin/bash | |
if [ -n "$1" ] | |
then | |
FILENAME=$1 | |
else | |
echo "Please specify a filename. e.g. ./gencsr www.example.com" >&2 | |
exit 1 | |
fi |
-- Here’s a handy script to list your MySQL table sizes in MB. | |
SET @table_schema = '{YOUR_SCHEMA_NAME}'; -- replace with your schema name | |
SELECT table_name AS "Tables", | |
ROUND(((data_length + index_length) / 1024 / 1024), 2) "Size in MB" | |
FROM information_schema.TABLES | |
WHERE table_schema = @table_schema | |
ORDER BY (data_length + index_length) DESC; |
I hereby claim:
To claim this, I am signing this object:
<IfModule mod_expires.c> | |
ExpiresActive on | |
ExpiresDefault "access plus 1 month" | |
# CSS | |
ExpiresByType text/css "access plus 1 year" | |
# Data interchange | |
ExpiresByType application/json "access plus 0 seconds" | |
ExpiresByType application/ld+json "access plus 0 seconds" |
Workshop Instructor:
This workshop is distributed under a CC BY-SA 4.0 license.
The goal of this workshop is to teach you how to configure and run your own Matrix/Riot service. By the end of the workshop, you should be able to log into secure chat rooms and invite others to the same server.
MYDOMAIN.com { | |
encode gzip | |
reverse_proxy 127.0.0.1:3333 { | |
health_uri /health | |
lb_try_duration 30s | |
} | |
} |
You were updating some *nix firewall rules or network configs over a remote connection and changed the wrong setting. Oops, now you’re locked out and feeling helpless.
Next time, follow the steps below to undo your network mistakes and avoid getting locked out permanently. The example commands illustrate how you’d recover from fucking-up a sshd_config change.
Upon connecting to the remote server, immediately make a backup of the file(s) you need to modify.
cp /etc/ssh/sshd_config /etc/ssh/sshd_config.old