Skip to content

Instantly share code, notes, and snippets.

### General Options
# there's a known bug with pbcopy,pbpaste not working with tmux, the next line
# wraps tmux in a wrapper to make them work. See:
# https://github.com/ChrisJohnsen/tmux-MacOSX-pasteboard
set -g default-command "reattach-to-user-namespace -l zsh"
set -g history-limit 7000
set -s default-terminal "xterm-256color"
setw -g mode-keys emacs
set -g status-keys emacs
set -g repeat-time 250
{
"^خ" = ("insertNewlineIgnoringFieldEditor:", "moveBackward:");
}
@a3ammar
a3ammar / No Distraction.csv
Last active March 27, 2016 15:18
Playlist
Name Artist Album
Awake Tycho Awake
Versions Moderat II
Yoga Means Union Ambulance Ltd LP
For Body and Kenzie Teen Daze All of Us Together
A Glass Star Module Imagineering
Super VVVVVVeat Boy Big Giant Circles Impostor Nostalgia
Yeah! (feat. Souleye) Big Giant Circles Impostor Nostalgia
Super VVVVVVeat Boy Big Giant Circles Impostor Nostalgia
Flicker (feat. Chris Geehan) Big Giant Circles Impostor Nostalgia
@a3ammar
a3ammar / .slate
Created January 22, 2015 15:50
My Slate configuration
# set how hints look
config defaultToCurrentScreen true
config windowHintsShowIcons true
config windowHintsIgnoreHiddenWindows false
config windowHintsSpread true
config windowHintsSpreadPadding 40
config windowHintsSpreadSearchWidth 80
# I use Karabiner to bind control to caplock and then bind the unused control button
@a3ammar
a3ammar / private.xml
Created October 26, 2014 09:54
Change Command key to Control on Emacs
<root>
<appdef>
<appname>emacs</appname>
<equal>org.gnu.Emacs</equal>
</appdef>
<item>
<name>Command to Control on Emacs</name>
<appendix>stuff</appendix>
<identifier>private.command_to_control</identifier>
<only>emacs</only>
@a3ammar
a3ammar / color-picker
Last active March 21, 2022 09:20
Use OS X Color Picker in Emacs
(defun custom-color--choose-action (widget &optional _event) ; this function is only needed if you want to use color-picker in Easy Customization
"customize `widget-color--chose-action' to not split the screen"
(list-colors-display
nil nil
`(lambda (color)
(when (buffer-live-p ,(current-buffer))
(widget-value-set ',(widget-get widget :parent) color)
(pop-to-buffer ,(current-buffer))))))
(defun nscolor2hex (color)
1. Stop Dropbox:
- Click the Dropbox icon in the menu bar at the top of your screen
- Click on the gear icon in the Notifications panel and select 'Quit Dropbox'
2. Download the newest version:
www.dropbox.com/install
3. Open your Terminal app (Located at /Applications/Utilities/Terminal)
@a3ammar
a3ammar / gist:5320867
Last active December 15, 2015 20:48
Maps for Saudi Jump Server
http://jumpit.site.nfoservers.com/server/maps/jump_heaven_a3.bsp
http://jumpit.site.nfoservers.com/server/maps/jump_4starters_a9.bsp
http://jumpit.site.nfoservers.com/server/maps/jump_annex_v2.bsp امسح الي بالسرفر وحط هذي
http://jumpit.site.nfoservers.com/server/maps/jump_mouser.bsp
http://jumpit.site.nfoservers.com/server/maps/jump_sexydev_v3.bsp
http://jumpit.site.nfoservers.com/server/maps/jump_natural_b2.bsp
http://jumpit.site.nfoservers.com/server/maps/jump_momentum.bsp
http://jumpit.site.nfoservers.com/server/maps/jump_glow_v4.bsp
http://jumpit.site.nfoservers.com/server/maps/jump_legion_beta2.bsp
http://jumpit.site.nfoservers.com/server/maps/jump_aviator_beta.bsp
@a3ammar
a3ammar / arabic sites
Created January 24, 2013 09:09
Sample of Arabic Blogs
http://sabq.org/Skvfde
http://www.yousefa.com/2013/01/2948/
http://hyperstage.net/articles/immortality-between-science-fiction-and-reality - This doesn't probably because the way the site is designed
http://world1-2.net/2012/12/19/happy-1st-anniversary/
http://www.blogjihad.com/?p=563
http://www.clippings.ws/%D8%A3%D8%B3%D8%A8%D9%88%D8%B9-%D8%A8%D9%84%D8%A7-%D9%82%D9%87%D9%88%D8%A9-%D8%A7%D9%84%D9%8A%D9%88%D9%85-%D8%A7%D9%84%D8%AE%D8%A7%D9%85%D8%B3/?utm_source=twitterfeed&utm_medium=twitter this also doesn't work, and it shuold
http://kianps.wordpress.com/2013/01/20/%D8%AA%D8%AD%D8%AF%D9%8A-%D8%A7%D9%84%D9%82%D8%B1%D8%A7%D8%A1%D8%A9/?utm_source=twitterfeed&utm_medium=twitter - this odesn't work either, both use weird URLs, maybe because of that?
http://eltawil.org/sciencewonders/?p=2485
@a3ammar
a3ammar / emacs-malformed
Created July 25, 2011 19:54
Emacs object malformed
Liz: ~ $ brew install -vd emacs
==> Downloading http://ftp.gnu.org/pub/gnu/emacs/emacs-23.3.tar.bz2
/usr/bin/curl -f#LA Homebrew 0.8 (Ruby 1.8.7-249; Mac OS X 10.7) http://ftp.gnu.org/pub/gnu/emacs/emacs-23.3.tar.bz2 -o /Users/Bx7/Library/Caches/Homebrew/emacs-23.3.tar.bz2
######################################################################## 100.0%
/usr/bin/tar xf /Users/Bx7/Library/Caches/Homebrew/emacs-23.3.tar.bz2
==> Downloading patches
/usr/bin/curl -f#LA Homebrew 0.8 (Ruby 1.8.7-249; Mac OS X 10.7) http://repo.or.cz/w/emacs.git/commitdiff_plain/c8bba48c5889c4773c62a10f7c3d4383881f11c1 -o 001-homebrew.diff https://raw.github.com/gist/1098107 -o 002-homebrew.diff
######################################################################## 100.0%
######################################################################## 100.0%
==> Patching