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
/* clang uds_client.c -lws2_32 -Wno-deprecated-declarations */ | |
#include <errno.h> | |
#include <stdio.h> | |
#include <string.h> | |
#include <winsock2.h> | |
#include <windows.h> | |
struct sockaddr_un | |
{ |
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
-- Cheat Engine Lua script to replace plant names in PvZ to names by Kobo Kanaeru. | |
-- Written by Miku AuahDark. | |
-- This file falls under Public Domain | |
-- To apply the plant names: | |
-- 1. Start PvZ and let it load until main menu | |
-- 2. Load 32-bit Cheat Engine and hook to PvZ process. | |
-- 3. Click Table -> Show Cheat Table Lua Script or press Ctrl+Alt+L | |
-- 4. Copy and paste this whole script then press "Execute Script" | |
-- 5. Cheat Engine may hang for a while, it's normal. |
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
#define WIN32_LEAN_AND_MEAN | |
#define NOMINMAX | |
#include <atomic> | |
#include <chrono> | |
#include <thread> | |
#include <type_traits> | |
#include <windows.h> | |
#include <combaseapi.h> |
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
local stringstream = {} | |
stringstream.__index = stringstream | |
function stringstream.create(str) | |
local out = setmetatable({}, stringstream) | |
out.buffer = str or "" | |
out.pos = 0 | |
out.__index = stringstream | |
return out |
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
local ffi = require("ffi") | |
local Crypt32 = ffi.load("Crypt32") | |
local TEST_TEXT = [[ | |
struct DATA_BLOB { | |
uint32_t size; | |
void *data; | |
}; | |
uint32_t GetLastError(); |
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
/* | |
* Prevents you from using cheat codes like HESOYAM, DDDDDDDAAAAAADWD, ... | |
* Only tested on gta-sa.exe US 1.0 HOODLUM and COMPACT. | |
* Please change address at line 13 if you're not using US v1.0 executable | |
* | |
* Compile with | |
* clang -m32 -shared -o nocheat.asi nocheat.c | |
*/ | |
#define WIN32_LEAN_AND_MEAN |
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
// Sisi | |
public class Edge { | |
public Edge(Vertex a, Vertex b, int cost) { | |
this.a = a; | |
this.b = b; | |
this.cost = cost; | |
} | |
public Vertex getA() { | |
return a; |
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
-- ... | |
-- Add before love.conf function, typically at top of the file | |
local function forceGL2() | |
local ffi = require("ffi") | |
if not pcall(function() return ffi.C._putenv end) then | |
ffi.cdef("int _putenv(const char *);") | |
end | |
return ffi.C._putenv("LOVE_GRAPHICS_USE_GL2=1") == 0 | |
end |
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
#include <errno.h> | |
#include <signal.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <AL/al.h> | |
#include <AL/alc.h> | |
#include "sleep.h" |
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
# HTTP tunneling with DoH resolver | |
# | |
# The motivation to write this is because youtube-dl lack DoH or cURL | |
# "--resolve" equivalent which prevents me from downloading reddit videos | |
# because all reddit (sub)domains are blocked in my country. | |
# | |
# To use this proxy, you need 2 terminals. | |
# * 1 terminal is to run this proxy server: | |
# $ python3 httptunnel.py | |
# * then the other terminal to download the videos with youtube-dl |