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
/opt/username/shared/log/*log { | |
create 0644 username username | |
su root username | |
daily | |
rotate 1 | |
compress | |
missingok | |
notifempty | |
sharedscripts | |
postrotate |
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
#!/bin/sh | |
set -e | |
TIMEOUT=${TIMEOUT-60} | |
RAILS_ENV=production | |
APP_ROOT=/opt/username/current | |
PID=$APP_ROOT/tmp/pids/unicorn.pid | |
PATH=$PATH:/home/username/.rbenv/shims | |
CMD="$APP_ROOT/bin/unicorn -D -c $APP_ROOT/config/unicorn.rb -E $RAILS_ENV" | |
action="$1" |
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
$ java -version | |
java version "1.6.0_22" | |
Java(TM) SE Runtime Environment (build 1.6.0_22-b04) | |
Java HotSpot(TM) Server VM (build 17.1-b03, mixed mode) |
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 [ $OPEN_JDK -eq 0 ]; then | |
echo WARNING: You are launching IDE using OpenJDK Java runtime | |
echo | |
echo THIS IS STRICTLY UNSUPPORTED DUE TO KNOWN PERFORMANCE AND GRAPHICS PROBLEMS | |
echo | |
echo NOTE: If you have both Sun JDK and OpenJDK installed | |
echo please validate either RUBYMINE_JDK or JDK_HOME points to valid Sun JDK installation | |
echo | |
echo Press Enter to continue. |
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-alternatives --config java |
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
$ java -version | |
java version "1.6.0_20" | |
OpenJDK Runtime Environment (IcedTea6 1.9.2) (6b20-1.9.2-0ubuntu2) | |
OpenJDK Server VM (build 19.0-b09, mixed mode) |
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-alternatives --config java | |
There are 2 choices for the alternative java (providing /usr/bin/java). | |
Selection Path Priority Status | |
------------------------------------------------------------ | |
* 0 /usr/lib/jvm/java-6-openjdk/jre/bin/java 1061 auto mode | |
1 /usr/lib/jvm/java-6-openjdk/jre/bin/java 1061 manual mode | |
2 /usr/lib/jvm/java-6-sun/jre/bin/java 63 manual mode | |
Press enter to keep the current choice[*], or type selection number: 2 |
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
$ rvm list | |
rvm rubies | |
ruby-1.8.6-p399 [ i386 ] | |
ruby-1.8.7-p302 [ i386 ] | |
ruby-1.8.7-p330 [ i386 ] | |
ruby-1.9.1-p378 [ i386 ] | |
ruby-1.9.2-p0 [ i386 ] | |
=> ruby-1.9.2-p136 [ i386 ] |
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
+ /cgi.cgi/.access: Contains authorization information | |
+ /webcgi/.access: Contains authorization information | |
+ /cgi-914/.access: Contains authorization information | |
+ /cgi-915/.access: Contains authorization information | |
+ /bin/.access: Contains authorization information | |
+ /cgi/.access: Contains authorization information | |
+ /mpcgi/.access: Contains authorization information | |
+ /cgi-bin/.access: Contains authorization information | |
+ /ows-bin/.access: Contains authorization information | |
+ /cgi-sys/.access: Contains authorization information |
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
<script>...NEVER PUT UNTRUSTED DATA HERE...</script> directly in a script | |
<!--...NEVER PUT UNTRUSTED DATA HERE...--> inside an HTML comment | |
<div ...NEVER PUT UNTRUSTED DATA HERE...=test /> in an attribute name | |
<NEVER PUT UNTRUSTED DATA HERE... href="/test" /> in a tag name |
OlderNewer