Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@udf
udf / ass.py
Created April 13, 2018 13:47
Generates fancy colours by abusing the order(lessness) of a set; it's called ass because i didn't expect it to work so well (or at all)
from PIL import Image
import random
def thing(val):
val += (-4, -3, -2, -1, 1, 2, 3, 4)[random.getrandbits(3)]
if val < 0: return 0
if val > 255: return 255
return val
@stek29
stek29 / 0readme.md
Last active April 11, 2022 17:59
proof of concept
git clone https://github.com/grishka/libtgvoip.git
cd libtgvoip
# Build openssl-1.0.1 and opus-1.1 to prefix libraries/
# Save CMakeLists.txt here (in repo root)
mkdir build
cd build
# Save CallMakefile and main.cpp here
stat.jump
stat.drop
stat.deaths
stat.mobKills
stat.pigOneCm
stat.flyOneCm
stat.leaveGame
stat.diveOneCm
stat.swimOneCm
stat.fallOneCm
@9ary
9ary / fix_telegram.md
Last active January 2, 2018 20:47 — forked from vijfhoek/fix_telegram.md
How to fix the really really round telegram avatars and << >> -- stuff

Note: I won't update this gist anymore, please see my dotfiles repo for future updates.

Here is a bash/GDB script to fix it (tested on GNU/Linux only):

#!/bin/bash

gdb /usr/bin/telegram-desktop << EOF
tbreak _ZN3App9initMediaEv
commands
@HybridEidolon
HybridEidolon / build.gradle
Created May 4, 2016 18:43
Maven/Gradle bukkit examples
apply plugin: "java"
buildscript {
ext.bukkit_version = "1.9.2-R0.1-SNAPSHOT"
}
repositories {
mavenCentral()
maven {
url "https://hub.spigotmc.org/nexus/content/repositories/snapshots/"