- Go to System Preferences.
- Click on Keyboard
- Go to Keyboard Shortcuts tab
- Select application shortcuts in the the left pane
- Click the plus sign on the right side under the left pane
- Select Google Chrome from the Application dropdown
- Type in: "Search the Web..."
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # trying to install PPA behind firewall fails: | |
| $ sudo add-apt-repository ppa:chris-lea/node.js | |
| gpg: requesting key C7917B12 from hkp server keyserver.ubuntu.com | |
| gpgkeys: HTTP fetch error 7: couldn't connect to host | |
| gpg: no valid OpenPGP data found. | |
| gpg: Total number processed: 0 | |
| recv failed | |
| # this is how you get around it (use the key from the command above) | |
| $ sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys C7917B12 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # force git to always use https instead of ssh | |
| git config --global url."https://".insteadOf git:// |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /*global module:false*/ | |
| module.exports = function(grunt) { | |
| // Project configuration. | |
| grunt.initConfig({ | |
| lint: { | |
| files: [ 'grunt.js', | |
| 'lib/**/*.js', | |
| 'src/**/*.js' | |
| ] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Vim 7.3 | |
| sudo add-apt-repository ppa:infie/vim-lucid | |
| # php 5.4 | |
| sudo add-apt-reposotory ppa:ondrej/php5 | |
| # wine 1.4 | |
| sudo add-apt-repository ppa:ubuntu-wine/ppa | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| # | |
| # This shell script passes all its arguments to the binary inside the | |
| # MacVim.app application bundle. If you make links to this script as view, | |
| # gvim, etc., then it will peek at the name used to call it and set options | |
| # appropriately. | |
| # | |
| # Based on a script by Wout Mertens and suggestions from Laurent Bihanic. This | |
| # version is the fault of Benji Fisher, 16 May 2005 (with modifications by Nico | |
| # Weber and Bjorn Winckler, Aug 13 2007). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #disable dashboard | |
| defaults write com.apple.dashboard mcx-disabled -boolean YES | |
| # must restart dock before it takes effect | |
| killall dock |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $lat = 0; // some latitude | |
| $lng = 0; // some longitude | |
| $dst = 100; // some distance in miles | |
| // get the contents of the file in the gist below | |
| $sql = file_get_contents('haversine.sql') | |
| // prepare PDO query | |
| $statement = $db->prepare($sql); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ; DOTA2 CONFIG FILE | |
| ;;;;;;;;;;;;;;;;;;;; | |
| ; Put this file in: C:\Program Files (x86)\Steam\steamapps\common\dota 2 beta\dota\cfg\ | |
| ; Auto-deny on right click (no need to hit A to target friendly unit to deny) | |
| dota_force_right_click_attack 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| grunt=grunt.cmd $* |