Skip to content

Instantly share code, notes, and snippets.

View Azrael808's full-sized avatar

Peter Green Azrael808

View GitHub Profile
[root@centos5-testing0 etherpad]# ./bin/build.sh
unzipping JARs...
making cached JAR....
compiling...
compiling with 'fsc'...
compiling common...
Note: net.appjet.common/util/HttpServletRequestFactory.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: net.appjet.common/util/HttpServletRequestFactory.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
http://dl.dropbox.com/u/12300638/appjet-eth-dev.jar
@Azrael808
Azrael808 / gist:955297
Created May 4, 2011 14:19
RVM Installer Output Trace
+ ./install : 45 > export rvm_trace_flag=1
+ ./install : 45 > rvm_trace_flag=1
+ ./install : 46 > echo
+ ./install : 47 > env
+ ./install : 47 > grep '^rvm_'
rvm_gemsets_path=/srv/rails/./rvm/gemsets
rvm_scripts_path=/srv/rails/./rvm/scripts
rvm_bin_path=/srv/rails/./rvm/bin
rvm_man_path=/srv/rails/./rvm/man
@Azrael808
Azrael808 / gist:955348
Created May 4, 2011 14:54
Another RVM Installer Output
$rvm_path (/usr/local/rvm) does not exist.+ ./install : 45 > export rvm_trace_flag=1
+ ./install : 45 > rvm_trace_flag=1
+ ./install : 46 > echo
+ ./install : 47 > env
+ ./install : 47 > grep '^rvm_'
rvm_path=/usr/local/rvm
rvm_trace_flag=1
rvm_user_install_flag=0
@Azrael808
Azrael808 / gist:982980
Created May 20, 2011 14:15
Error Compiling dep_selector
[root@chef ~]# gem install dep_selector
NOTE: Gem::Specification#default_executable= is deprecated with no replacement. It will be removed on or after 2011-10-01.
Gem::Specification#default_executable= called from /usr/local/rvm/gems/ruby-1.9.2-p180@global/specifications/rake-0.8.7.gemspec:10.
NOTE: Gem::Specification#default_executable= is deprecated with no replacement. It will be removed on or after 2011-10-01.
Gem::Specification#default_executable= called from /usr/local/rvm/gems/ruby-1.9.2-p180/specifications/rake-0.8.7.gemspec:10.
NOTE: Gem::Specification#default_executable= is deprecated with no replacement. It will be removed on or after 2011-10-01.
Gem::Specification#default_executable= called from /usr/local/rvm/gems/ruby-1.9.2-p180/specifications/rubygems-update-1.8.3.gemspec:11.
NOTE: Gem::Specification#default_executable= is deprecated with no replacement. It will be removed on or after 2011-10-01.
Gem::Specification#default_executable= called from /usr/local/rvm/gems/ruby-1.9.2-p180@global/speci
[2013-01-18T13:10:07+01:00] INFO: Processing execute[(ln -s ../../../shared/database.yml config/database.yml && rake gems:install); rm config/database.yml] action run (/tmp/vagrant-chef-1/chef-solo-1/cookbooks/application_ruby/providers/rails.rb line 92)
================================================================================
Error executing action `run` on resource 'execute[(ln -s ../../../shared/database.yml config/database.yml && rake gems:install); rm config/database.yml]'
================================================================================
Mixlib::ShellOut::ShellCommandFailed
------------------------------------
Expected process to exit with [0], but received '1'
---- Begin output of (ln -s ../../../shared/database.yml config/database.yml && rake gems:install); rm config/database.yml ----
@Azrael808
Azrael808 / 30_wpcli.config
Created February 10, 2016 15:01
Elastic Beanstalk extension for installing WP CLI.
commands:
"01":
command: curl https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar -o /usr/local/bin/wp
"02":
command: chmod +x /usr/local/bin/wp
@Azrael808
Azrael808 / phpmyadmin.config
Created March 2, 2016 20:03
Install and Configure PHPMyAdmin on Elastic Beanstalk
container_commands:
01_install_pma:
test: test -n "$PMA_VER" && test ! -f /tmp/phpmyadmin.tar.gz
command: |
cd /tmp
wget https://files.phpmyadmin.net/phpMyAdmin/${PMA_VER}/phpMyAdmin-${PMA_VER}-all-languages.tar.gz
wget https://files.phpmyadmin.net/phpMyAdmin/${PMA_VER}/phpMyAdmin-${PMA_VER}-all-languages.tar.gz.sha1
cd /tmp && sha1sum --check phpMyAdmin-${PMA_VER}-all-languages.tar.gz.sha1
if [[ $? == 0 ]]
then
@Azrael808
Azrael808 / 50_celery.config
Last active August 13, 2017 08:09
Elastic Beanstalk Customisation for running the Django CeleryD in the background.
files:
"/opt/elasticbeanstalk/hooks/appdeploy/post/99_run_supervised_celeryd.sh":
mode: "000755"
owner: root
group: root
content: |
#!/usr/bin/env bash
# Get django environment variables
celeryenv=`cat /opt/python/current/env | tr '\n' ',' | sed 's/export //g' | sed 's/%/%%/g' | sed 's/$PATH/%(ENV_PATH)s/g' | sed 's/$PYTHONPATH//g' | sed 's/$LD_LIBRARY_PATH//g'`
celeryenv=${celeryenv%?}
@Azrael808
Azrael808 / README.md
Created May 23, 2016 08:48 — forked from magnetikonline/README.md
AWS Elastic Beanstalk deploy user restricted IAM policy.

AWS Elastic Beanstalk deploy user restricted IAM policy

An IAM user policy document to give minimal rights for deploying an Elastic Beanstalk application.

Where:

  • REGION: AWS region.
  • ACCOUNT_ID: AWS account ID.
  • APPLICATION_NAME: Desired target Elastic Beanstalk application name(space).
  • IAM_INSTANCE_PROFILE_ROLE: The instance profile (IAM role) Elastic Beanstalk EC2 instaces will run under.