Create a new file in /usr/share/X11/xorg.conf.d
called 52-suspend-fix.conf
Section "Device"
Identifier "intel"
Driver "intel"
Option "AccelMethod" "none"
EndSection
#!/bin/env python | |
import time | |
import RTk.GPIO as GPIO | |
import openvr | |
import sys | |
import atexit | |
def shutdown(): |
#! /usr/bin/python | |
import sys, re | |
# To use run | |
# | |
# $ nodetool status | ./ntcolour.py | |
# | |
# or to refresh forever use: | |
# |
#!/bin/sh | |
# jstatd - runs the jstat daemon | |
# | |
# chkconfig: - 85 15 | |
# description: Jstatd JVM monitoring | |
# processname: jstatd | |
# pidfile: /var/run/jstatd.pid | |
# Source function library. | |
. /etc/rc.d/init.d/functions |
<?php | |
/** | |
* Map CSV columns to fields | |
* | |
* somefile.csv content = "some guy, 5 Road Street, Town, Postcode" | |
* | |
* $mapper = new CsvMapper('/tmp/somefile.csv'); | |
* $mapper->mapField('A', 'name')->filter('name', function($value){ return ucwords($value); }); | |
* $mapper->mapAggregateField(array('B', C', D'), 'address', ', '); | |
* $mapper->mapLiteral('source', 'unknown'); |
<?xml version="1.0" encoding="UTF-8"?> | |
<project name="${projectName}" basedir="." default="build:main"> | |
<!-- Properties --> | |
<property name="dir.app" value="${project.basedir}/app" /> | |
<property name="dir.src" value="${project.basedir}/src" /> | |
<property name="dir.build" value="${project.basedir}/app/build" /> | |
<property name="dir.docs" value="${dir.build}/docs" /> | |
<property name="dir.docs.phpdoc" value="${dir.docs}/phpdoc" /> | |
<property name="dir.docs.docblox" value="${dir.docs}/docblox" /> | |
<property name="dir.reports" value="${dir.build}/logs" /> |
<?php | |
public function lineByLineImproved($anagramSeed) { | |
$fileinfo = new \SplFileInfo(RESOURCE.'wordlist.txt'); | |
$file = $fileinfo->openFile('r'); | |
$matchedWords = array(); | |
$anagramSeedLength = strlen($anagramSeed); //do this once |
<?php | |
public function preloadArray($anagramSeed) { | |
$fileinfo = new \SplFileInfo(RESOURCE.'wordlist.txt'); | |
$file = $fileinfo->openFile('r'); | |
$anagramSeedLength = strlen($anagramSeed); | |
$anagramSeedAsArray = str_split($anagramSeed); | |
Capture some data using tcpdump:
tcpdump -enx -w cassandra-dump port 9160
Open the file with wireshark and find a packet where the data looks related to casandra e.g. it has multiget_slice
or similar commands near the start of the data.
In wireshark select the data part of the packet and right click -> copy -> bytes -> hex stream
Now you need a thrift library to decode the data. thobbs/phpcassa should work.
while true; do inotifywait -qr --format '%w' *.go | while read FILE; do echo $FILE; gofmt -w $FILE; done; done; |