I hereby claim:
- I am johnpreston on github.
- I am johnpreston78 (https://keybase.io/johnpreston78) on keybase.
- I have a public key whose fingerprint is 5C93 2084 E03F 7DD1 3ED8 16A4 9145 77AC 111D 1F0A
To claim this, I am signing this object:
AWS ARN TOPIC (py 3.6, re) | |
'(arn:aws:sns:([a-z]{2})-(east|west|central)-([0-9]{1}):([0-9]{12}):([a-z0-9]{1,256}))?' | |
I hereby claim:
To claim this, I am signing this object:
[Unit] | |
Description=Add Secondary IP | |
After=network-service.target network.target | |
Wants=network.target | |
[Service] | |
Type=forking | |
ExecStart=/etc/addip.sh 10.163.59.174/21 |
#!/bin/sh | |
if [ $# -ne 1 ]; then | |
echo "Usage: addip.sh IPv4CIDR" | |
exit 1 | |
fi | |
IPCIDR=$1 |
zypper ar http://smt-ec2.susecloud.net/repo/SUSE/Products/SLE-Module-Adv-Systems-Management/12/x86_64/product?credentials SMT-http_smt-ec2_susecloud_net:SLE-Module-Adv-Systems-Management12-Pool | |
zypper ar http://smt-ec2.susecloud.net/repo/SUSE/Updates/SLE-Module-Adv-Systems-Management/12/x86_64/update?credentials SMT-http_smt-ec2_susecloud_net:SLE-Module-Adv-Systems-Management12-Updates | |
zypper ar http://smt-ec2.susecloud.net/repo/SUSE/Products/SLE-Module-Containers/12/x86_64/product?credentials SMT-http_smt-ec2_susecloud_net:SLE-Module-Containers12-Pool | |
zypper ar http://smt-ec2.susecloud.net/repo/SUSE/Updates/SLE-Module-Containers/12/x86_64/update?credentials SMT-http_smt-ec2_susecloud_net:SLE-Module-Containers12-Updates | |
zypper ar http://smt-ec2.susecloud.net/repo/SUSE/Products/SLE-Module-Legacy/12/x86_64/product?credentials SMT-http_smt-ec2_susecloud_net:SLE-Module-Legacy12-Pool | |
zypper ar http://smt-ec2.susecloud.net/repo/SUSE/Updates/SLE-Module-Legacy/12/x86_64/update?credentials SMT-http_smt-ec2_susecloud_n |
#!/usr/bin/env bash | |
vdisplay | grep Path | grep LV | awk '{print $NF}' | xargs -i -P 1 lvremove -f {} | |
vgdisplay | grep Name | awk '{print $NF}' | xargs -i -P 1 vgremove -f {} | |
pvdisplay | grep Name | grep PV | awk '{print $NF}' | xargs -i -P 1 pvremove -f {} | |
fdisk -l | grep xvd | grep -v xvd[a-i] | grep -v Disk | awk '{print $1}' | sed 's/[0-9]//g' | xargs -i -P1 parted -s {} rm 1 |
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Sid": "Stmt1476739808000", | |
"Effect": "Allow", | |
"Action": [ | |
"autoscaling:DescribeAutoScalingGroups", | |
"autoscaling:DescribeAutoScalingInstances", | |
"autoscaling:DescribeLaunchConfigurations", |
import base64 | |
import uuid | |
import httplib | |
import urlparse | |
import json | |
import boto3 | |
import string | |
import random | |
import base64 | |
import uuid | |
import httplib | |
import urlparse | |
import json | |
import boto3 | |
import string | |
import random | |
#!/usr/bin/env python | |
""" | |
Script to remove all folders in the given path that are older than 24H | |
""" | |
import os | |
import sys | |
import argparse | |
import datetime |