Never use this stuff any more
parent
939ab2de98
commit
d8798a230c
@ -1,35 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
# The MIT License (MIT)
|
|
||||||
#
|
|
||||||
# Copyright (c) 2013 Gil Gonçalves
|
|
||||||
#
|
|
||||||
# Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
||||||
# this software and associated documentation files (the "Software"), to deal in
|
|
||||||
# the Software without restriction, including without limitation the rights to
|
|
||||||
# use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
|
||||||
# the Software, and to permit persons to whom the Software is furnished to do so,
|
|
||||||
# subject to the following conditions:
|
|
||||||
#
|
|
||||||
# The above copyright notice and this permission notice shall be included in all
|
|
||||||
# copies or substantial portions of the Software.
|
|
||||||
#
|
|
||||||
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
||||||
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
|
||||||
# FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
|
||||||
# COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
|
||||||
# IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
||||||
# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
||||||
|
|
||||||
if [[ -n $1 ]]; then
|
|
||||||
space_character=$1
|
|
||||||
else
|
|
||||||
space_character='='
|
|
||||||
fi
|
|
||||||
|
|
||||||
for i in $(seq 1 $(tput cols));
|
|
||||||
do
|
|
||||||
echo -n "${space_character}";
|
|
||||||
done
|
|
||||||
|
|
||||||
echo ""
|
|
@ -1,27 +0,0 @@
|
|||||||
#!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
|
|
||||||
|
|
||||||
require "osx/cocoa"
|
|
||||||
include OSX
|
|
||||||
|
|
||||||
class Timer
|
|
||||||
def init
|
|
||||||
tick
|
|
||||||
end
|
|
||||||
def tick(a)
|
|
||||||
count = `notmuch count -- tag:inbox AND tag:unread`
|
|
||||||
foreground = count.to_i > 0 ? NSColor.whiteColor : NSColor.blackColor
|
|
||||||
background = count.to_i > 0 ? NSColor.colorWithSRGBRed_green_blue_alpha(0.8, 0.1, 0.1, 0.6) : NSColor.clearColor
|
|
||||||
dict = NSDictionary.dictionaryWithObjects_forKeys([background, foreground, NSFont.systemFontOfSize(16)], [NSBackgroundColorAttributeName, NSForegroundColorAttributeName, NSFontAttributeName])
|
|
||||||
str = NSAttributedString.alloc().initWithString_attributes("\n ✉ " + count, dict)
|
|
||||||
$statusitem.setAttributedTitle(str)
|
|
||||||
end
|
|
||||||
def click(a)
|
|
||||||
NSLog("hiiii")
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
app = NSApplication.sharedApplication
|
|
||||||
$statusitem = NSStatusBar.systemStatusBar().statusItemWithLength(NSVariableStatusItemLength)
|
|
||||||
NSTimer.scheduledTimerWithTimeInterval_target_selector_userInfo_repeats(10.0, Timer.new, 'tick:', nil, true)
|
|
||||||
|
|
||||||
app.run
|
|
File diff suppressed because it is too large
Load Diff
@ -1,19 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
INTERFACE=en0
|
|
||||||
OUI="$HOME/dotfiles/bin/oui.txt"
|
|
||||||
OUI_LEN=19004
|
|
||||||
|
|
||||||
R=$(((RANDOM % ${OUI_LEN})+1))
|
|
||||||
PREFIX=`head -$R $OUI | tail -1`
|
|
||||||
CMD="sudo ifconfig ${INTERFACE} ether ${PREFIX}:"
|
|
||||||
for i in `seq 1 6`; do
|
|
||||||
R=$(((RANDOM % 15)+1))
|
|
||||||
C=`echo "obase=16; $R" | bc`
|
|
||||||
CMD="$CMD$C"
|
|
||||||
if [ $((i % 2)) = 0 ] && [ $i != 6 ]; then
|
|
||||||
CMD="$CMD:"
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
RESULT=`$CMD`
|
|
||||||
echo $CMD
|
|
@ -1,7 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
while [ 1 ];
|
|
||||||
do
|
|
||||||
imagesnap - | convert - -resize "50%" jpeg:- | ssh dustinswan@dustinswan.org "cat > /srv/http/dustinswan.org/dustin.jpg"
|
|
||||||
sleep 10;
|
|
||||||
done
|
|
||||||
|
|
@ -1,5 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
tmux split-window -l 5 check_mail.sh
|
|
||||||
tmux select-pane -U
|
|
||||||
tmux rename-window ✉
|
|
||||||
alot
|
|
@ -1,5 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
tmux split-window -l 5 mopidy
|
|
||||||
tmux select-pane -U
|
|
||||||
tmux rename-window ♫
|
|
||||||
ncmpcpp
|
|
Loading…
Reference in New Issue