brew install nginx
vi /usr/local/etc/nginx/
| /*--- waitForKeyElements(): A utility function, for Greasemonkey scripts, | |
| that detects and handles AJAXed content. | |
| Usage example: | |
| waitForKeyElements ( | |
| "div.comments" | |
| , commentCallbackFunction | |
| ); |
| # install openjdk | |
| sudo apt-get install openjdk-7-jdk | |
| # download android sdk | |
| wget http://dl.google.com/android/android-sdk_r24.2-linux.tgz | |
| tar -xvf android-sdk_r24.2-linux.tgz | |
| cd android-sdk-linux/tools | |
| # install all sdk packages |
| ####### NGINX | |
| nginx config for running redmine under /redmine | |
| (assuming working nginx config) | |
| +++ add | |
| upstream redmine-puma { | |
| server unix:/<<redminepath>>/tmp/sockets/redmine.sock fail_timeout=0; | |
| } |
| sudo apt-get install slapd ldap-utils | |
| sudo dpkg-reconfigure slapd | |
| sudo apt-get install gosa gosa-schema | |
| sudo vi /etc/ldap/convert.conf << EOT | |
| include /etc/ldap/schema/core.schema | |
| include /etc/ldap/schema/cosine.schema | |
| include /etc/ldap/schema/nis.schema | |
| include /etc/ldap/schema/inetorgperson.schema |
| # set cache proxy | |
| sudo vi /etc/apt/apt.conf << EOT | |
| Acquire::http::Proxy "http://192.168.88.10:3142"; | |
| Acquire::HTTP::Proxy::192.168.88.10 "DIRECT"; | |
| EOT | |
| sudo apt-get update | |
| sudo apt-get upgrade |
| // a.js | |
| var A = function () { | |
| }; | |
| A.prototype.a = function (a) { | |
| return a; | |
| }; |
| jQuery.base64 = (function($) { | |
| // private property | |
| var keyStr = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="; | |
| // private method for UTF-8 encoding | |
| function utf8Encode(string) { | |
| string = string.replace(/\r\n/g,"\n"); | |
| var utftext = ""; | |
| for (var n = 0; n < string.length; n++) { |
| <style> | |
| .ribbon { | |
| overflow: hidden; | |
| white-space: nowrap; | |
| position: absolute; | |
| right: 0; | |
| top: 0; | |
| width: 100px; | |
| height: 100px; | |
| } |