Skip to content

Instantly share code, notes, and snippets.

Log:
(gdb) run
Starting program: /usr/lib/games/unvanquished/unvanquished +set in_nograb 1 +nocurses +set fs_libpath /usr/lib/games/unvanquished +set fs_basepath /var/games/unvanquished
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Unvanquished 0.30.0 Linux x86_64 Aug 4 2014
+set in_nograb 1 +set fs_libpath /usr/lib/games/unvanquished +set fs_basepath /var/games/unvanquished
Home path: /home/gabriel/.unvanquished
Pak path: /var/games/unvanquished/pkg
#include <exception>
#include <iostream>
#include <string>
#include <vector>
#include <cmath>
using namespace std;
const string operators1 = "+-";
const string operators2 = "*/%";
local tArgs = { ... }
if #tArgs < 3 then
print("Usage: mine {1,2,3} <x> <y> [params]")
return
end
local height = tonumber(tArgs[1])
local def1 = tonumber(tArgs[2])
local def2 = tonumber(tArgs[3])
local rot = "l"
@Yepoleb
Yepoleb / unzip.py
Last active August 29, 2015 14:17 — forked from JaHIY/unzip.py
#!/usr/bin/env python2
# -*- coding: utf-8 -*-
import os
import codecs
import zipfile
import textwrap
def print_usage(myname):
USAGE = textwrap.dedent("""
class Clock
{
public:
Clock();
long reset();
private:
long lasttime;
}
Clock::Clock()
// structs taken from github.com/dkreuter/firered/ fbox.c
// assembler from github.com/shinyquagsire23/DisFire
struct fbox {
void *function; //0
char field_4; //4
char x; //5
char y; //6
char field_7; //7
char w; //8
@Yepoleb
Yepoleb / shopstats.py
Created June 5, 2015 23:31
Script to generate charts for ChestShop transactions, logged by the ChestShopLogger Bukkit plugin.
#!/usr/bin/env python3
"""
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
#!/usr/bin/env playonlinux-bash
# Date : (2015-12-07 06-36)
# Last revision : (2015-12-07 06-36)
# Wine version used : 1.6.2
# Distribution used to test : Debian Sid (Unstable)
# Author : Gabriel Huber huberg18@gmail.com
# Script licence : GPL v.2
# Program licence : Retail
# Depend :
Windows Registry Editor Version 5.00
[HKEY_USERS\S-1-5-21-3463664321-2923530833-3546627382-1000\Software\LAV]
[HKEY_USERS\S-1-5-21-3463664321-2923530833-3546627382-1000\Software\LAV\Audio]
"TrayIcon"=dword:00000000
"DRCEnabled"=dword:00000000
"DRCLevel"=dword:00000064
"DTSHDFraming"=dword:00000000
"AutoAVSync"=dword:00000001
#!/usr/bin/env python3
"""
Solution for https://scrap.tf/raffles/2JKVYD
"""
# https://github.com/savoirfairelinux/num2words
from num2words import num2words
PRIMES = [2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59,
61, 67, 71, 73, 79, 83, 89, 97]