$ zmv -n '(.)(<->)(.[^.]#)' '$1$(($2+1))$3' # would rename x.0001.y to x.2.y. $ zmv -n '(.0#)(<->)(.[^.]#)' '$1$(($2+1))$3'
$ zmv '*' '${(L)f}'
$ autoload zmv
#!/usr/bin/env bash | |
# Disable Face Detect in Photos app | |
defaults write com.apple.iPhoto PKFaceDetectionEnabled 0 | |
defaults write com.apple.gamed Disabled -bool true | |
defaults write com.apple.NetworkBrowser DisableAirDrop -bool YES # log out, log in | |
$ zmv -n '(.)(<->)(.[^.]#)' '$1$(($2+1))$3' # would rename x.0001.y to x.2.y. $ zmv -n '(.0#)(<->)(.[^.]#)' '$1$(($2+1))$3'
$ zmv '*' '${(L)f}'
$ autoload zmv
ANT000000 | Antiques & Collectibles / General | |
---|---|---|
ANT001000 | Antiques & Collectibles / Americana | |
ANT002000 | Antiques & Collectibles / Art | |
ANT003000 | Antiques & Collectibles / Autographs | |
ANT005000 | Antiques & Collectibles / Books | |
ANT006000 | Antiques & Collectibles / Bottles | |
ANT007000 | Antiques & Collectibles / Buttons & Pins | |
ANT008000 | Antiques & Collectibles / Care & Restoration | |
ANT009000 | Antiques & Collectibles / Transportation | |
ANT010000 | Antiques & Collectibles / Clocks & Watches |
# See http://pacha.hk/2017-07-15_gnu_nongnu_homebrew.html | |
# XCode CLT | |
xcode-select --install | |
# Update Homebrew and add formulae | |
brew update | |
# Check for broken dependencies and/or outdated packages | |
brew doctor |
import os | |
import feedparser | |
import transmissionrpc as tm | |
script_dir = os.path.dirname(__file__) | |
downloaded_file = os.path.join(script_dir, 'showrss.downloaded') | |
base_path = '/media/seagate/Video/Series/' | |
feed_url = 'http://showrss.info/user/448.rss' | |
feed = feedparser.parse(feed_url) |
# Admin User | |
#------------------------- | |
myd=`date "+%Y-%m-%d-%H-%M-%S"` | |
# ovverride.plist | |
#------------------------- | |
sudo cat /var/db/launchd.db/com.apple.launchd/overrides.plist > ~/$myd-root-ovverrides.txt | |
sudo lsof -i > ~/$myd-root-lsof.txt | |
# blued |
#!/bin/bash | |
cname='mycomputername' | |
nbname='mybiosname' | |
# path to /Volumes/not-system-root-volumes | |
#vo=/Volumes/path | |
#--------------------------------------------------------------------- | |
# Unlod airplay, cupsd, netbiosd |
#!/bin/bash | |
# disable bluetooth | |
# OS X 10.8.2 | |
# 2012-10-08 | |
home=$HOME | |
bk=$home/backup-bluetooth-extentions | |
mkdir $bk |
#!/bin/bash | |
/usr/bin/osascript <<EOT | |
set theResponse to display dialog "What's your code?" default answer "" with icon stop buttons {"Cancel", "Continue"} default button "Continue" with hidden answer | |
display dialog "My Secret Code is " & (text returned of theResponse) & "." | |
EOT |