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
| #!/usr/bin/env bash | |
| { set +x; } 2>/dev/null | |
| IFS=$'\n' | |
| set "$@" $(find ~ -name ".*" ! -name ".CFUserTextEncoding" ! -type l -mindepth 1 -maxdepth 1) # dotfiles | |
| set "$@" $(find ~ -name "Google *" -mindepth 1 -maxdepth 1) # Google Drive | |
| set "$@" ~/git # store on github/etc :) | |
| set "$@" ~/node_modules | |
| set "$@" ~/Applications # install apps with brew cask |
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
| 0 6 * * * "/Users/apple/Library/Rime/sync.sh" >> /tmp/rime_sync-"$(date +"%Y%m")".log 2>&1 & |
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
| sssss |
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
| from subprocess import Popen, PIPE, STDOUT | |
| def execute(cmd, shell=False): | |
| p = Popen(cmd, shell=shell, stdout=PIPE, stderr=STDOUT) | |
| stdout, _ = p.communicate() | |
| return p.poll(), stdout |
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
| #!/usr/bin/env python | |
| # | |
| # AccessDump.py | |
| # A simple script to dump the contents of a Microsoft Access Database. | |
| # It depends upon the mdbtools suite: | |
| # http://sourceforge.net/projects/mdbtools/ | |
| import sys, subprocess, os | |
| DATABASE = sys.argv[1] |