Skip to content

Instantly share code, notes, and snippets.

@docrock
docrock / GistTest1
Created August 10, 2012 12:17
Testing @tscoff Ruby Script to put Gist into DayOne Please Ignore
Testing @tscoff Ruby Script to put Gist into DayOne Please Ignore,.
irb(main):019:0> def h(name = "World")
irb(main):020:1> puts "Hello #{name.capitalize}!"
irb(main):021:1> end
=> nil
irb(main):022:0> h "chris"
Hello Chris!
=> nil
irb(main):023:0> h
alias fixow='/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister -kill -r -domain local -domain user;killall Finder;echo "Open With has been rebuilt, Finder will relaunch"'
/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister -kill -r -domain local -domain user;killall Finder;echo "Open With has been rebuilt, Finder will relaunch"
on run
-- just here to get things started...
end run
on idle
tell application "Notes"
if exists note "What apps are running?" then
delete note "What apps are running?"
tell application "Finder"
set myRunningApps to name of every process whose visible is true
<style type="text/css">
body {
background:url(dynamic_width_bg.jpg) #fff no-repeat left top;
background-size: 100%;
}
sudo /Applications/Install\ OS\ X\ Mavericks.app/Contents/Resources/createinstallmedia –volume /Volumes/Untitled –applicationpath /Applications/Install\ OS\ X\ Mavericks.app –nointeraction
@docrock
docrock / gist:574a91e2c78d203a2b27
Created July 11, 2014 18:58
JEPGmini 1.8.3 Crash Report
Process: JPEGmini [27647]
Path: /Applications/JPEGmini.app/Contents/MacOS/JPEGmini
Identifier: com.icvt.JPEGmini-retail
Version: 1.8.3 (64)
Code Type: X86 (Native)
Parent Process: launchd [200]
Responsible: JPEGmini [27647]
User ID: 502
Date/Time: 2014-07-11 08:46:47.159 -1000