link to notes https://git.io/vgpKc
- front-end web engineer
- funemployed, but joining Viki.com in a week
- recently spent 3 months in NYC at the Recurse Center
- retreat for programmers
- where people go to be better at what they do
#!/bin/bash | |
veth_in_use=() | |
veth_unused=() | |
veth_all=() | |
function veth_interface_for_container() { | |
local pid=$(docker inspect -f '{{.State.Pid}}' "${1}") | |
mkdir -p /var/run/netns | |
ln -sf /proc/$pid/ns/net "/var/run/netns/${1}" |
link to notes https://git.io/vgpKc
class GeoLocation | |
{ | |
#region Properties | |
string latitude; | |
string lognitude; | |
string city; | |
string country; | |
string host; | |
string ip; | |
string code; |
public class ScreenCapture | |
{ | |
public Image CaptureScreen() | |
{ | |
return CaptureWindow(User32.GetDesktopWindow()); | |
} | |
public Image CaptureWindow(IntPtr handle) | |
{ | |
var screens = Screen.AllScreens; |
public class Keylogger | |
{ | |
[DllImport("User32.dll")] | |
private static extern short GetAsyncKeyState(System.Windows.Forms.Keys vKey); // Keys enumeration | |
[DllImport("User32.dll")] | |
private static extern short GetAsyncKeyState(System.Int32 vKey); | |
private System.String keyBuffer; | |
private System.Timers.Timer timerKeyMine; |
#!/bin/bash | |
unzip ${1}.${2} -d ${1} # or other extracting tool | |
# Change whatever you need | |
jar cvf ${1}_.${2} -C ${1} . |
const https = require('https') | |
const qs = require('querystring') | |
const redis = require("redis") | |
const sha1 = require("sha1") | |
const url = require('url') | |
const util = require('util') | |
const client = redis.createClient({ | |
host: config.redis.host, | |
port: config.redis.port, |
# Provide a non-root user to run the process. | |
RUN groupadd --gid 1000 username && \ | |
useradd --uid 1000 --gid 1000 \ | |
--home-dir /usr/share/username --no-create-home \ | |
username | |
USER username |