Skip to content

Instantly share code, notes, and snippets.

View h3ku's full-sized avatar

Hector Cuesta h3ku

View GitHub Profile
set -g base-index 1
# Automatically set window title
set-window-option -g automatic-rename on
set-option -g set-titles on
set -g default-terminal screen-256color
set -g status-keys vi
set -g history-limit 10000
from base64 import b64decode, b64encode
import hashlib, argparse
def rc4mi(data, key):
S, j, out = list(range(256)), 0, []
for i in range(256):
j = (j + ord(key[i % len(key)]) + S[i]) % 256
S[i], S[j] = S[j], S[i]
@h3ku
h3ku / Compile.txt
Last active March 27, 2018 20:53
Hook fail asserts to prevent false positives with AFL
go build -buildmode=c-shared -o fail_assert.so main.go
Then just LD_PRELOAD the generated .so
#!/usr/bin/env python
# coding=utf-8
import argparse
import datetime
import sys
import time
import threading
import traceback
import socketserver
{
"schemes": [],
"swagger": "2.0",
"info": {
"description": "This is the sconwar API documentation.",
"title": "Sconwar API",
"contact": {},
"license": {"name":"Apache 2.0",
"url":"http://www.apache.org/licenses/LICENSE-2.0.html"},
"version": "1.0"
@h3ku
h3ku / @netlify+plugin-nextjs+4.21.2.patch
Created September 13, 2022 17:24
@netlify/plugin-nextjs patch to disable IPX
diff --git a/node_modules/@netlify/plugin-nextjs/lib/helpers/edge.js b/node_modules/@netlify/plugin-nextjs/lib/helpers/edge.js
index b6e7a10..60705dc 100644
--- a/node_modules/@netlify/plugin-nextjs/lib/helpers/edge.js
+++ b/node_modules/@netlify/plugin-nextjs/lib/helpers/edge.js
@@ -100,17 +100,6 @@ const writeEdgeFunctions = async (netlifyConfig) => {
};
const edgeFunctionRoot = (0, path_1.resolve)('.netlify', 'edge-functions');
await (0, fs_extra_1.emptyDir)(edgeFunctionRoot);
- if (!process.env.NEXT_DISABLE_EDGE_IMAGES) {
- console.log('Using Netlify Edge Functions for image format detection. Set env var "NEXT_DISABLE_EDGE_IMAGES=true" to disable.');