Moved to webplatform/ops in salt-master/
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
UNAME="$(uname)" | |
WHOAMI="$(id -u)" | |
function pidport() { | |
local colourify='/usr/local/bin/grc -es --colour=auto' | |
if [ -z "${1}" ]; | |
then | |
echo "usage: $FUNCNAME port <protocol (tcp/udp default: any)>" |
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
{ | |
"AWSTemplateFormatVersion":"2010-09-09", | |
"Description":"Multi-AZ VPC (2 public and 2 private subnets) with redundant Gateway NATs", | |
"Parameters":{ | |
"NamePrefix":{ | |
"Description":"A string that will be prepended to stack resource names", | |
"Type":"String", | |
"Default":"CHANGEME" | |
}, | |
"VpcCidr":{ |
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
from flask import Flask | |
from flask import request | |
import json | |
import requests | |
import hashlib as hasher | |
import datetime as date | |
node = Flask(__name__) | |
# Define what a Snakecoin block is | |
class Block: |
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 | |
###### | |
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED | |
# TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL | |
# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF | |
# CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | |
# DEALINGS IN THE SOFTWARE. | |
###### |
I hereby claim:
- I am scottk212 on github.
- I am scottk212 (https://keybase.io/scottk212) on keybase.
- I have a public key ASDaled25OBD07nY1rwCPjUikAHn8wkvXaeD750ycQOuSQo
To claim this, I am signing this object:
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 | |
# copy the database source files to destination | |
dbname='palus' | |
source='/DATA/4GLV/tokudb/' | |
destip='192.168.150.137' | |
destuser='db' | |
destpass='db' | |
destport='3306' |
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
#-----------------------------------------------# | |
# oathtool totp google 2 factor | |
#-----------------------------------------------# | |
# if you have already set up 2 factor authentication with your phone | |
# you need to remove it from your phone and google authenticator app | |
# this wont invalidate your backup codes or application codes | |
# login to your google account go to 2 factor authentication, |
NewerOlder