-
the original script to close the popup window
https://gist.github.com/egel/b7beba6f962110596660 -
lots of ctypes stuff referenced here
https://github.com/asweigart/pyautogui/blob/master/pyautogui/_window_win.py -
alternative to DestroyWindow method that works
https://stackoverflow.com/questions/38449979/
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
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
Version 2, December 2004 | |
Copyright (C) 2004 Sam Hocevar <[email protected]> | |
Everyone is permitted to copy and distribute verbatim or modified | |
copies of this license document, and changing it is allowed as long | |
as the name is changed. | |
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE |
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 | |
CURRENT_DIR="$( cd "$(dirname "${BASH_SOURCE[0]}")" && pwd )" | |
cd "$CURRENT_DIR" | |
workpath="$1" | |
cd "${workpath}" | |
for image in *.jpeg; do | |
date_format=$(echo "${image}" | awk '{gsub(/-/, ":", $3); print $3}') |
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 { Action, createReducer, on } from '@ngrx/store'; | |
export const featureKey = 'niceFeature'; | |
export interface State {} | |
export const initialState: State = {}; | |
const reducerFn = createReducer( | |
initialState, |
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 | |
# install via | |
# bash <(curl -L 'https://gist.githubusercontent.com/altbdoor/9c801dcad5f11352e3dc346ba9ebaf9c/raw/install_node.sh') | |
default_version="14" | |
node_regexp='node-v.+?-linux-x64.tar.xz' | |
read -p "Enter desired major version, or leave blank for latest-v${default_version}.x: " node_version |
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 datetime | |
import os | |
import re | |
import urllib.error | |
import urllib.request | |
def download_log_files(date_obj): | |
today = datetime.datetime.now() | |
today = today.replace(hour=0, minute=0, second=0, microsecond=0) |
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 | |
echo "making request" | |
make_req_data=$(cat <<JSONDATA | |
{ | |
"apikey": "__insert api key__", | |
"input": "upload", | |
"outputformat": "txt", | |
"options": { | |
"ocr_enabled": true, |
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 datetime | |
import json | |
import sys | |
import time | |
import urllib.request | |
tag = 'shutteredco' | |
base_url = 'https://www.instagram.com/explore/tags/' + tag + '/?__a=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
Original from: https://github.com/sass/node-sass/pull/2386 | |
https://github.com/marcosbozzani/node-sass/commit/266861b.diff | |
Modified to include exponential backoff | |
--- render.js.bak 2018-07-28 22:33:12.784523700 +0800 | |
+++ render.js 2018-07-29 11:42:15.442878400 +0800 | |
@@ -42,11 +42,13 @@ | |
renderOptions.file = options.src; | |
} | |
+ var retries = 0; |
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/usr/env python | |
import calendar | |
import datetime | |
max_month = 5 | |
start_date = datetime.datetime(2018, 2, 28) | |
copy_start_date = start_date |