/mouse enable
This file contains hidden or 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 | |
# This is a companion script to https://github.com/konstantin-kelemen/arduino-amiibo-tools | |
# The original post this was crafted for was https://games.kel.mn/en/create-amiibo-clones-with-arduino/ | |
# For more info go to https://games.kel.mn/en/companion-script-to-simplify-amiibo-cloning-with-arduino/ | |
#requirements: | |
#sha1sum (part of coreutils) | |
#xxd (part of vim) | |
#hexdump | |
#amiitool (https://github.com/socram8888/amiitool) |
This file contains hidden or 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
--- | |
# Copyright 2016, Logan Vig <[email protected]> | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# | |
# Unless required by applicable law or agreed to in writing, software |
This file contains hidden or 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
# prep host | |
apt update | |
apt purge nano | |
apt install git vim tmux fail2ban | |
# prep ssh key | |
key_path="${HOME}/.ssh" | |
key_file="${key_path}/id_rsa" | |
mkdir -p ${key_path} | |
chmod 700 ${key_path} |
This file contains hidden or 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
--- | |
cidr_networks: | |
container: 10.40.100.0/22 | |
storage: 10.40.244.0/22 | |
tunnel: 10.40.240.0/22 | |
used_ips: | |
- "10.40.100.2,10.40.100.50" | |
- "10.40.240.1,10.40.240.50" | |
- "10.40.244.1,10.40.244.50" |
This file contains hidden or 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
service_region: regionTwo | |
master_region_keystone_address: "10.53.3.2" | |
keystone_service_region: regionOne | |
keystone_service_adminuri: "{{ keystone_service_adminuri_proto }}://{{ master_region_keystone_address }}:{{ keystone_admin_port }}" | |
keystone_service_internaluri: "{{ keystone_service_internaluri_proto }}://{{ master_region_keystone_address }}:{{ keystone_service_port }}" | |
# Make sure your keystone_auth_admin_password in user_secrets for the second region matches the password from regionOne | |
# These settings avoid username collisions when using the same keystone | |
# deployment across multiple regions. |
This file contains hidden or 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
[program:uwsgi-emperor] | |
command=/usr/local/bin/uwsgi --emperor /etc/uwsgi/sites-enabled/ --pidfile /var/run/uwsgi/uwsgi-emperor.pid --auto-procname --emperor-stats-server /var/run/uwsgi/uwsgi-emperor-stats.sock | |
stdout_logfile=/var/log/uwsgi/%(program_name)s.log | |
redirect_stderr=true ; redirect proc stderr to stdout (default false) | |
autostart=true ; start at supervisord start (default: true) | |
autorestart=unexpected ; whether/when to restart (default: unexpected) | |
priority=998 ; the relative start priority (default 999) |
This file contains hidden or 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
graham@jump:~/repos/github/phhusson/quassel-irssi/core/lib$ git diff | |
diff --git a/getters.c b/getters.c | |
index e6bb564..51da7b7 100644 | |
--- a/getters.c | |
+++ b/getters.c | |
@@ -160,6 +160,8 @@ void get_variant_t(char **buf, int type) { | |
case 16: | |
get_date(buf); | |
break; | |
+ case 22: |
Run this in order to backup all you k8s cluster data. It will be saved in a folder bkp. To restore the cluster, you can run kubectl apply -f bkp
.
Please note: this recovers all resources correctly, including dynamically generated PV's. However, it will not recover ELB endpoints. You will need to update any DNS entries manually, and manually remove the old ELB's.
Please note: This has not been tested with all resource types. Supported resource types include:
- services
- replicationcontrollers
- secrets
- deployments
- horizontal pod autoscalers
This file contains hidden or 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/env python | |
import timeit | |
loops = 1000 | |
setup = """ | |
import MySQLdb | |
db = MySQLdb.connect(host="remotedb.example.com", | |
read_default_file="/root/.my.cnf", |