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
Verifying that +terminal is my blockchain ID. https://onename.com/terminal |
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 | |
echo ========================================================================== | |
echo This will disable openSSH roaming for your user | |
echo ========================================================================== | |
echo | |
ssh -v -T -o StrictHostKeyChecking=no [email protected] 2>&1 | grep Roaming | |
if [ $? == '0' ] | |
then | |
cat <<EOM >>~/.ssh/config | |
# |
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
--- | |
# This is a stripped version of some code I wrote to bake windows AMIs with ansible through a bastion. | |
# It works but may need some coaxing if you are going to use it. It was a work-in-progress when we | |
# realized that we didn't need to do this for unrelated reasons. YMMV ~Alex | |
- name: "Start base image" | |
hosts: localhost | |
gather_facts: False | |
connection: local | |
vars: |
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
# this code will untangle files that have been accidentally overwritten in a versioning-enabled s3 bucket | |
# contact [email protected] for assistance | |
import boto.s3.connection, sys | |
from collections import defaultdict | |
accessKey="XXXXXXXX/XXXXXX.XXXX" | |
secretKey="XXXXXXX/XXXXXXXXXXX.XXXXXXXXX.XXXXXXXXXX" | |
srcKeyPrefix="path/to/key" #no leading or trailing slash | |
srcBucket="destination-bucket-name-here" |
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 | |
### | |
# Written by Alex N. Speaks | |
# Takes the position in which a NIC appears in the vmware console as an argument. | |
# Returns the ethernet device name that corresponds to that position number. | |
# Position numbers start at 0 | |
# You can think of this as the old-style ethX number | |
NIC_INDEX=$1 |
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
# This is *a* way to deploy kubernetes manifests with ansible but it doesn't currently work very well.. | |
# the python library that ansible uses to call kubernetes isn't up to date. See the following link for details | |
# https://github.com/ansible/ansible/issues/36676#event-1510125400 | |
#- name: "install requirements for ansible k8s_raw module" | |
# pip: | |
# name: "{{ item.name }}" | |
# version: "{{ item.version }}" | |
# state: present with_items: | |
# - { name: "openshift", version: "0.5.0" } |
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
import re | |
import fileinput | |
import sys | |
old_caps_underscored_var=sys.argv[1] | |
old_lower_underscored_var=old_caps_underscored_var.lower() | |
old_lower_dashed_var=old_lower_underscored_var.replace("_","-") | |
new_caps_underscored_var=sys.argv[2] | |
new_lower_underscored_var=new_caps_underscored_var.lower() |
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
--- | |
- name: "Disable swap" | |
command: "swapoff -a" | |
- name: "Remove swap from fstab" | |
lineinfile: | |
path: /etc/fstab | |
state: absent | |
regexp: '^.*(\t| )swap(\t| )sw(\t| ).*$' |
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 | |
set -e | |
# if parameters that start with '-' were passed to the script via the CMD directive then concat | |
# them to the string 'mongod' | |
if [ "${1:0:1}" = '-' ]; then | |
set -- mongod "$@" | |
fi | |
# if the last conditional statement was triggered or if we're running without any parameters |
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
properties([ | |
buildDiscarder( | |
logRotator( | |
artifactDaysToKeepStr: '', | |
artifactNumToKeepStr: '', | |
daysToKeepStr: '60', | |
numToKeepStr: '' | |
) | |
), | |
pipelineTriggers([githubPush()]) |
OlderNewer