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
sudo cp /System/Library/Extensions/IOAHCIFamily.kext/Contents/PlugIns/IOAHCIBlockStorage.kext/Contents/MacOS/IOAHCIBlockStorage /System/Library/Extensions/IOAHCIFamily.kext/Contents/PlugIns/IOAHCIBlockStorage.kext/Contents/MacOS/IOAHCIBlockStorage.original | |
# for Mountain Lion 10.8.3 - 10.8.4 | |
sudo perl -pi -e 's|(\x52\x6F\x74\x61\x74\x69\x6F\x6E\x61\x6C\x00{1,20})[^\x00]{9}(\x00{1,20}\x54)|$1\x00\x00\x00\x00\x00\x00\x00\x00\x00$2|sg' /System/Library/Extensions/IOAHCIFamily.kext/Contents/PlugIns/IOAHCIBlockStorage.kext/Contents/MacOS/IOAHCIBlockStorage | |
# for Mountain Lion 10.8.1-10.8.2 and Lion 10.7.5 | |
#sudo perl -pi -e 's|(\x52\x6F\x74\x61\x74\x69\x6F\x6E\x61\x6C\x00{1,20})[^\x00]{9}(\x00{1,20}\x4D)|$1\x00\x00\x00\x00\x00\x00\x00\x00\x00$2|sg' /System/Library/Extensions/IOAHCIFamily.kext/Contents/PlugIns/IOAHCIBlockStorage.kext/Contents/MacOS/IOAHCIBlockStorage | |
# for Mountain Lion 10.8.0 and Lion 10.7.4 BELOW | |
#sudo perl -pi -e 's|(\x52\x6F\x74\x61\x74\x69\x6F\x6E\x61\x6C\x00{1,20})[^\x00]{9}(\x00{1,20}\x51)| |
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 | |
# god init file for starting up the god daemon | |
# | |
# chkconfig: - 20 80 | |
# description: Starts and stops the god daemon. | |
name="god" | |
user="deployer" | |
GOD_CMD="bundle exec god" |
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
curl -kL https://get.rvm.io | bash -s stable | |
echo "source /etc/profile.d/rvm.sh" >> /etc/profile | |
source /etc/profile | |
yum install -y gcc-c++ patch readline readline-devel zlib zlib-devel libyaml-devel libffi-devel openssl-devel make bzip2 autoconf automake libtool bison iconv-devel git-core postgresql-devel.i686 postfix | |
rvm pkg install readline | |
rvm install 1.9.3 | |
rvm use 1.9.3 --default | |
groupadd www-data | |
adduser -g www-data deployer | |
echo "deployer ALL=(ALL) ALL" > /etc/sudoers.d/01_deployer |
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
print " | |
*HHH HHH* *AA* *PPPPP* *PPPPP* *YYY YYY* | |
*HHH HHH* *AA AA* *PP PP* *PP PP* *YYY YYY* | |
*HHH HHH* *AA AA* *PP PP* *PP PP* *YYY YYY* | |
*HHHHHHHHH* *AAAAAA* *PPPPP* *PPPPP* *YYYYY* | |
*HHH HHH* *AA AA* *PP* *PP* *YYY* | |
*HHH HHH* *AA AA* *PP* *PP* *YYY* | |
*HHH HHH* *AA AA* *PP* *PP* *YYY* | |
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
-- description | |
-- в базе для стоянки (парковки) существует 2 таблицы (garage и car_change), | |
-- предназначенные для слежки за парковочными местами (гаражами). | |
-- при въезде одного и того же владельца в тот же самый гараж проверяется | |
-- какой автомобиль до этого стоял в нем (гараже). | |
-- в случае отличия номеров автомобилей создается новая запись в таблице car_change | |
-- table creations |
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
export PS1="\[\033[38m\]\u@\h\[\033[01;34m\] \w \[\033[31m\]\`ruby -e \"print (%x{git branch 2> /dev/null}.split('\n').grep(/^\*/).first || '').gsub(/^\* (.+)$/, '(\1) ')\"\`\[\033[37m\]$\[\033[00m\] " |