I hereby claim:
- I am muke5hy on github.
- I am muke5hy (https://keybase.io/muke5hy) on keybase.
- I have a public key ASBd_Clzr4CisXKuZhdZlr7ItuMEMb2cwhbdGIcfMzNAlQo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| #!/bin/sh | |
| # | |
| # /etc/rc.d/init.d/supervisord | |
| # | |
| # Supervisor is a client/server system that | |
| # allows its users to monitor and control a | |
| # number of processes on UNIX-like operating | |
| # systems. | |
| # | |
| # chkconfig: - 64 36 |
| #!/bin/sh | |
| # Inline version: | |
| # find . -wholename "./*/migrations" -prune -o -wholename "./docs/*" -prune -o -name "*\.py" -exec pep8 {} \; | |
| final_exit=0 | |
| for file in $(find . -wholename "./*/migrations" -prune -o -wholename "./docs/*" -prune -o -name "*\.py" -print); do | |
| pep8 "$file" | |
| if [ $? -ne 0 ]; then | |
| final_exit=1 | |
| fi |
| # Simple calculator | |
| function calc() { | |
| local result=""; | |
| result="$(printf "scale=10;$*\n" | bc --mathlib | tr -d '\\\n')"; | |
| # └─ default (when `--mathlib` is used) is 20 | |
| # | |
| if [[ "$result" == *.* ]]; then | |
| # improve the output for decimal numbers | |
| printf "$result" | | |
| sed -e 's/^\./0./' `# add "0" for cases like ".5"` \ |
| # https://github.com/seebi/tmux-colors-solarized/blob/master/tmuxcolors-256.conf | |
| set-option -g status-bg colour235 #base02 | |
| set-option -g status-fg colour136 #yellow | |
| set-option -g status-attr default | |
| # set window split | |
| bind-key v split-window -h | |
| bind-key b split-window | |
| # default window title colors |
| from fabric.api import * | |
| """ | |
| Base configuration | |
| """ | |
| env.project_name = '$(project)' | |
| env.database_password = '$(db_password)' | |
| env.site_media_prefix = "site_media" | |
| env.admin_media_prefix = "admin_media" | |
| env.newsapps_media_prefix = "na_media" |
[ Launch: topojson ] 5636305 by ingenioustechie
| yum install java-1.7.0-openjdk.i686 | |
| yum install tomcat6.noarch | |
| wget http://mirror.lividpenguin.com/pub/apache/lucene/solr/4.0.0/apache-solr-4.0.0.tgz | |
| tar -xzvf apache-solr-4.0.0.tgz | |
| cd apache-solr-4.0.0 | |
| cp -a example/solr /opt/ | |
| cp dist/apache-solr-4.0.0.war /opt/solr/solr.war | |
| chown tomcat:tomcat -R /opt/solr | |
| cat > /usr/share/tomcat6/conf/Catalina/localhost/solr.xml <<EOF |
[ Launch: Arc Pie ] 5260888 by ingenioustechie