Skip to content

Instantly share code, notes, and snippets.

View Wayeet's full-sized avatar
🎧

SIGSEGV Wayeet

🎧
  • Vater IT / Wish2Dev / Roos Consult
  • Germany
  • 20:57 (UTC +02:00)
View GitHub Profile
@Wayeet
Wayeet / tsconfig-for-npm-sample.json
Created April 6, 2024 19:36 — forked from ccnokes/tsconfig-for-npm-sample.json
Sample, minimal tsconfig.json for NPM package
{
"compilerOptions": {
"target": "es5",
"module": "commonjs",
"lib": ["es2017", "es7", "es6", "dom"],
"declaration": true,
"outDir": "dist",
"strict": true,
"esModuleInterop": true
},
@Wayeet
Wayeet / testflight.sh
Created August 21, 2022 22:46 — forked from keith/testflight.sh
Upload an ipa to testflight using altool
#!/bin/bash
set -euo pipefail
xcrun altool --upload-app --type ios --file "path/to/foo.ipa" --username "$ITC_USER" --password "$ITC_PASSWORD"
@Wayeet
Wayeet / geoguessr-cheat.user.js
Created June 25, 2021 15:42 — forked from leonbrandt/geoguessr-cheat.user.js
Geoguessr cheat (Greasemonkey / Tampermonkey)
// ==UserScript==
// @name Geoguessr Cheat
// @namespace https://www.leonbrandt.com
// @version 2.0.0
// @description Press SHIFT + ALT + G and the location of your current geoguessr game will open in a new tab
// @author Leon Brandt
// @homepage https://www.leonbrandt.com
// @updateURL https://gist.githubusercontent.com/leonbrandt/16b3a70ef70939359357c908e6b0f06d/raw/geoguessr-cheat.user.js
// @match http*://*/*
// @grant none
import re
import subprocess
host = 'google.com'
try:
output = subprocess.check_output(['ping', '-c', '4', '-q', host])
output = output.decode('utf8')
statistic = re.search(r'(\d+\.\d+/){3}\d+\.\d+', output).group(0)
avg_time = re.findall(r'\d+\.\d+', statistic)[1]