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
defaults write com.apple.finder ProhibitBurn -bool YES && killall Finder |
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
defaults write com.apple.Safari FindOnPageMatchesWordStartsOnly -bool false |
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/bash | |
cd /User/Documents/FireCloud/BackUp | |
git push origin master |
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
on run {input, parameters} | |
set w to count words of (input as string) | |
set ws to "s" | |
if w = 1 then set ws to "" | |
set c to count characters of (input as string) | |
set cs to "s" | |
if c = 1 then set cs to "" | |
display dialog (c & " character" & cs & " (" & w & " word" & ws & ") in the selected text." as string) buttons {"Close"} | |
end run |
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
function int2str(integer, codec) { | |
var clen = codec.length, string = "", mod; | |
while (integer > 0) { | |
mod = integer % clen; | |
string = codec[mod] + string; | |
integer = (integer - mod) / clen; | |
} | |
return string; | |
} |
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/bash | |
i=0 | |
for i in `seq 1 10`; do | |
starttime=`gdate +%s%3N` | |
start=`gdate +%s -r "$HOME/Library/Application Support/Alfred 2/Databases/clipboard.alfdb"` | |
echo `gdate +%s%3N` | pbcopy | |
until [ start != current ]; do | |
current=`gdate +%s -r "$HOME/Library/Application Support/Alfred 2/Databases/clipboard.alfdb"` | |
done | |
endtime=`gdate +%s%3N` |
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
hide all files whose Path matches: | |
.*/Users/[^\/]+/(\.bash_sessions|\.((?!bash_).)*|npm\-debug\.log) |
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
function myFunction() { | |
var labelName = "YouTube", | |
label = GmailApp.getUserLabelByName(labelName), | |
threads = label.getThreads(), | |
msg, match, date, now = new Date(), afterTime = 1000 * 60 * 60; | |
Logger.log("Threads: " + threads.length); | |
for (var x in threads) { | |
Logger.log("Found thread: " + threads[x].getFirstMessageSubject()); | |
msg = threads[x].getMessages(); | |
match = msg[0].getPlainBody().match(/watch\?v=(.*?)\&/); |
OlderNewer