Skip to content

Instantly share code, notes, and snippets.

View Down10's full-sized avatar
💼
I could use some paid work

Jesse Burgheimer Down10

💼
I could use some paid work
View GitHub Profile
@Down10
Down10 / Close All Notification Windows.applescript
Created January 3, 2017 05:56
Close all of the annoying mac OS notification windows at once! Just make a new service routine in Automator, pick "Run Applescript" with `no input` in `any application`, paste in this script, and save as a Service. Then apply a keystroke and enjoy!
on run {}
if isNotificationCenterRunning() then
my closeAllNotes()
end if
end run
on closeAllNotes()
tell application "System Events"
tell application process "NotificationCenter"
set everyNote to every window
@Down10
Down10 / DOWNTerm.itermcolors
Created October 29, 2014 23:24
My Custom Color Scheme for iTerm 2.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Ansi 0 Color</key>
<dict>
<key>Blue Component</key>
<real>0.20000000000000000</real>
<key>Green Component</key>
<real>0.20000000000000000</real>
@Down10
Down10 / ResmoothText
Created October 29, 2014 17:44
Bookmarklet to toggle text in Safari to render in either full-pixel anti-aliased text or subpixel “LCD” anti-aliased text.
javascript:void((function(d){var%20l,tp='%2A%7B-webkit-font-smoothing%3A',ts='%20%21important%3B',wts='-webkit-text-stroke:0'+ts+'%7D',aafix=d.getElementById('fsaa'),subfix=d.getElementById('fssub'),autofix=d.getElementById('fsauto');if(aafix){aafix.parentNode.removeChild(aafix);l=d.createElement('link');l.rel='stylesheet';l.id='fssub';l.href='data:text/css,'+escape(tp+'subpixel-antialiased'+ts+wts);d.documentElement.childNodes[0].appendChild(l)}else%20if(subfix){subfix.parentNode.removeChild(subfix);l=d.createElement('link');l.rel='stylesheet';l.id='fsauto';l.href='data:text/css,'+escape(tp+'auto'+ts+wts);d.documentElement.childNodes[0].appendChild(l)}else%20if(autofix){autofix.parentNode.removeChild(autofix)}else{l=d.createElement('link');l.rel='stylesheet';l.id='fsaa';l.href='data:text/css,'+escape(tp+'antialiased'+ts+wts);d.documentElement.childNodes[0].appendChild(l)}})(document));
@Down10
Down10 / DOWNTerm.terminal
Created October 29, 2014 17:40
My Custom Color Scheme for Apple Terminal
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>ANSIBlackColor</key>
<data>
YnBsaXN0MDDUAQIDBAUGFRZYJHZlcnNpb25YJG9iamVjdHNZJGFyY2hpdmVyVCR0b3AS
AAGGoKMHCA9VJG51bGzTCQoLDA0OVU5TUkdCXE5TQ29sb3JTcGFjZVYkY2xhc3NPECcw
LjEzMzMzMzMzMzMgMC4xMzMzMzMzMzMzIDAuMTMzMzMzMzMzMwAQAYAC0hAREhNaJGNs
YXNzbmFtZVgkY2xhc3Nlc1dOU0NvbG9yohIUWE5TT2JqZWN0XxAPTlNLZXllZEFyY2hp
@Down10
Down10 / Readerize
Created March 13, 2011 01:56
Bookmarklet that toggles a stylesheet that makes text clean and easy to read
javascript:(function(){var%20styles,t='%20!important',bgc='background-color:#FFF'+t+';',fclr='color:#222'+t+';',fsiz='font-size:16px'+t+';',ffam='font-family:Palatino,Palatino%20Linotype,Book%20Antiqua,URW%20Palladio%20L,Bitstream%20Charter,Georgia,Times,serif'+t+';',txr='-webkit-text-shadow:none;text-shadow:none'+t+';text-decoration:none;text-transform:none'+t+';-moz-outline:none;outline:0'+t+';',opac='filter:alpha(opacity=100)'+t+';-moz-opacity:1.0;-khtml-opacity:1.0;opacity:1.0'+t+';',errors=0,cssLink=window.document.getElementById('newcss');styles=('html{font-size:100%'+t+'}*{font-size:1em'+t+';background:transparent%20url(none)'+t+';'+fclr+ffam+opac+'letter-spacing:0'+t+';text-align:left'+t+';vertical-align:baseline'+t+';-webkit-font-smoothing:subpixel-antialiased'+t+';text-rendering:optimizeLegibility;letter-spacing:0'+t+';word-spacing:normal'+t+';border:0%20none'+t+';overflow:visible'+t+';height:auto'+t+'}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block'+t+'}i