-
Place the supervisord.conf under .ebextensions/supervisor/
-
Place the supervisor.config under .ebextensions/
-
Place the data_import_consumer.conf under .ebextensions/supervisor/
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
return { | |
aliceblue = {0.94117647058824, 0.97254901960784, 1}, | |
antiquewhite = {0.98039215686275, 0.92156862745098, 0.84313725490196}, | |
aqua = {0, 1, 1}, | |
aquamarine = {0.49803921568627, 1, 0.83137254901961}, | |
azure = {0.94117647058824, 1, 1}, | |
beige = {0.96078431372549, 0.96078431372549, 0.86274509803922}, | |
bisque = {1, 0.89411764705882, 0.76862745098039}, | |
black = {0, 0, 0}, | |
blanchedalmond = {1, 0.92156862745098, 0.80392156862745}, |
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 yum install openssl-devel autoconf automake bzip2 bzip2-devel cmake freetype-devel gcc gcc-c++ git libtool make mercurial pkgconfig zlib-devel -y | |
mkdir ~/ffmpeg_sources | |
export "PATH=$PATH:$HOME/bin" | |
# nasm | |
cd ~/ffmpeg_sources | |
curl -O -L https://www.nasm.us/pub/nasm/releasebuilds/2.14.02/nasm-2.14.02.tar.bz2 | |
tar xjvf nasm-2.14.02.tar.bz2 | |
cd nasm-2.14.02 |
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 | |
dir=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) | |
if [ "$1" != "" ]; then | |
letter1=$(echo "$1" | tr '[:upper:]' '[:lower:]' | cut -b1) | |
if [[ $letter1 == [a-zA-Z0-9] ]]; then | |
if [ -f "$dir/data/$letter1" ]; then | |
grep -ai "^$1" "$dir/data/$letter1" | |
else | |
letter2=$(echo "$1" | tr '[:upper:]' '[:lower:]' | cut -b2) |
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
----- Esc ----- | |
Quick change directory: Esc + c | |
Quick change directory history: Esc + c and then Esc + h | |
Quick change directory previous entry: Esc + c and then Esc + p | |
Command line history: Esc + h | |
Command line previous command: Esc + p | |
View change: Esc + t (each time you do this shortcut a new directory view will appear) | |
Print current working directory in command line: Esc + a | |
Switch between background command line and MC: Ctrl + o | |
Search/Go to directory in active panel: Esc + s / Ctrl + s then start typing directory name |
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 | |
# Amazon Linux AMI startup script for a supervisor instance | |
# | |
# chkconfig: 2345 80 20 | |
# description: Autostarts supervisord. | |
# Source function library. | |
. /etc/rc.d/init.d/functions | |
supervisorctl="/usr/bin/supervisorctl" |
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
public function getConfigFromDb() | |
{ | |
if (!is_null($this->configInDb)) { | |
return $this->configInDb; | |
} | |
$sql = new Sql($this->getSlaveDbAdapter()); | |
$select = $sql->select() | |
->from('languages'); |
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
<?php | |
abstract class AbstractCello | |
{ | |
/** | |
* @var EventManager | |
*/ | |
protected $em; | |
protected function triggerPre($methodName, $params) |
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
<?php | |
public function findMemberById($id) | |
{ | |
$params = $this->getEventManager()->prepareArgs(compact(func_get_args())); | |
$result = $this->getEventManager()->trigger(__FUNCTION__ . '.pre', $this, $params, function ($listenerOutput) { | |
return ($listenerOutput != null); | |
}); | |
extract((array)$params); | |
NewerOlder