Skip to content

Instantly share code, notes, and snippets.

View andrew-aladev's full-sized avatar
🐻

Andrew Aladjev andrew-aladev

🐻
View GitHub Profile
@andrew-aladev
andrew-aladev / etc-init.d-docker-compose
Last active April 26, 2022 23:27 — forked from samalba/etc-init.d-docker-compose
For gentoo and openrc
#!/sbin/openrc-run
EXE="/usr/libexec/docker/cli-plugins/docker-compose"
OPTS="-f /etc/conf.d/docker-compose.yml"
UPOPTS="-d"
start() {
ebegin "Starting docker compose"
$EXE $OPTS up $UPOPTS
eend $?
@andrew-aladev
andrew-aladev / jxcore install script
Last active September 1, 2016 10:54 — forked from mohlsen/jxcore install script
jx-install.sh
#!/bin/bash
# based on https://github.com/jxcore/jxcore/blob/master/tools/jx_install.sh
# changed because jxcore.com was down and the aws instance no longer exists
NORMAL_COLOR='\033[0m'
RED_COLOR='\033[0;31m'
GREEN_COLOR='\033[0;32m'
GRAY_COLOR='\033[0;37m'
MAGENTA_COLOR='\033[0;35m'
@andrew-aladev
andrew-aladev / cors-nginx.conf
Created October 30, 2012 08:39
Wide-open CORS config for nginx with polldaddy
#
# Wide-open CORS config for nginx
#
location /polldaddy {
proxy_pass https://api.polldaddy.com/;
if ($request_method = 'OPTIONS') {
add_header 'Access-Control-Allow-Origin' '*';
add_header 'Access-Control-Allow-Credentials' 'true';