Tested with Apache Spark 2.1.0, Python 2.7.13 and Java 1.8.0_112
For older versions of Spark and ipython, please, see also previous version of text.
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Ansi 0 Color</key> | |
<dict> | |
<key>Blue Component</key> | |
<real>0.19370138645172119</real> | |
<key>Green Component</key> | |
<real>0.15575926005840302</real> |
package main | |
import ( | |
"crypto/rand" | |
"fmt" | |
"math/big" | |
"os" | |
"sync" | |
"time" | |
) |
Tested with Apache Spark 2.1.0, Python 2.7.13 and Java 1.8.0_112
For older versions of Spark and ipython, please, see also previous version of text.
########################################################## | |
# How to NEVER use Lambdas. An inneficient and yet educa-# | |
# tonal guide to the proper misuse of the lambda constru-# | |
# ct in Python 2.x. [DO NOT USE ANY OF THIS EVER] # | |
# by: e000 (13/6/11) # | |
########################################################## | |
## Part 1. Basic LAMBDA Introduction ## | |
# Well, it's worth diving straight into what lambdas are. | |
# Lambdas are pretty much anonymous "one line" functions |
set-window-option -g status-left " #S " | |
set-window-option -g status-left-fg black | |
set-window-option -g status-left-bg white | |
set-window-option -g status-right " %H:%M %d-%b-%y " | |
set-window-option -g status-right-fg black | |
set-window-option -g status-right-bg white | |
set-window-option -g window-status-format " #I: #W " |
#!/usr/bin/env python | |
# Quick and dirty demonstration of CVE-2014-0160 by | |
# Jared Stafford (jspenguin@jspenguin.org) | |
# Modified so that it finds cookies | |
import sys | |
import struct | |
import socket | |
import time | |
import select |
import itertools | |
from multiprocessing import Process, cpu_count | |
from multiprocessing import Pool | |
from multiprocessing.pool import ThreadPool | |
# | |
# CONFIG | |
# | |
MAX_POOL_PROCESSES=cpu_count()-1 |
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>author</key> | |
<string>Lars H. Nielsen (translated by Tony Kemp)</string> | |
<key>name</key> | |
<string>Wombat</string> | |
<key>settings</key> | |
<array> |
#!/bin/bash | |
# unfortunately debian currently panics in xhyve | |
tmp=$(mktemp -d) | |
pushd "$tmp" | |
iso="$HOME"/Downloads/debian-8.1.0-amd64-netinst.iso | |
#iso="$HOME"/Downloads/debian-8.1.0-i386-netinst.iso | |
echo "fixing disk" | |
dd if=/dev/zero bs=2k count=1 of=tmp.iso |