Download the snapshots using wget.
cd snapshots
wget --trust-server-names <URL>
/////// | |
// Warning, code untested | |
/////// | |
type Thinger interface { | |
SomeMethod( arg bool ) bool | |
} | |
type RealThing struct { | |
state bool |
1.) Download a Nerd Font
2.) Unzip and copy to ~/.fonts
3.) Run the command fc-cache -fv
to manually rebuild the font cache
SSH Login as openvpnas user | |
$ ssh openvpnas@<open-vpn-server-ip> | |
$ cd /usr/local/openvpn_as/scripts/ # Go to OpenVPN AS Scripts directory | |
$ sudo ./sacli --user USERNAME GoogleAuthRegen # Replace USERNAME with username to get a new Google Authenticator Secret | |
Source: https://forums.openvpn.net/viewtopic.php?t=15366 |
# Read more about Slack webhooks here: https://api.slack.com/messaging/webhooks | |
curl -X POST \ | |
-H 'Content-type: application/json; charset=utf-8' \ | |
--data '{ "channel": "#mychannel", "username": "superbot", "icon_emoji": ":bot:", "text": "Foo" }' \ | |
https://hooks.slack.com/services/T00000000/B00000000/XXXXXXXXXXXXXXXXXXXXXXXX |
# | |
# Git attributes for Unity projects | |
# | |
# Compiled by the GameCI community - https://game.ci | |
# | |
# Latest version at https://gist.github.com/webbertakken/ff250a0d5e59a8aae961c2e509c07fbc | |
# | |
# Ensure that text files that any contributor introduces to the repository have their line endings normalized | |
* text=auto |
#!/bin/bash | |
# | |
# Ashutosh Agrawal | |
# http://blog.theprogrammer.in | |
# | |
# | |
# This bash script simply fetches the log for that hour from Amazon RDS, | |
# parse and genarlise it using mysql_slow_log_parser (https://gist.github.com/theprogrammerin/e3206a4ec7a7a4086ac2) | |
# and then push the parsed log to elastic search using logstash (slowquery.conf)(https://gist.github.com/theprogrammerin/034a3efd849112d166ea) | |
# For analysis on analytic tool like kibana. |
#!/bin/bash | |
set -o pipefail -o errexit -o nounset -o errtrace | |
mkdir -p backup/ | |
for ns in $(kubectl get ns --no-headers -o jsonpath='{range .items[*]}{.metadata.name}{"\n"}{end}'); do | |
kubectl --namespace="${ns}" get -o=yaml role,rolebinding,secret,configmap | \ | |
yq eval ' | |
del( |
apiVersion: v1 | |
kind: Secret | |
metadata: | |
name: index-template | |
stringData: | |
template: '{"index_patterns":["logstash-*"],"template":{"aliases":{"logstash":{}},"mappings":{"dynamic":"true","dynamic_date_formats":["strict_date_optional_time","yyyy/MM/dd HH:mm:ss Z||yyyy/MM/dd Z"],"dynamic_templates":[]},"settings":{"index":{"lifecycle":{"name":"logstash_policy","rollover_alias":"logstash"},"number_of_shards":"1","number_of_replicas":"0"}}}}' |