Skip to content

Instantly share code, notes, and snippets.

View sleroy's full-sized avatar

Sylvain Leroy sleroy

View GitHub Profile
@dalanmiller
dalanmiller / Dockerfile.app
Last active June 29, 2020 15:27
RethinkDB docker-compose.yml example
IMAGE node:argon
RUN mkdir -p /usr/app
COPY . /usr/app
WORKDIR /usr/app
RUN npm install
@stracqan
stracqan / loopback-production-deploy
Last active May 4, 2018 23:03
StrongLoop Loopback Node.js Production Deploy Commands on Loopback AWS AMI
#######
## StrongLoop Loopback Node.js Production Deployment on Loopback AWS AMI
#######
#first install npm package
npm install -g strong-pm
#then install the service
#since I'm running loopback's AWS AMI, it's critical to use the --upstart=0.6 command
sudo slc pm-install --port 8701 --upstart=0.6
@bjoern-r
bjoern-r / xmlrpc-client.sh
Last active March 5, 2023 06:16
simple shell xmlrpc client that uses bash & curl
#!/bin/bash
# author jiyin@redhat.com
TEMP=`getopt -o vt: --long target -n 'example.bash' -- "$@"`
if [ $? != 0 ] ; then echo "getopt fail, terminating..." >&2 ; exit 1 ; fi
# Note the quotes around `$TEMP': they are essential!
eval set -- "$TEMP"
Usage() {
@devacto
devacto / build.gradle
Created July 1, 2014 07:35
Example Gradle build file for use with Dropwizard.
apply plugin: 'java'
apply plugin: 'gradle-one-jar'
apply plugin: 'application'
// Use Java 8 by default
sourceCompatibility = 1.8
targetCompatibility = 1.8
version = '1.0'
[compileJava, compileTestJava]*.options*.encoding = 'UTF-8'