Skip to content

Instantly share code, notes, and snippets.

View varyag00's full-sized avatar
🍦
chill

Dan Gonzalez varyag00

🍦
chill
  • Malmö, Sweden
  • 09:27 (UTC +02:00)
View GitHub Profile
@varyag00
varyag00 / git.sh
Last active June 1, 2017 17:55
Fix (force push) an accidental git push to branch_with_mistakes
# go to branch where the mistakes are
git checkout branch_with_mistakes
# save changes to a branch
git checkout -b branch_with_committed_changes
# back to where the mistakes are
git checkout branch_with_mistakes
# reset to the last desired commit

Keybase proof

I hereby claim:

  • I am varyag00 on github.
  • I am varyag00 (https://keybase.io/varyag00) on keybase.
  • I have a public key ASDbDgFpvHfa1nazChXrKOCppxdAJjzYKpFfHRrmcOD-2wo

To claim this, I am signing this object:

@varyag00
varyag00 / 3F486D45.asc
Created May 8, 2017 15:52
Dan Gonzalez's GPG Key
-----BEGIN PGP PUBLIC KEY BLOCK-----
mQENBFd9NHoBCADNyDDqYKXxuPxdtb8wEUFqU9aMeAC/C95eSPFpwmpqvh/2m4fY
SDaHsL++gJiX1D2vGzcos4mObia/icDQ+NQ5pvLtt5PtZh24LBC6rAQVL6nMTzQ8
W/yf4gWmjuu9MsfSTVwokOk/d3RWVHCumtEJNNO4+IEzgiL2YUD0LfImOWzHTrnj
V3pflQHfufVnRTObFqbBgNnBQtwdd7WzPMh85ze1IYISwuDR0VzsPbPoKkyoc0t0
ohCrKVHOiG8gfNe5f5mhNZQcjDKaQW33zFtekwblYgFqRNCKQHOprVX4yg5M7PCE
PWZG0QFtvk3TKz5/j8aVbrN4P00EwmAWXE2fABEBAAG0KkRhbiBHb256YWxleiA8
ZGFuLmdvbnphbGV6QDNwdHNjaWVuY2UuY29tPokBNwQTAQoAIQUCWMwfWAIbAwUL
CQgHAwUVCgkICwUWAgMBAAIeAQIXgAAKCRCaLIO8P0htReWvB/0XNeLbHaS+p9P5
@varyag00
varyag00 / input.py
Created December 23, 2016 17:04
Multiplatform input, accept on any character (not just enter)
import sys
import os
try:
# Win32
from msvcrt import getch
except ImportError:
# UNIX
import tty
import termios
@varyag00
varyag00 / 0_reuse_code.js
Created November 24, 2016 19:47
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console