Skip to content

Instantly share code, notes, and snippets.

Gabriel Huber Yepoleb

  • Austria
Block or report user

Report or block Yepoleb

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View tf2cheaters.py
import re
import string
import os
LOGFILE_NAME = os.path.expanduser(
"~/.steam/steam/steamapps/common/Team Fortress 2/tf/console.log")
# TF2 launch options: -rpt
f = open(LOGFILE_NAME)
View nocashfooter.py
# Print the footer values of a DSi NAND dump created using fwTool
import struct
import sys
f = open(sys.argv[1], "rb")
f.seek(0xF000000)
footer = f.read()
f.close()
footer_id, nand_cid, console_id = struct.unpack(">16s16s8s24x", footer)
@Yepoleb
Yepoleb / intersect.cpp
Created Jan 15, 2020
Check if two rectangles intersect
View intersect.cpp
#include <xmmintrin.h>
#include <stdint.h>
struct alignas(16) Rect
{
float left;
float right;
float top;
float bottom;
};
View sudokurowsimple.py
summands = [1, 10, 100, 1000, 10000, 100000, 1000000, 10000000, 100000000, 1000000000]
def rowsum(row):
s = 0
for x in row:
s += summands[x]
return s
valid_sum = rowsum([1, 2, 3, 4, 5, 6, 7, 8, 9])
View sudokurowsum.py
summands = [1]
for i in range(9):
summands.append(summands[-1] * 10)
def rowsum(row):
return sum(summands[x] for x in row)
valid_sum = rowsum([1, 2, 3, 4, 5, 6, 7, 8, 9])
def is_sudokurow(row):
View sudokurow.py
PRIMES = [2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61]
def rowproduct(row):
p = 1
for x in row:
p *= PRIMES[x]
return p
valid_product = rowproduct([1, 2, 3, 4, 5, 6, 7, 8, 9])
View subi.py
import random
import string
vowels = "aeiou"
consonants = list(set(string.ascii_lowercase) - set(vowels))
def subify(subi):
base_subi = list(subi)
r = random.random()
if r <= 0.3:
View EMV-CAP Transaction.md

OTP Transaction Log

  • Card: Raiffeisen Debit Card from 2017
  • Tangenerator: Gemalto CardTan
  • PIN: 00000
  • Generated TAN: 2879410
  • Standard: CAP-HHD

Unknown

@Yepoleb
Yepoleb / ytmusic.py
Last active Mar 30, 2020
Youtube Music downloader with automatic ID3 tagging. Uses mutagen and requests.
View ytmusic.py
#!/usr/bin/env python3
# License: GPLv3
import re
import json
import shutil
import subprocess
import sys
import urllib.parse
View convertmd.py
#!/usr/bin/env python3
import mistune
import sys
import os.path
import tempfile
import subprocess
XSL_PATH = os.path.expanduser("~/Coden/xml/outline-tmpl.xsl")
TEMPLATE = \
You can’t perform that action at this time.