View gist:ffb60e707309913b34da2a1c103c0fc2
yum -y install https://centos7.iuscommunity.org/ius-release.rpm | |
yum install -y tmux2u |
View smtp-gmail-send.go
package main | |
import ( | |
"log" | |
"net/smtp" | |
) | |
func main() { | |
send("hello there") | |
} |
View gist:55f873752a560bb9da887927f4aa0083
Host * | |
StrictHostKeyChecking no | |
Host public1 | |
HostName 3.10.22.155 | |
IdentityFile /Users/jameel/.ssh/DevOps-eu-west-2.pem | |
User ec2-user | |
Host private1 |
View python_mysql.py
import mysql.connector | |
from mysql.connector import errorcode | |
config = { | |
'user': 'root', | |
'password': '', | |
'host': 'localhost', | |
'database': 'acme' | |
} |
View alias
[toplevel] | |
# Put this in ~/.aws/cli/alias | |
# and you'll have an "aws upgrade" | |
# and an "aws check-upgrade" command. | |
# | |
# Only works on macOS and installs using | |
# the .pkg installer. | |
# | |
upgrade = !f() { | |
curl -s "https://awscli.amazonaws.com/AWSCLIV2.pkg" -o "/tmp/AWSCLIV2.pkg" |
View gist:e88f3f0e15b749c170883414efe415f3
% dlv exec $HOME/bin/godoc | |
Type 'help' for list of commands. | |
(dlv) b main.main | |
Breakpoint 1 set at 0x15596eb for main.main() ./golang.org/x/tools/cmd/godoc/main.go:156 | |
(dlv) c | |
> main.main() ./golang.org/x/tools/cmd/godoc/main.go:156 (hits goroutine(1):1 total:1) (PC: 0x15596eb) | |
151: } | |
152: } | |
153: log.Fatalf("too many redirects") | |
154: } |
View gist:e6e69b7a0ab253d18386d483263fbacb
git clone | |
cd dir | |
git config credential.helper cache | |
git credential-cache exit | |
or remove | |
.git-credential-cache/socket |
View gist:4d5bc427f9db467c40c0351ceb69450b
mkdir /tmp/{stg,prod} | |
Choice Parameter | |
Name = Environment | |
Choices | |
stg | |
prod | |
File Parameter |
View gist:43356a2d705ca6122cd05a7077daf52c
SourceDBInstanceIdentifier | |
determines whether a DB instance is a Read Replica | |
DBClusterIdentifier | |
The identifier of the DB cluster that the instance will belong to. |
View 00_seq_loop.yml
--- | |
- hosts: vm_dummy_group | |
gather_facts: no | |
tasks: | |
- name: Test loop | |
debug: | |
msg: "Spinning up VM number {{ item }}" | |
with_sequence: start={{ start }} end={{ end }} |
NewerOlder