⌘T | go to file |
⌘⌃P | go to project |
⌘R | go to methods |
⌃G | go to line |
⌘KB | toggle side bar |
⌘⇧P | command prompt |
🚴♂️
This file contains 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
E:\>setup.exe /ACTION=install /SKIPRULES=PerfMonCounterNotCorr | |
Microsoft (R) SQL Server 2008 R2 Setup 10.50.1600.01 | |
Copyright (c) Microsoft Corporation. All rights reserved. |
This file contains 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
get "/css/foo.css" do | |
content_type 'text/css' | |
response['Expires'] = (Time.now + 60*60*24*356*3).httpdate | |
end |
This file contains 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
/usr/local/Library/Homebrew/global.rb:43: warning: Insecure world writable dir /usr/local/git/bin in PATH, mode 040777 | |
/usr/local/bin/brew:74: warning: Insecure world writable dir /usr/local/git/bin in PATH, mode 040777 | |
Error: no such file to load -- formula_support | |
Please report this bug: | |
https://github.com/mxcl/homebrew/wiki/checklist-before-filing-a-new-issue | |
/usr/local/Library/Homebrew/formula.rb:3:in `require' | |
/usr/local/Library/Homebrew/formula.rb:3 | |
/usr/local/Library/Homebrew/formula_installer.rb:2:in `require' | |
/usr/local/Library/Homebrew/formula_installer.rb:2 | |
/usr/local/Library/Homebrew/cmd/install.rb:1:in `require' |
This file contains 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
#if ( $is_signed_in && ($permissionChecker.isOmniadmin() ) ) | |
$theme.include($top_head_include) | |
#else | |
<script type="text/javascript"> | |
// hack catching exceptions | |
Liferay = function() {return {};}(); | |
Liferay.Portlet = { | |
isAjax: function(id) {return true;}, | |
process: function(id) {} | |
}; |
This file contains 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
# bash alias | |
alias subl='/Applications/Sublime\ Text\ 2.app/Contents/SharedSupport/bin/subl' | |
# bash function, usage: $ st -p [projectname] -opt2 -opt3 | |
function st() { | |
if [ -n "$1" -a -n "$2" ]; then # if more than one argument | |
if [ "$1" = "-p" -o "$1" = "--project" ]; then # if arg1 is -p or --project | |
local projectfile="$2" | |
[[ $projectfile != *.sublime-project ]] && projectfile="$2.sublime-project" # detect if arg2 already includes the ext | |
if [ -e $projectfile ]; then # does project file exist? |
This file contains 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
def check_ldap_user(name) | |
filter = Net::LDAP::Filter.eq("cn", name) | |
treebase = "dc=foo, dc=bar" | |
ldap.search(:base => treebase, :filter => filter, :attributes => attrs, | |
:return_result => false) do |entry| | |
entry.each do |attribute, values| | |
values.each do |value| | |
end | |
end |
This file contains 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
$("#current_form").submit(function(e){ | |
// prevent submit | |
e.preventDefault(); | |
console.log($(this).serialize()); | |
// to submit the form again | |
$(this).submit(); | |
}); |
This file contains 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
# Install rvm system-wide | |
bash -s stable < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer ) | |
# Update the packages | |
apt-get update | |
apt-get upgrade | |
apt-get install build-essential | |
# get the packages required by ruby | |
rvm pkg install zlib |
OlderNewer