curl https://gist.githubusercontent.com/xcsrz/780017ebbd64b2435dc58b1053bf4858/raw/f9d36a87daba4e464a1e61d35172c313ee2fea7f/adb-fix-kodi-back-button-amazon-fire-tv.sh | bash
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
from requests import get | |
from os import environ, getcwd, chdir, mkdir, system | |
from json import dumps | |
basedir = getcwd() + '/repos' | |
mkdir(basedir) | |
username=environ['BITBUCKET_USER'] | |
password=environ['BITBUCKET_PASS'] | |
team=environ['BITBUCKET_TEAM'] |
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 json | |
import time | |
# pip install npm | |
from npm.bindings import npm_run | |
def wait(package, version): | |
while True: | |
err, raw = npm_run('view','--json', package) |
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
45.380328, -63.266579 |
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 |
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
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
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
#!/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
#!/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 |