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/bin/env sh | |
## | |
# This is script with usefull tips taken from: | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# | |
# install it: | |
# curl -sL https://raw.github.com/gist/2267306/hack.sh | sh | |
# |
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
.DS_Store | |
*.swp | |
*~.nib | |
build/ | |
*.pbxuser | |
*.perspective | |
*.perspectivev3 |
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
# Author: Gazza | gazaly(at)gmail(dot)com | |
# Notes: | |
# Simulate a variety of user-actions for Stacked ( http://code.google.com/p/stacked/ ) | |
# Dependencies: | |
# $ gem install capybara faker | |
require 'rubygems' | |
require 'capybara' | |
require 'capybara/dsl' | |
require 'faker' |
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
USE [stackunderflow] | |
GO | |
/****** Object: User [stackunderflow] Script Date: 9/22/2012 1:50:52 PM ******/ | |
CREATE USER [stackunderflow] FOR LOGIN [stackunderflow] WITH DEFAULT_SCHEMA=[stackunderflow] | |
GO | |
ALTER ROLE [db_owner] ADD MEMBER [stackunderflow] | |
GO | |
ALTER ROLE [db_securityadmin] ADD MEMBER [stackunderflow] | |
GO | |
/****** Object: Table [dbo].[answers] Script Date: 9/22/2012 1:50:52 PM ******/ |
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
Steps to take when installing redmine | |
- Download XCode and then go to => Preferences => Install CommandLine Tools (or download the cmd line tools without instaling XCode from apple site) | |
- sudo ln -s /usr/bin/gcc /usr/bin/gcc-4.2 #fixes error when bundler tries to install json | |
- Install homebrew | |
- brew install mysql |
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
# wget -O - https://raw.github.com/gist/3921725/ubuntu_redmine_setup.bash | bash | |
#add user gazza | |
adduser gazza | |
#add new user to list of sudoers | |
adduser gazza sudo | |
#now logout and re-login as gazza |
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
#from http://stackoverflow.com/questions/3777075/https-github-access/4454754#4454754 | |
env GIT_SSL_NO_VERIFY=true git clone https://github... | |
git config --global http.sslVerify false | |
export GIT_SSL_NO_VERIFY=true | |
#from http://viget.com/extend/effectively-using-git-with-subversion | |
git-svn clone s http://example.com/my_subversion_repo local_dir | |
git-svn rebase |
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
sudo update-rc.d -f apache2 remove | |
sudo update-rc.d sendmail disable | |
rails s -e production -p 80 |
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
#taken from user "pinyourwings22" | |
#at http://forums.macrumors.com/showthread.php?t=1418925 | |
on idle | |
tell application "Spotify" | |
set theTrack to current track | |
set theArtist to artist of theTrack | |
set theName to name of theTrack | |
if player state is playing then | |
set playStatus to "playing" |
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
############################################################################### | |
# Override system defaults # | |
############################################################################### | |
echo "Turn off the character accent selector and re-enable key repetition" | |
defaults write -g ApplePressAndHoldEnabled -bool false | |
echo "Case-insensitive tab completion in terminal" | |
echo "set completion-ignore-case On" >> ~/.inputrc | |
OlderNewer