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/bash | |
DEFAULT_ORGNAME="xcsrz" | |
DEFAULT_ORGCOUNTRY="US" | |
if [ -t $1 ]; then | |
echo "you must provide a domain name (don't forget the asterisk if it's for a wildcard certificate" | |
echo "" | |
echo "Usage:" | |
echo " ${0} DOMAIN" |
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
package main | |
import ( | |
"fmt" | |
"github.com/skratchdot/open-golang/open" | |
"net" | |
"net/http" | |
) | |
func main() { |
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
traceroute 8.8.8.8|awk -F[\(\)] '$2~/[0-9]/{print $2}'|while read i;do whois $i | awk -F ":\s*" '/^(OrgName|City|State|Country)/ {gsub(/^[ \t]+|[ \t]+$/, "", $2); printf $2" "}'; echo $i; done |
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
package main | |
import "io" | |
type writeChanCloser struct { | |
io.Writer | |
closeChan chan struct{} | |
} | |
func (wcc writeChanCloser) Close() error { |
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
#!/usr/bin/env python | |
import numpy as np | |
import cv2 | |
from time import sleep | |
# create blank image - y, x | |
img = np.zeros((600, 1000, 3), np.uint8) | |
# setup text |
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/bash | |
EMOTS=( | |
"¯\_(ツ)_/¯" | |
"༼ ༎ຶ ෴ ༎ຶ༽" | |
"「(°ヘ°)" | |
"(╯°□°)╯︵ ┻━┻" | |
"༼ つ ◕_◕ ༽つ" | |
"(✿◠‿◠)" | |
"¯(°_o)/¯" |
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
echo stats | nc 127.0.0.1 11211 |
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
releaseBumpValue() { | |
semver="${1}" | |
local tifs=${IFS} | |
local IFS='.' | |
read -ra bits <<< "${semver}" | |
if [ $((bits[1]%2)) -eq 0 ]; then | |
echo 2 | |
else | |
echo 1 | |
fi |
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
#!/usr/bin/env ruby | |
require 'base64' | |
require 'rest-client' | |
require 'json' | |
# https://stackoverflow.com/questions/38613941/sendgrid-error-access-forbidden-when-trying-to-get-user-profile-api | |
$base_endpiont = "https://api.sendgrid.com/v3/api_keys" | |
def usage |
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/bash | |
app="/Applications/Google Chrome.app" | |
dir=$(mktemp -d) | |
# echo $dir | |
touch "${dir}/First Run" | |
mkdir "${dir}/Default" | |
echo '{"browser":{"has_seen_welcome_page":true}}' > "${dir}/Default/Preferences" | |
exec "${app}/Contents/MacOS/Google Chrome" --bwsi --disable-signin-promo --bypass-app-banner-engagement-checks --no-managed-user-acknowledgment-check -no-first-run --user-data-dir=${dir} --system-developer-mode |