- Here's another article describing the same thing:
I saw that it was missing a few things, so I wrote this.
- It's okay if you don't want to use vim. This is a judgement free zone.
| #!/bin/bash | |
| # desc: Looks for 32bit KeyID duplicates in your gpg keyring (More Info: https://evil32.com/) | |
| # see: https://github.com/sahal/wget-tor-mirror for an example implementation | |
| # by: Sahal Ansari (github@sahal.info) | |
| # license: Any of the following: GPLv2 or GPLv3 or MIT | |
| function do_gpgidchk { | |
| gpg --list-keys --fingerprint | grep "Key\ fingerprint"| sed 's/.*\=\ //' | tr -d "\ " | sed 's/.\{32\}//' | sort | uniq -c | sed 's/^\ *//' | grep -v "^1\ " | |
| if [ "$?" -eq "0" ]; then | |
| echo "WARNING: At least two keys in your keyring share 32bit KeyIDs." |
| #!/bin/bash | |
| # ./trimbackups.sh [prompt] | |
| # desc: Use this for trimming backup directories stored as $prefix_yyyymmdd[hhmm] in $backup dir | |
| # todo: implement getopts :x | |
| # | |
| # Copyright (c) 2015 Sahal Ansari github@sahal.info | |
| # | |
| # Permission is hereby granted, free of charge, to any person obtaining a copy | |
| # of this software and associated documentation files (the "Software"), to deal | |
| # in the Software without restriction, including without limitation the rights |
| #!/bin/bash | |
| # ./whois-test.sh domain.test.gtld | |
| # desc: add this as an alias for whois to account for whois servers that your machine doesn't know about yet | |
| # see: http://blog.sahal.info/post/125728360746/whois-servers-for-gtlds | |
| # by: sahal ansari github@sahal.info | |
| PATH_TO_WHOIS="/usr/bin/whois" | |
| # test parameters and set the first potential domain as the DOMAIN_IN_QUESTION | |
| #for parameter in "$@"; do |
| #!/bin/sh | |
| echo do not actually run this script | |
| exit 1 | |
| mkdir avi | |
| find ./ -type f -name *.AVI -print0 | xargs -0 -I {} mv {} ./avi/ | |
| mkdir jpg | |
| find ./ -type f -name *.JPG -print0 | xargs -0 -I {} mv {} ./jpg/ | |
| cd ./jpg/ |
| #!/bin/sh | |
| set -e | |
| set -u | |
| profname="Danger" | |
| profloc="$(firefox --new-instance --CreateProfile "$profname" 2>&1 | sed -e s/.*$profname\'\ at\ \'// -e s/\'$//)" | |
| profdir=$(dirname "$profloc") | |
| profini=""$(dirname $profdir)"/profiles.ini" | |
| tempout="$(mktemp)" |
| #!/bin/bash | |
| # by sahal ansari github@sahal.info | |
| # todo: specify a list of extensions | |
| # specify a list of files | |
| # the for loop should be near the xargs line instead of above find | |
| # - written like this insetad b/c this can become a oneliner in a jiffy | |
| # - would have to rewrite the logic b/c i don't think its possible to put a for loop in xargs | |
| for ext in css js png | |
| do |
| #!/bin/bash | |
| # basic launcher | |
| set -e | |
| set -u | |
| python_path="$(which python)" | |
| #python_path="/usr/bin/python" | |
| # figure out python version (might be useful in the future) |
| #!/usr/bin/env ruby | |
| require 'aws-sdk' | |
| require 'pry' | |
| require 'awesome_print' | |
| require 'domainatrix' | |
| # ------------------------------------------------------------------------------ | |
| # Credentials | |
| # ------------------------------------------------------------------------------ |
| . . . | |
| variable "vpc_security_groups" { type = "list", default = [] } | |
| variable "vpc_subnets" { type = "list", default = [] } | |
| . . . | |
| resource "aws_lambda_function" "function" { | |
| ... |
I saw that it was missing a few things, so I wrote this.