jq . env.json
{
"environment": [
{
"name": "SOMEVAR1",
"value": "6"
},
{
"name": "SOMEVAR2",
This file contains 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
# | |
variable "params" { | |
default = { | |
vols = [ | |
{ | |
name = "one", | |
path = "/sub/path1" | |
}, | |
{ |
This file contains 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
# via http://eosrei.net/articles/2017/09/list-all-public-ip-addresses-aws-account | |
# List of public ip in a specific region for a specific AWS account | |
aws ec2 describe-network-interfaces --query NetworkInterfaces[].Association.PublicIp | jq -r 'sort_by(.) | .[]' | |
This file contains 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
cat test.html; printf '\n\n'; cat test.html | perl -pe 's/<(\w+)([^>]*)>\s*([^<>\s].*?[^<>\s])\s*<\/\1>/<\1\2>\3<\1>/gm' | |
<html> | |
<body> | |
<head><title> the disney family </title> | |
</body> | |
<div> | |
pippo <em> pluto </em> paperino <a href='http://google.com'>topolino </a> | |
</div> | |
</body> | |
</html> |
This file contains 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
for branch in $(git branch -l | tr -d '*'); do printf "%-15s %-120s\n" "${branch}" "$(git show --oneline --pretty='format:%h %at %aD %cn %s' ${branch} -- | head -1)";done | sort -nr -k3 |
This file contains 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
vpn_server:/usr/local/openvpn_as/etc/db# ../../bin/sqlite3 userprop.db | |
sqlite> select profile.id, profile.name, config.value from profile join config on profile.id = config.profile_id where config.name = 'pvt_google_auth_secret' and profile.name = 'jtheo'; | |
or as oneliner | |
read -p 'vpn username? ' VPN_USER; echo "select profile.id, profile.name, config.value from profile join config on profile.id = config.profile_id where config.name = 'pvt_google_auth_secret' and profile.name = '${VPN_USER}';" | ../../bin/sqlite3 userprop.db |
Rename addic7ed.com subtitles removing unnecessary information from the filename.
for s in *.srt;do mv "$s" "$(echo $s | perl -pe 's/^(.* - \d{2}x\d{2} - .*?)\..*\.srt/\1/').eng.srt";done
I hereby claim:
- I am jtheo on github.
- I am jtheo (https://keybase.io/jtheo) on keybase.
- I have a public key whose fingerprint is DBC1 80CC 5C3C 0C2C CDB8 8C64 EDB7 BB1C C6C1 BEFB
To claim this, I am signing this object: