Skip to content

Instantly share code, notes, and snippets.

@zealic
zealic / decode.py
Created February 7, 2019 12:08
raw.txt
import sys
import base64
text = sys.stdin.read()
data = base64.b64decode(text)
decrypted = ""
for i in range(len(data)):
decrypted += chr(ord(data[i]) >> 1)
@zealic
zealic / love-letter.c
Last active January 22, 2017 14:10
For my love
// Copyright 2016 Zealic
// gcc -std=c99 -o love-letter love-letter.c && ./love-letter
#include <stdio.h>
#include <time.h>
#define UNTIL(n) ((rand() %('U'+1-'I'))+'I')!= 'U'
#define THOSE_DAY_ARE_GONE(x) srand(time(NULL));
#define SAY(u) printf ( "\u2764 %s\n" , u);
#include /* You into my life */<stdlib.h>
#define/* Great ❤ Romance */ BEGIN {
@zealic
zealic / openwrt_metarouter_1407-fix-rxbuf.patch
Created September 26, 2015 19:35 — forked from leleobhz/openwrt_metarouter_1407-fix-rxbuf.patch
Fix RXBUF_SIZE to avoid skb_put crash by exceding buffer - as described in https://www.fsl.cs.sunysb.edu/kernel-api/re511.html - the original patch crashed at 300bytes packet, so i found the 10300 bytes for a jumbo-frame buffer-compat.
diff -puNrb openwrt/target/linux/mr-mips/base-files/etc/hotplug2-init.rules openwrt-new/target/linux/mr-mips/base-files/etc/hotplug2-init.rules
--- openwrt/target/linux/mr-mips/base-files/etc/hotplug2-init.rules 1970-01-01 01:00:00.000000000 +0100
+++ openwrt-new/target/linux/mr-mips/base-files/etc/hotplug2-init.rules 2014-01-09 14:06:32.000000000 +0000
@@ -0,0 +1,8 @@
+$include /etc/hotplug2-common.rules
+
+DEVICENAME ~~ (hvc) {
+ nothrottle
+ makedev /dev/%DEVICENAME% 0666
+ next
@zealic
zealic / Email
Last active April 21, 2024 20:32
class Object {
begin 777 portal.bin
M(R!796QC;VUE#0H-"B,C($ME>0T*#0I24T$@4'5B;&EC($ME>3H@*$XL(#<I
M#0I.(#T@,C,S("H@30T*32!I<R!T:&4@9W)E871E<W0@9F]U<BUD:6=I="!P
M<FEM92!T:&%T(&UA:V5S($X@96YD('=I=&@@,C,S#0H-"B,C($5N8W)Y<'1E
M9"!!=61I="!142!G<F]U<"!N=6UB97(-"@T*5&AE($%U9&ET(%%1(&=R;W5P
M(&YU;6)E<B!I<R!E;F-R>7!T960@=VET:"!T:&4@*BI24T$@4'5B;&EC($ME
M>2HJ+@T*#0I@8&`-"D-/3D-!5"A$14-265!4*#$Y-S,W,BDN=&]3=')I;F<H
M*2P@1$5#4EE05"@S,S,P-SDI+G1O4W1R:6YG*"DI#0I@8&`-"@T*(R!#05!4
M0TA!#0I5<V4@=&AI<R!G:7-T(')E=FES:6]N(&`W9#(S939E.3DY-&)B-F9A
M93@W-&1A8C,U930V9F0W-6(Y9&0Q-6)E8"!R97-U;'0@87,@0T%05$-(02X-
@zealic
zealic / CustomDns.sh
Created December 12, 2014 06:57
Override Java DNS Name Server
#!/usr/bin/bash
NAME=CustomDns
cat > $NAME.java <<EOF
import java.net.*;
import java.io.*;
class $NAME {
public static void main(String[] args) throws Exception {
System.setProperty("sun.net.spi.nameservice.nameservers", "127.0.0.1,114.114.114.114");
//System.setProperty("sun.net.spi.nameservice.provider.1", "dns,sun");
@zealic
zealic / link_dropbox.py
Created February 17, 2012 08:45
Use python to link Dropbox fully automated in a text based Linux environment