Skip to content

Instantly share code, notes, and snippets.

dio / hello-wasm.js
Last active Mar 20, 2021
This is a simpe example on embedding wasm inside an offline single html page
View hello-wasm.js
// this code is from a simple add function in c:
// // hello.c
// int add(int a, int b) {
// return a + b;
// }
// compiles it with emcc (
// $ git clone
Jinmo / jni_all.h
Created May 26, 2017
Useful when reversing JNI on IDA Pro
View jni_all.h
* Copyright (c) 1996, 1998, Oracle and/or its affiliates. All rights reserved.
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
View BadTalkTitles
$thing for fun and profit
all your $thing are belong to $shutup
honey I $verbed the $thing
$thing demystified
$thing: a deep dive
$verb all the things
make $thing great again
$x and $y and $z, oh my!
View Using Github Deploy

What / Why

Deploy key is a SSH key set in your repo to grant client read-only (as well as r/w, if you want) access to your repo.

As the name says, its primary function is to be used in the deploy process in replace of username/password, where only read access is needed. Therefore keep the repo safe from the attack, in case the server side is fallen.

How to

  1. Generate a ssh key
senko /
Last active Mar 19, 2021
A Pythonic implementation of the Maybe monad
# - a Pythonic implementation of the Maybe monad
# Copyright (C) 2014. Senko Rasic <>
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
import os
import sys
import pickle
import console
# I moved 'dropboxlogin' into a sub folder so it doesn't clutter my main folder
sys.path += [os.path.join(os.path.dirname(os.path.abspath(__file__)), 'lib')]
import dropboxlogin # this code can be found here
STATE_FILE = '.dropbox_state'