- 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=="power_supply", ENV{POWER_SUPPLY_ONLINE}=="[01]", RUN+="power %E{POWER_SUPPLY_ONLINE}" |
ACTION=="change", SUBSYSTEM=="drm", ENV{HOTPLUG}=="1", RUN+="display" |
(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 | |
} |
# **************** READ THIS FIRST ****************** | |
# | |
# This is not a script for you to run. I repeat, do not download and run this! | |
# | |
# This is only a guide to show the required steps for successful UEFI + GRUB2 installation | |
# Many of the choices are examples or assumptions; don't blindly type shit into your machine | |
# until/unless you at least read the comments around each command | |
# | |
# These steps assume you've booted in UEFI mode by preparing your USB stick per these instructions: | |
# https://wiki.archlinux.org/index.php/UEFI#Archiso |
#!/bin/zsh | |
for i in /sys/class/drm/card0-*/status; do | |
d="${${${i#*-}%/*}/(-?-|-)}" | |
if [[ "$d" == "LVDS1" ]]; then | |
t="--output LVDS1 --auto --primary$t" | |
elif [[ "$(<$i)" == "connected" ]]; then | |
t="$t --output $d --auto --left-of LVDS1" | |
else |