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.
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.
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 |
git clone git://git.fedorahosted.org/virt-manager.git | |
cd virt-manager | |
sudo port -v install intltool py27-pygtk | |
sudo python setup.py install | |
-- Two dashes start a one-line comment. | |
--[[ | |
Adding two ['s and ]'s makes it a | |
multi-line comment. | |
--]] | |
---------------------------------------------------- | |
-- 1. Variables and flow control. | |
---------------------------------------------------- |
This is a really simple implementation of a bloom filter using Redis 2.6's lua scripting facility.
Though it "works", it's just a proof of concept. The choice and implementation of hashing functions leave something to be desired (I'm sure it's a fine implementation of CRC32 that I borrowed, but it's in pure lua, and, well, CRC32 is not the best function to use for a bloom filter).
Caveat Emptor, no refunds, etc. MIT License.
object Sql { | |
import scala.reflect.makro._ | |
import language.experimental.macros | |
case class Query[R](/*sql: String*/) | |
def execute[R](q: Query[R]): Seq[R] = sys.error("implement me") | |
def sqlImpl(c: Context)(s: c.Expr[String]): c.Expr[Any] = { | |
import c.universe._ |
#! /usr/bin/env python | |
import redis | |
import random | |
import pylibmc | |
import sys | |
r = redis.Redis(host = 'localhost', port = 6389) | |
mc = pylibmc.Client(['localhost:11222']) |