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
tshark -E separator=: -r capture.cap -Tfields -e tcp.srcport -e tcp.dstport -e frame.time_epoch -e frame.number -e _ws.col.Info ssl.record.version==0x0303 or ssl.record.version==0x0301 | grep "Hello" | grep -v "Done" > ~/Downloads/tls.csv |
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
#how to backup database | |
mysqldump -v -hlocalhost -pstocks_pass -ustocks_user stocks| pv | gzip > stocks_database.sql.gz |
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
#link to devicons https://github.com/tupadr3/plantuml-icon-font-sprites/blob/master/devicons/index.md | |
@startuml | |
' We only include the icon files. | |
!include <devicons/github> | |
!include <font-awesome/gitlab> | |
!include <devicons/redis> | |
frame redis [ |
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
#https://github.com/milo-minderbinder/AWS-PlantUML | |
##to extract all the alias for usable format use | |
find dist/ -iname "*.puml" -exec grep -H "\!define " {} \; | sed 's_dist/\(.*\).puml:!define \([A-Z0-9a-z_]*\).*_!include <aws/\1>\n\2(varname,"icon heading")\n\n_g' | |
##along with file name | |
find dist/ -iname "*.puml" -exec grep -H "\!define " {} \; | sed 's_dist/\(.*\)/\(.*\).puml:!define \([A-Z0-9a-z_]*\).*_\2\n!include <aws/\1/\2>\n\3(var-name,"icon heading")\n\n_g' | |
#more good table | |
echo "" > /tmp/awstest.html && echo "<table><thead><th>name</th><th>Include Statement</th><th>Usage</th></thead><tbody>" >> /tmp/awstest.html && find dist/ -iname "*.puml" -type f \( ! -iname "*common.puml" \) -exec grep -H "\!define " {} \; | sed 's_dist/\(.*\)/\(.*\).puml:!define \([A-Z0-9a-z_]*\).*_<tr>\n<td>\2</td>\n<td>!include \<aws/\1/\2\></td>\n<td>\3(var-name,"icon heading")</td></tr>\n\n_g' >> /tmp/awstest.html && echo "</tbody></table>" >> /tmp/awstest.html |
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 |
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
/.*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
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
#!/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
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: |