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
sudo aws autoscaling describe-auto-scaling-groups --region=ap-south-1 --query 'AutoScalingGroups[] | [?contains(Tags[?Key==`Techteam`].Value, `mall-cart`)]' | jq '.[] | "\(.AutoScalingGroupName),\(.TerminationPolicies[])"' |
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
ffmpeg -i Good.Newwz.2019.Hindi.720p.HDRip.x264.mkv -acodec aac -filter_complex "channelmap=map=FL-FL|FR-FR|FC-FC|LFE-LFE|SL-BL|SR-BR:channel_layout=5.1" -vcodec copy new_Goodnews.mp4 |
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
function recurse(o ){ | |
let keys=[]; | |
debugger | |
if(typeof(o)=="number"){ | |
keys.push('(number)'); | |
} else if (typeof(o)=="string"){ | |
try{ | |
JSON.parse(o); | |
keys.push('(jsonstring)'); | |
} catch(e){ |
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
npm install eslint --save-dev --global | |
npm install eslint_d --save-dev --global | |
install flycheck in emacs | |
install js2-mode in emacs | |
install eslintd |
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 sys | |
import socket | |
s=0 | |
try: | |
s=socket.create_connection((sys.argv[1],3306),timeout=(1)) | |
except: | |
s=0 | |
if s: | |
print("{},yes".format(sys.argv[1])) | |
else: |
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/sh | |
#chmod +x prepare-commit-msg | |
BRANCH=`git branch | grep '^\*' | cut -b3-` | |
FILE=`cat "$1"` | |
echo "$BRANCH $FILE" > "$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
jira jql 1300 -j 1 | jq '.[]| "\(.key),\(.fields.summary),\(.fields.status.name)"' | sed 's/"//' | csvlook -H |
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
/.*loadbalancer\/(?:app\/)?([a-zA-Z0-9-]*)\/?(?:.*)?/ |
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
{ | |
"basics": { | |
"name": "Thomas Davis", | |
"label": "Web Developer", | |
"summary": "I’m a full stack web developer who loves working with open source technology. I work best at planning the architecture of web applications and their development life cycles. I also love to get the community involved and have had much experience with building and organizing large open source groups. Specialties: React, Redux, Javascript - Full stack developer with lots of experience in lots of stuff.", | |
"website": "https://ajaxdavis.com", | |
"email": "[email protected]", | |
"location": { | |
"city": "Melbourne", | |
"countryCode": "AU" |
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
#resize the image to desired size | |
convert /tmp/consul.png -resize 64x64 /tmp/consul_64.png | |
# make sprite for plantuml | |
plantuml -encodesprite 8 /tmp/consul_64.png | |
sprite $consul [45x64/8] { | |
0000000000000234CKSaaaaaSSKC32000000000000000 | |
00000000014KaaaaaaaaaaaaaaaaaaaK4200000000000 | |
00000003SaaaaaaZXWOOGGGGOWXYZaaaaaH0000000000 |