Skip to content

Instantly share code, notes, and snippets.

@4rc0s
4rc0s / vowels.md
Created February 21, 2012 19:15
Clinton Deploys Vowels to Bosnia

#Clinton Deploys Vowels to Bosnia

(originally appeared in The Onion, Number One In News)

##Cities of Sjlbvdnzv, Grzny to Be First Recipients

Before an emergency joint session of Congress yesterday, President Clinton announced US plans to deploy over 75,000 vowels to the war-torn region of Bosnia. The deployment, the largest of its kind in American history, will provide the region with the critically needed letters A,E,I,O and U, and is hoped to render countless Bosnian names more pronounceable.

"For six years, we have stood by while names like Ygrjvslhv and Tzlynhr and Glrm have been horribly butchered by millions around the world," Clinton said. "Today, the United States must finally stand up and say 'Enough.' It is time the people of Bosnia finally had some vowels in their incomprehensible words. The US is proud to lead the crusade in this noble endeavour."

@4rc0s
4rc0s / SimpleKeyboardHistory.ahk
Created November 7, 2011 16:37
AutoHotKey clipboard history script that is easily navigated and relatively short
; Retrieves saved clipboard information since when this script last ran
Loop C:\tmp\clipvar*.txt
{
clipindex += 1
FileRead clipvar%A_Index%, %A_LoopFileFullPath%
FileDelete %A_LoopFileFullPath%
}
maxindex := clipindex
OnExit ExitSub
@4rc0s
4rc0s / plainpaste.ahk
Created November 7, 2011 16:29
Paste clipboard as plain text without losing original content
;;----------------------
;; PASTE CLIPBOARD AS
;; PLAIN TEXT
;;----------------------
#v::
ClipSaved := ClipboardAll ; Save original clipbaord
ClipBoard = %ClipBoard% ; Convert to plain text
Send ^v ; For best compatibility: SendPlay
Sleep 50 ; Don't change clipboard while it is pasted! (Sleep > 0)
@4rc0s
4rc0s / fixfonts.sh
Created July 25, 2011 21:09
Script to fix font caches in OS X
sudo atsutil databases -remove
atsutil server -shutdown
atsutil server -ping
@4rc0s
4rc0s / vacmail
Created November 8, 2010 00:02
Vacuum mail.app mailbox file in one swoop.
sqlite3 ~/Library/Mail/Envelope\ Index vacuum;
#AdContainer,#AdMiddle,#RadAd_Skyscraper,#ad-frame,#bbccom_leaderboard,#bbccom_mpu,#center_banner,#footer_adcode,#hbBHeaderSpon,#header_adcode,#hiddenHeaderSpon,#navbar_adcode,#pagelet_adbox,#rightAds,#rightcolumn_adcode,#top-advertising,#topMPU,#tracker_advertorial,.ad-now,.adbox,.adspot,.dfpad,.prWrap,.sponsored,[id^="adbrite"],[id^="dclkAds"],[id^="konaLayer"],a.kLink span[id^="preLoadWrap"][class="preLoadWrap"],div[id="tooltipbox"][class^="itxt"],div[id^="google_ads_div"],embed[flashvars*="AdID"],iframe[id="dapIfM0"],iframe[name^="AdBrite"],iframe[src*="clicksor.com"],img[src*="clicksor.com"],ispan#ab_pointer,#A9AdsMiddleBoxTop,#A9AdsOutOfStockWidgetTop,#A9AdsServicesWidgetTop,#ADsmallWrapper,#Ad2,#Ad3Left,#Ad3Right,#AdBar1,#AdContainerTop,#AdHeader,#AdRectangle,#AdShowcase_F1,#AdSky23,#AdSkyscraper,#AdSponsor_SF,#AdTargetControl1_iframe,#AdText,#Ad_Block,#Ad_Center1,#Ad_Top,#Adrectangle,#AdsContent,#AdsWrap,#AdvertMPU23b,#Advertorial,#BannerAdvert,#BigBoxAd,#CompanyDetailsNarrowGoogleAdsPresentationContr
C:\cygwin\bin\rxvt.exe -display :0 --geometry 80x40+300+200 -sr -sl 1500 -bg black -fg gray -fn "Lucida Console-14" -tn rxvt-cygwin-native -e /bin/bash --login
Hello,
We have heard from many of you that you would like to have a better way to organize your growing Kindle libraries. We are currently working on a solution that will allow you to organize your Kindle libraries. We will be releasing this functionality as an over-the-air software update as soon as it is ready, in the first half of 2010.
The Kindle team maintains a Facebook and Twitter feed for customers to follow us. Here they are:
Facebook: http://www.facebook.com/pages/Amazon-Kindle/14408401557
Twitter: http://twitter.com/KindleReads
Thanks for using Kindle!
#!/usr/bin/env bash
#
# toggle_app
# Toggle the visibility of any app on Mac OS X
# Use with Quicksilver or something to toggle with shortcut keys
#
# by: Thomas Aylott -- SubtleGradient.com
# license: MIT
#
# Add extension for supported modes based on TM_SCOPE
# Cribbed from http://github.com/defunkt/gist.el/tree/master/gist.el
def get_extension
scope = ENV["TM_SCOPE"].split[0]
case scope
when /source\.actionscript/ : "as"
when /source\.c/, /source\.objc/ : "c"
when /source\.c\+\+/, /source.objc\+\+/ : "cpp"
# common-lisp-mode : "el"
when /source\.css/ : "css"