Skip to content

Instantly share code, notes, and snippets.

View Wayeet's full-sized avatar
🎧

SIGSEGV Wayeet

🎧
  • Vater IT / Wish2Dev / Roos Consult
  • Germany
  • 18:33 (UTC +01:00)
View GitHub Profile
@Wayeet
Wayeet / self-hosted-gitlab-manually-confirm-user-email.md
Created October 4, 2024 14:07 — forked from zmwangx/self-hosted-gitlab-manually-confirm-user-email.md
Manually confirm user email with `gitlab-rails console`
  • Run gitlab-rails console;

  • Find the user:

    user = User.User.find_by_username('username')
  • Look at the list of emails and find the one you want to confirm:

@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]