As configured in my dotfiles.
start new:
tmux
start new with session name:
CFLAGS = -g -Wall -std=c++0x -pipe -march=native -Os | |
mkdir -p obj | |
g++ -o obj/CryptoConst.o CryptoConst.cpp -c -g -Wall -std=c++0x -pipe -march=native -Os -DAESNI | |
g++ -o obj/base64.o base64.cpp -c -g -Wall -std=c++0x -pipe -march=native -Os -DAESNI | |
g++ -o obj/NTCPSession.o NTCPSession.cpp -c -g -Wall -std=c++0x -pipe -march=native -Os -DAESNI | |
NTCPSession.cpp: In member function ‘void i2p::ntcp::NTCPSession::DecryptNextBlock(const uint8_t*)’: | |
NTCPSession.cpp:434:24: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] | |
g++ -o obj/RouterInfo.o RouterInfo.cpp -c -g -Wall -std=c++0x -pipe -march=native -Os -DAESNI | |
g++ -o obj/Transports.o Transports.cpp -c -g -Wall -std=c++0x -pipe -march=native -Os -DAESNI |
As configured in my dotfiles.
start new:
tmux
start new with session name:
#!/usr/bin/env python | |
import httplib2 | |
import sys | |
import json | |
from urllib import urlencode | |
h = httplib2.Http(".cache") | |
print "Please hold while we retrive your IP address..." | |
r,ip = h.request("http://[fc72:6c3b:8c74:68a7:d8c3:b4e0:6cbd:9588]/ip/","GET") | |
url = "http://[fc5d:baa5:61fc:6ffd:9554:67f0:e290:7535]/node/details/" + ip + "/save" | |
print "Looks like your IP is " + ip |
#!/bin/bash | |
for i in {1..100}; do | |
( docker run -d --name $i cirros sleep 3600 ) & | |
done | |
for i in {1..100}; do | |
( sleep $((RANDOM%120+60)) ; docker rm -f $i ) & | |
done |
<network> | |
<name>ovs-network</name> | |
<forward mode='bridge'/> | |
<bridge name='ovsbr0'/> | |
<virtualport type='openvswitch'/> | |
<portgroup name='vlan-01' default='yes'> | |
</portgroup> | |
<portgroup name='vlan-02'> | |
<vlan> | |
<tag id='2'/> |
# to generate your dhparam.pem file, run in the terminal | |
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |
# to generate your dhparam.pem file, run in the terminal | |
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |
if (h->extended_hdr.parsed_pkt.l3_proto == 115) { | |
struct pfring_pkthdr l2tp_header; | |
memset(&l2tp_header, 0, sizeof(l2tp_header)); | |
int16_t l4_offset = h->extended_hdr.parsed_pkt.offset.l4_offset; | |
// L2TP has two headers: L2TP and default L2-Specific Sublayer: every header for 4bytes | |
int16_t l2tp_header_size = 8; | |
l2tp_header.len = h->len - (l4_offset + l2tp_header_size); | |
l2tp_header.caplen = h->caplen - (l4_offset + l2tp_header_size); |
# Shell script to download Oracle JDK from command prompt / terminal. | |
# You can download all the binaries one-shot by just giving the BASE_URL. | |
## Features: | |
# Resumes a broken [previous] download, if any. | |
# Renames the file to a proper name with platform adding platform info. | |
# Downloads all the following from Oracle Website with one shell invocation. | |
# a. Windows 64 and 32 bit; | |
# b. Linux 64 and 32 bit; and | |
# c. API Docs. |
<domain type="kvm"> | |
<uuid>96e8fa98-365a-4172-96a2-33437c4c984e</uuid> | |
<name>instance-00003ac2</name> | |
<memory>1048576</memory> | |
<vcpu cpuset="4-23">1</vcpu> | |
<sysinfo type="smbios"> | |
<system> | |
<entry name="manufacturer">OpenStack Foundation</entry> | |
<entry name="product">OpenStack Nova</entry> | |
<entry name="version">2013.2-netease.461</entry> |