This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
SUBVENDOR_IDS=$(grep -P '^\t\t[0-9a-f]{4}' /usr/share/hwdata/pci.ids | cut -d' ' -f1 | tr -d '\t' | sort -u) | |
VENDORS=$(grep -P '^[0-9a-f]{4}' /usr/share/hwdata/pci.ids) | |
VENDOR_IDS=$(grep -P '^[0-9a-f]{4}' /usr/share/hwdata/pci.ids | cut -d' ' -f 1) | |
for svid in $SUBVENDOR_IDS; do | |
if [ $(echo "$VENDOR_IDS" | grep $svid) ]; then | |
echo "Found $svid" | |
else |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
default: | |
ocamlfind ocamlc -o test_test -package oUnit -linkpkg -g test.ml | |
clean: | |
rm *.cmi *.cmo *.cmx test_test |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
tmup () | |
{ | |
echo -n "Updating to latest tmux environment..."; | |
export IFS=","; | |
for line in $(tmux showenv -t $(tmux display -p "#S") | tr "\n" ","); | |
do | |
if [[ $line == -* ]]; then | |
unset $(echo $line | cut -c2-); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#1: Invert iTunes Store links (Arrows name field browse Library) | |
defaults write com.apple.iTunes invertStoreLinks -bool YES | |
#2: Make [⌘F] focus the search input in iTunes | |
defaults write com.apple.iTunes NSUserKeyEquivalents -dict-add "Target Search Field" "@F" | |
#3: Enable iTunes track notifications in the Dock | |
defaults write com.apple.dock itunes-notifications -bool true | |
##### |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Enable iTunes track notifications in the Dock | |
defaults write com.apple.dock itunes-notifications -bool true |