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
diff --git a/Makefile.am b/Makefile.am | |
index 5efcea7..23f8311 100644 | |
--- a/Makefile.am | |
+++ b/Makefile.am | |
@@ -2,6 +2,8 @@ SUBDIRS = src unittest bin | |
EXTRA_DIST = README ChangeLog AUTHORS COPYING INSTALL NEWS sumo.doxyconf | |
+ACLOCAL_AMFLAGS = -I m4 | |
+ |
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
\usepackage{algorithm} | |
\usepackage{algorithmic} | |
\usepackage{amssymb} | |
\algsetup{indent=2em} | |
\newcommand{\factorial}{\ensuremath{\mbox{\sc Factorial}}} | |
\newcommand{\emit}{\ensuremath{\mbox{\sc Emit}}} | |
\begin{algorithm}[h!] \caption{$\factorial(n)$}\label{alg:factorial} \begin{algorithmic}[1] | |
\REQUIRE An integer $n \geq 0$. \ENSURE The value of $n!$. |
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 route -v add 172.17.42.1 192.168.59.103 |
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
10285 brew install github-release hub hubflow | |
10287 brew home github-release | |
10321 github-release | |
10331 github-release info -u aktau -r gofinance | |
10332 github-release info -u linki -r hellogo | |
10336 github-release release --user linki --repo hellogo --tag v0.1.0 --name "first version it is" --description "yay" --pre-release | |
10339 github-release upload --user linki --repo hellogo --tag v0.1.0 --name "first version binary" --file bin/hello | |
10346 github-release upload --user linki --repo hellogo --tag v0.1.0 --file bin/hello.gz | |
10347 github-release upload --user linki --repo hellogo --tag v0.1.0 --name "hello.gz" --file bin/hello.gz |
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
<% | |
# default database without credentials, suffixed with env | |
def default_database(env) | |
"postgres://localhost:5432/openproject_#{env}?encoding=unicode&pool=5" | |
end | |
# first checks if there's an env var defining the database | |
# then falls back to using the default database for the env | |
def database(env) | |
ENV.fetch('DATABASE_URL') { default_database(env) } |
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
<% | |
# default database without credentials, suffixed with env | |
def default_database(env) | |
"postgres://localhost:5432/openproject_#{env}" | |
end | |
# first checks if there's an env var defining the database | |
# falls back to using the default database | |
def database(env) | |
ENV.fetch('DATABASE_URL') { default_database(env) } |
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
docker run -d --name jenkins -v /var/jenkins_home jenkins | |
docker run -d \ | |
-p 80:80 -p 443:443 \ | |
-e ENABLE_SSL=true \ | |
-e TARGET_SERVICE=jenkins:8080 \ | |
--link jenkins:jenkins \ | |
-v /home/docker/certs/boot2docker.me.cert:/etc/secrets/proxycert \ | |
-v /home/docker/certs/boot2docker.me.key:/etc/secrets/proxykey \ | |
-v /home/docker/certs/dhparam.pem:/etc/secrets/dhparam \ |
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
1.4.2/libexec/src master ✔ 6d | |
▶ GOOS=linux GOARCH=amd64 CGO_ENABLED=0 ./make.bash --no-clean | |
GOOS=windows GOARCH=386 CGO_ENABLED=0 ./make.bash --no-clean |
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
set -e | |
function check_status | |
{ | |
docker run -t --rm odise/busybox-curl test \ | |
$(curl -s -o /dev/null -I -w "%{http_code}" $2) = "$1" | |
} | |
check_status 302 https://linki.openproject.com/ | |
check_status 302 https://linki.openproject.com/login |
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
applications="Augur Caretaker Concierge OpenProject Reeve Zacero" | |
for a in $applications | |
do | |
versions=$(aws elasticbeanstalk describe-application-versions --application-name "$a" | jq ".ApplicationVersions[].VersionLabel" | grep '[0-9]\{14\}-' | awk -F'"' '{print $2}') | |
for v in $versions | |
do | |
echo "aws elasticbeanstalk delete-application-version --application-name \"$a\" --version-label \"$v\"" | |
aws elasticbeanstalk delete-application-version --application-name "$a" --version-label "$v" |