This file contains 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
# /etc/udev/rules.d/99-usb-serial.rules | |
SUBSYSTEM=="tty", ATTRS{idVendor}=="0658", ATTRS{idProduct}=="0200", SYMLINK+="zwave" |
This file contains 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/sh | |
host= | |
user= | |
pass= | |
wanip=$1 | |
resolvedip=$(nslookup $host | grep $host -A1 | awk '/^Address / {print $3}') | |
if [ "$wanip" == "$resolvedip" ]; then |
This file contains 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
go () { | |
GO="" | |
for dir in /webhome; do | |
for d in {1..3}; do | |
D="`find $dir -type d -maxdepth $d -iname "$1"|head -n1`" | |
if [ -n "$D" ]; then | |
GO=$D | |
break 2 | |
fi |
This file contains 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
. ~/.git-prompt.sh | |
GIT_PS1_SHOWDIRTYSTATE=true | |
GIT_PS1_SHOWCOLORHINTS=true | |
GIT_PS1_SHOWUNTRACKEDFILES=true | |
GIT_PS1_SHOWUPSTREAM=verbose | |
PS1="\[\033[0;30m\]\@ \[\033[0;30m\]\w\n\[\033[0;30m\]\u\[\033[0;32m\] [\W\[\033[01;38;5;022m\]\$(__git_ps1 \" %s\")\[\033[0;32m\]]\[\033[0;30m\] $ \[\033[0m\]" |
This file contains 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
# bash/zsh git prompt support | |
# | |
# Copyright (C) 2006,2007 Shawn O. Pearce <[email protected]> | |
# Distributed under the GNU General Public License, version 2.0. | |
# | |
# This script allows you to see repository status in your prompt. | |
# | |
# To enable: | |
# | |
# 1) Copy this file to somewhere (e.g. ~/.git-prompt.sh). |
This file contains 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
gci . *.mp4 -R | | |
foreach-object { | |
$saveBase = "D:\handbrake" | |
$curDir = (Get-Item -Path ".\" -Verbose).FullName | |
$inName = $_.BaseName + $_.Extension | |
$inFile = $_.DirectoryName + "\" + $inName | |
$outFile = $saveBase + $inFile.replace($curDir, "") | |
$outDir = $outFile.replace($inName, "") | |
New-Item -path "$outDir" -type directory -force | |