- Suitcase
- Backpacks
- Laptops
- Hand cream
- Kleenex
- Drinks
- Lamps
- Rolling carts
#!/usr/bin/env bash | |
adjust() { | |
delay=0.01 | |
bl_base=$2 | |
cur_br=$(cat $bl_base/brightness) | |
min_br=0 | |
max_br=$(cat $bl_base/max_brightness) |
from functools import reduce # Needed for Python 3.x | |
from operator import add | |
def soundex(letters, duplicates=False, initial=True, size=4, | |
sounds=[('aeiouyhw', ''), ('bfpv', '1'), ('cgjkqsxz', '2'), ('dt', '3'), ('l', '4'), ('mn', '5'), ('r', '6')]): | |
return '0'*size if not len(letters) else ((letters[0] if initial else '') + | |
reduce(lambda stack, next: stack+next if stack[-1:] != next or duplicates else stack, | |
map(lambda letter: reduce(add, (val for (key,val) in sounds if letter in key), ''), letters[1:]), ''))[:size if size else None].ljust(size, '0') |
--- original/linux-2.6.38.4/sound/usb/quirks.c 2011-04-21 16:34:46.000000000 -0500 | |
+++ new/linux-2.6.38.4/sound/usb/quirks.c 2011-04-23 20:32:19.486586452 -0500 | |
@@ -427,16 +427,17 @@ | |
/* | |
* Setup quirks | |
*/ | |
-#define AUDIOPHILE_SET 0x01 /* if set, parse device_setup */ | |
-#define AUDIOPHILE_SET_DTS 0x02 /* if set, enable DTS Digital Output */ | |
-#define AUDIOPHILE_SET_96K 0x04 /* 48-96KHz rate if set, 8-48KHz otherwise */ | |
-#define AUDIOPHILE_SET_24B 0x08 /* 24bits sample if set, 16bits otherwise */ |
ACTION=="change", SUBSYSTEM=="drm", ENV{HOTPLUG}=="1", RUN+="display" |
#!/usr/bin/env python3 | |
import argparse | |
import functools | |
import itertools | |
# Legendary Mark cost per infusion | |
COST = 3 |
(setq pop-up-frames "graphic-only") | |
(setq completion-show-help nil) | |
(setq ido-completion-buffer nil) |
#include <stdio.h> | |
struct data { | |
int fd; | |
}; | |
void test(void *d) { | |
struct data *x = (struct data *)d; // Cast the other way | |
printf("fd = %d\n", x->fd); // Dereference | |
} |
#!/usr/bin/env bash | |
# Create associative arrays | |
declare -A interior=() | |
declare -A exterior=() | |
# Make sure ethtool is installed on this host | |
apt-get install -y ethtool &>/dev/null | |
# For each container |