-
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:
This file contains 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
{ | |
"compilerOptions": { | |
"target": "es5", | |
"module": "commonjs", | |
"lib": ["es2017", "es7", "es6", "dom"], | |
"declaration": true, | |
"outDir": "dist", | |
"strict": true, | |
"esModuleInterop": true | |
}, |
This file contains 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 | |
set -euo pipefail | |
xcrun altool --upload-app --type ios --file "path/to/foo.ipa" --username "$ITC_USER" --password "$ITC_PASSWORD" |
This file contains 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
// ==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 |
This file contains 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 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] |