Skip to content

Instantly share code, notes, and snippets.

@ecneladis
ecneladis / qrcode-wifi.sh
Created January 1, 2016 15:45 — forked from floriangosse/qrcode-wifi.sh
Create a QR code for wifi
#!/usr/bin/env bash
#
# Inspired by http://www.commandlinefu.com/commands/view/13028
#
# Author: Florian Goße <florian@essog.de>
# Date: 2014-01-22
#
# Check if executed in a terminal
@ecneladis
ecneladis / cities.csv
Created January 2, 2016 20:13 — forked from d3noob/.block
World map with zoom / pan and cities
code city country lat lon
ZNZ ZANZIBAR TANZANIA -6.13 39.31
TYO TOKYO JAPAN 35.68 139.76
AKL AUCKLAND NEW ZEALAND -36.85 174.78
BKK BANGKOK THAILAND 13.75 100.48
DEL DELHI INDIA 29.01 77.38
SIN SINGAPORE SINGAPOR 1.36 103.75
BSB BRASILIA BRAZIL -15.67 -47.43
RIO RIO DE JANEIRO BRAZIL -22.90 -43.24
YTO TORONTO CANADA 43.64 -79.40
@ecneladis
ecneladis / gist:6cbe26ebe3f862663ea4f11bef4bb54b
Created June 27, 2016 14:38 — forked from mikemaccana/gist:10847077
Tptacek's Review of "Practical Cryptography With Go"

Wow. I've now read the whole book and much of the supporting code. I'm not a fan, and recommend against relying on it. Here's a laundry list of concerns:

  • The teaching method the book uses is badly flawed. The book's strategy is to start simple and build to complexity, which makes sense if you're teaching algebra but not if you're teaching heart surgery. The result is that each chapter culminates with the implementation of a system that is grievously insecure. Little warning is given of this, apart from allusions to future chapters improving the system. For instance, Chapter 2 closes with a chat system that uses AES-CBC without an authenticator.

  • The book is full of idiosyncratic recommendations. For instance, AES-CBC requires a padding scheme. There is a standard padding scheme. The book purports to present it, but instead of PKCS7, it presents 80h+00h..00h.

  • At one point about 1/3rd of the way through the book, it suggests using a SHA256 hash of the plaintext as an authenticator for a message. Thi

@ecneladis
ecneladis / 00-about-search-api-examples.md
Created August 12, 2016 10:42 — forked from jasonrudolph/00-about-search-api-examples.md
5 entertaining things you can find with the GitHub Search API
@ecneladis
ecneladis / service-checklist.md
Created September 12, 2016 18:30 — forked from acolyer/service-checklist.md
Internet Scale Services Checklist

Internet Scale Services Checklist

A checklist for designing and developing internet scale services, inspired by James Hamilton's 2007 paper "On Desgining and Deploying Internet-Scale Services."

Basic tenets

  • Does the design expect failures to happen regularly and handle them gracefully?
  • Have we kept things as simple as possible?
@ecneladis
ecneladis / sqlmitm.py
Created September 21, 2016 21:57 — forked from anonymous/sqlmitm.py
from scapy.all import *
import unicodedata
import sys, getopt
import time, datetime
import argparse
import socket
import fcntl
import struct
import threading