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
| // Highlight words containing github. | |
| $("#content p").highlight("github"); |
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
| " =============================================== | |
| " _ __(_)__ _ ________ | |
| " _| |/ / // ' \/ __/ __/ | |
| " (_)___/_//_/_/_/_/ \__/ | |
| " | |
| " Maintainer: Matthew Pietz | |
| " | |
| " =============================================== | |
| " Put your overrides in here |
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
| jQuery.expr[':'].external = function(obj) { | |
| return !obj.href.match(/^mailto\:/) && (obj.hostname != location.hostname); | |
| }; | |
| // Add class to all external links | |
| $('a:external').addClass('external'); |
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
| #kill-defaults | |
| > Each command is defined on a single line comprised of: | |
| > | |
| > 1. a case-insensitive, alpha-numeric trigger followed | |
| > by whitespace | |
| > 2. a url followed by whitespace (if the url contains | |
| > spaces they must be encoded as `%20`) | |
| > 3. a short description | |
| > | |
| > Urls may contain the following replacement tokens: |
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 | |
| ############################# | |
| # Migrate User Credentials | |
| # | |
| # @author Matthew Pietz | |
| Mode=0 | |
| BackupPath="/tmp/user-mig.$$" | |
| StorageFile="user-migrate.tar.gz" | |
| StartID=1000 |
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
| Windows Registry Editor Version 5.00 | |
| ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | |
| ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | |
| ;; Disable Adobe Reader Update Check | |
| [HKEY_LOCAL_MACHINE\SOFTWARE\Adobe\Adobe ARM\1.0\ARM] | |
| "iCheck"=dword:00000000 | |
| ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | |
| ;; Disable CCleaner Update Check | |
| [HKEY_CURRENT_USER\Software\Piriform\CCleaner] |
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
| " I used to run call system('find ~/.vimbackup -mtime +14 -exec gvfs-trash "{}" \;') | |
| " but now have created a more portable version since I work on Windows, Mac, & Linux. | |
| set backup | |
| set nowritebackup | |
| set backupcopy=yes | |
| set backupdir=$HOME/.vimbackup | |
| set directory=$HOME/.vimswap,./ | |
| " Timestamp the backups |
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
| @echo off | |
| cscript PinItem.vbs /taskbar /item:"%ProgramData%\Microsoft\Windows\Start Menu\Programs\Mozilla Firefox\Mozilla Firefox.lnk" | |
| cscript PinItem.vbs /taskbar /item:"%ProgramData%\Microsoft\Windows\Start Menu\Programs\Microsoft Office\Microsoft Office Word 2007.lnk" | |
| cscript PinItem.vbs /taskbar /item:"%ProgramData%\Microsoft\Windows\Start Menu\Programs\Microsoft Office\Microsoft Office Excel 2007.lnk" | |
| cscript PinItem.vbs /taskbar /item:"%ProgramData%\Microsoft\Windows\Start Menu\Programs\Microsoft Office\Microsoft Office PowerPoint 2007.lnk" |
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. Edit the `EnvironmentVariables` and `WatchPaths` to point to your profile. (NOTE: unless you change | |
| the `ProgramArguments`, you MUST keep the "Downloads" folder the same. | |
| 2. Move the file in to your `~/Library/LaunchAgents` folder. | |
| 3. Log out and back in. | |
| If you want, open up Console.app and watch "Console Messages" for files that were trashed. an example | |
| message looks like: | |
| 3/5/10 1:30:43 PM me.mpietz.Trash-Old-Downloads[9828] /Users/mpietz/Downloads/test -> /Users/mpietz/.Trash/test |