⌘T | go to file |
⌘⌃P | go to project |
⌘R | go to methods |
⌃G | go to line |
⌘KB | toggle side bar |
⌘⇧P | command prompt |
A Sample Post | |
Hello there! This is a sample post for gist.io, a super-lightweight writing soapbox for hackers. | |
Now look up. Further. Above the post title. See that grey text with the gist ID? | |
Now back to me. That grey text is a link! Open that sucker in a new tab to see the source for this post. Also, I'm on a horse. | |
This is a major heading |
In the terminal, type:
security dump-keychain -d ~/Library/Keychains/login.keychain
If your passwords starts printing out right away, that means anyone using your computer can see all your passwords.
If you’ve seen enough passwords, type Control+C in your terminal to stop it.
By installing Vim with ruby support from the sources, it is build against the system wide installation of ruby. If you already installed Vim and/or ruby with sudo apt-get install vim (or sudo apt-get install ruby) or with brew install vim (e.g. brew install ruby) if you are using OS X, remove it completely from your system to install the latest version of Vim.
I'm installing rbenv on different machines so I created the following script (named rbenv_install.sh) to install ruby 1.9.2-p320:
cd $HOME
sudo rm -rf .rbenv
git clone git://github.com/sstephenson/rbenv.git .rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile
Running a python script using:
python <file_name>.py
is always ok but trying to run it directly:
./<file_name>.py
You might see error messages. This is because each OS/system uses a different line termination character:
[ | |
{ | |
"keys": ["super+alt+left"], | |
"command": "set_layout", | |
"args": | |
{ | |
"cols": [0.0, 0.33, 1.0], | |
"rows": [0.0, 1.0], | |
"cells": [[0, 0, 1, 1], [1, 0, 2, 1]] | |
} |
$ curl get.pow.cx/uninstall.sh | sh #if you have pow installed | |
$ echo 'export POW_DST_PORT=88' >> ~/.powconfig | |
$ sudo curl https://raw.github.com/gist/1058580/zzz_pow.conf -o /private/etc/apache2/other/zzz_pow.conf | |
$ sudo apachectl restart | |
$ curl get.pow.cx | sh |
<android xmlns:android="http://schemas.android.com/apk/res/android"> | |
<tool-api-level>8</tool-api-level> | |
<manifest android:installLocation="preferExternal"> | |
<uses-sdk android:minSdkVersion="7" /> | |
</manifest> | |
</android> |
I was having a problem with Win7 and Virtualbox 4.2.6. All my vms cannot be started up. | |
the answer appears to be found by going to C:\USERS\<username>\AppData\Local\VirtualStore\Program Files | |
and then rmdir /s Oracle | |
the contents there are created by running Virtualbox without Administrator privilege and can safely be deleted. | |
the new version of Virtualbox will create new files there, if needed. |
Sometimes we cannot successfully install packages using "pip install". We can then try to find compiled bundle in "exe" format for the specified python release version we are using.
If we found bundle compiled by some other developers and we want to install it into a specific virtualenv rather than globally, we can simply use the easy_install tool under the virtualenv we activated:
easy_install binary_installer_built_with_distutils.exe