apt update && apt install -y vim curl python-pip && pip install awscli
aws iam list-server-certificates --query 'ServerCertificateMetadataList[?starts_with(Expiration, `20XX-`)]' | jq .[].ServerCertificateName,.[].Expiration
while true; do a=`aws cloudfront get-distribution --id $DISTRIBUTION_ID | jq .Distribution.Status`; if [ "$a" != \"InProgress\" ]; then echo $a; say "agg fatt"; fi; done;
When your autocompletion is broken, it's probably because of gocode. Try:
gocode set autobuild true
(Close Atom and Sublime)
gocode drop-cache
gocode close
atom .
openssl s_client -connect google.com:443
// Place your key bindings in this file to overwrite the defaults [ { "key": "cmd+1", "command": "workbench.action.openEditorAtIndex1" }, { "key": "cmd+2", "command": "workbench.action.openEditorAtIndex2" }, { "key": "cmd+3", "command": "workbench.action.openEditorAtIndex3" }, { "key": "cmd+4", "command": "workbench.action.openEditorAtIndex4" }, { "key": "cmd+5", "command": "workbench.action.openEditorAtIndex5" }, { "key": "cmd+6", "command": "workbench.action.openEditorAtIndex6" }, { "key": "cmd+7", "command": "workbench.action.openEditorAtIndex7" }, { "key": "cmd+8", "command": "workbench.action.openEditorAtIndex8" },
func (p *ProjectResponse) projectsOKResponse(projects []*models.Project, ginCtx *gin.Context) { | |
ginCtx.JSON(http.StatusOK, projects) | |
} | |
func (p *ProjectResponse) projectOKResponse(project *models.Project, ginCtx *gin.Context) { | |
ginCtx.JSON(http.StatusOK, project) | |
} | |
func (p *ProjectResponse) projectCreateOKResponse(ginCtx *gin.Context) { |
For AWS generated keys
C:\> openssl pkcs8 -in path_to_private_key -inform PEM -outform DER -topk8 -nocrypt | openssl sha1 -c
For manually generated and imported keys
C:\> openssl rsa -in path_to_private_key -pubout -outform DER | openssl md5 -c
sudo tcpdump -i any -X -s 0 dst HOST_IP
sudo tcpdump -i any -X -s 0 src host localhost -w /tmp/outfile1
Commands take from http://askubuntu.com/questions/250290/how-do-i-scan-for-viruses-with-clamav
clamscan -r /
clamscan -r --bell -i /