Skip to content

Instantly share code, notes, and snippets.

View DavAlbert's full-sized avatar
🦊
$.get('//localhost')

David Albert DavAlbert

🦊
$.get('//localhost')
View GitHub Profile
@queerzard
queerzard / E2EE.java
Created January 5, 2023 13:15
End to End Encryption
import java.security.*;
import java.security.spec.X509EncodedKeySpec;
import java.util.Base64;
import javax.crypto.Cipher;
public class E2EE {
private KeyPair keyPair;
private String publicKey;
private String privateKey;
@jakeajames
jakeajames / qwertybug.html
Last active August 17, 2021 01:09
todesco's jsc bug
<pre id="logs"></pre>
<script>
// utilities
let arr = new Uint32Array(2);
let arr64 = new Float64Array(arr.buffer); // use same buffer
function floatToInt(float) {
arr64[0] = float;
@gmic
gmic / ruby proxy
Created January 4, 2012 13:00
Ruby: install gems behind a proxy
gem install --http-proxy http://user:password@some.proxy.com:8080 bundler