aws s3api put-bucket-versioning \
--bucket bucket \
--versioning-configuration '{"MFADelete":"Enabled","Status":"Enabled"}' \
--mfa 'arn:aws:iam::aws_account_id:mfa/root-account-mfa-device passcode'
aws s3api get-bucket-versioning --bucket bucket
aws s3api put-bucket-versioning \
--bucket bucket \
--versioning-configuration '{"MFADelete":"Enabled","Status":"Enabled"}' \
--mfa 'arn:aws:iam::aws_account_id:mfa/root-account-mfa-device passcode'
aws s3api get-bucket-versioning --bucket bucket
ruby -rhashdiff -rawesome_print -ryaml \ | |
-e "ap HashDiff.diff(*ARGV.map{|f| YAML.load_file(f)})" template.yaml processed.yml |
sudo amazon-linux-extras install epel -y | |
sudo yum install stress -y | |
#Run stress for 5mins | |
sudo stress --cpu 1 --timeout 320 |
#place in /etc/letsencrypt/renewal-hooks/post | |
export AWS_ACCESS_KEY_ID=XXX | |
export AWS_SECRET_ACCESS_KEY=XXX | |
#certs must be in us-east-1 to use with cloudfront | |
export AWS_DEFAULT_REGION=us-east-1 | |
#run without --certificate-arn first time then specify arn for updates | |
aws acm import-certificate --certificate file:///etc/letsencrypt/live/site.com/cert.pem --private-key file:///etc/letsencrypt/live/site.com/privkey.pem --certificate-chain file:///etc/letsencrypt/live/site.com/chain.pem --certificate-arn specifyarnforupdate |
//$ cat Application.java | |
package hello; | |
import org.springframework.boot.SpringApplication; | |
import org.springframework.boot.autoconfigure.SpringBootApplication; | |
import org.springframework.web.bind.annotation.RequestMapping; | |
import org.springframework.web.bind.annotation.RestController; | |
import org.springframework.boot.context.embedded.LocalServerPort; | |
import java.net.InetAddress; | |
import java.net.UnknownHostException; |
#!/usr/bin/env python | |
# Prereq: PyCrypto | |
# Validation: https://www.samltool.com/decrypt.php | |
# Usage: ./decrypt_saml_response.py --key PRIVATE_KEY --pretty-print RESPONSE_XML | |
import sys | |
import optparse | |
import base64 |
[-0-(mohan@xpsbox) ~/arm (⎈ |minikube:default)|(master)]
$ go list -f '{{ join .Deps "\n" }}'
bufio
bytes
compress/flate
compress/gzip
compress/lzw
container/list
context
javascript:!function(){var n,e,r,i;n=window,e=document.body,r=JSON.parse,i=JSON.stringify,n.isf||(e.innerHTML="<pre>"+i(r(e.innerText),null,4).replace(/\"(.*)[^\:]\:/g,'<span style="color:#9C3636">$1:</span>')+"</pre>",n.isf=!0)}(); | |
//usage: | |
//save as bookmark and click it whenever you open a json response in a browser tab/window |