- By Edmond Lau
- Highly Recommended 👍
- http://www.theeffectiveengineer.com/
- They are the people who get things done. Effective Engineers produce results.
These are a subset of the talks that I attended & ones that I enjoyed. | |
In no particular order: | |
1. Shipping in Pirate-Infested Waters: Practical Attack and Defense in Kubernetes | |
Greg Castle & CJ Cullen, Google | |
https://kccncna17.sched.com/event/CU86/shipping-in-pirate-infested-waters-practical-attack-and-defense-in-kubernetes-a-greg-castle-cj-cullen-google | |
- The presenters wore hats that matched with the pirate theme. | |
- tldr; basic ways to harden your kubernetes cluster. | |
- extra: Google security team (in the Seattle office) is hiring. |
0x99CD46E14d28B88460334C8c83eD8D987bA64d0e |
#!/boot/bzImage | |
# Linux kernel initialization code, translated to bash | |
# (Minus floppy disk handling, because seriously, it's 2017.) | |
# Not 100% accurate, but gives you a good idea of how kernel init works | |
# GPLv2, Copyright 2017 Hector Martin <[email protected]> | |
# Based on Linux 4.10-rc2. | |
# Note: pretend chroot is a builtin and affects the current process | |
# Note: kernel actually uses major/minor device numbers instead of device name |
2016-nov-22 - installed https://blog.golang.org/go-fonts in C:\dev\2016\image |
L1 cache reference ......................... 0.5 ns
Branch mispredict ............................ 5 ns
L2 cache reference ........................... 7 ns
Mutex lock/unlock ........................... 25 ns
Main memory reference ...................... 100 ns
Compress 1K bytes with Zippy ............. 3,000 ns = 3 µs
Send 2K bytes over 1 Gbps network ....... 20,000 ns = 20 µs
SSD random read ........................ 150,000 ns = 150 µs
Read 1 MB sequentially from memory ..... 250,000 ns = 250 µs
#!/usr/bin/env python | |
import sys, os, time, atexit | |
from signal import SIGTERM | |
class Daemon: | |
""" | |
A generic daemon class. | |
Usage: subclass the Daemon class and override the run() method |
UserDict
, subclass collections.abc.MutableMapping
. #py3x> /home/gavin/dev/gavin/hawkeye/useful/pyhawk/mycode/sample_client.py(53)<module>()->None | |
-> main() | |
(Pdb) c | |
Traceback (most recent call last): | |
File "sample_client.py", line 53, in <module> | |
main() | |
File "sample_client.py", line 33, in main | |
res = requests.get(url, data=params, headers=headers) | |
File "/home/gavin/dev/gavin/hawkeye/useful/pyhawk/local/lib/python2.7/site-packages/requests/api.py", line 55, in get | |
return request('get', url, **kwargs) |
function goinit { | |
export GOROOT=/usr/local/Cellar/go/1.2.1/libexec | |
if [ $# -lt 1 ] | |
then | |
echo "No directories were created." | |
export GOPATH=$(pwd -P) | |
export PATH=$PATH:$GOPATH:$GOPATH/bin | |
else | |
echo "$1 being created" | |
mkdir $1 |