Skip to content

Instantly share code, notes, and snippets.

View nadouani's full-sized avatar
🐝
Building TheHive @ StrangeBee

Nabil Adouani nadouani

🐝
Building TheHive @ StrangeBee
View GitHub Profile
@THemming
THemming / gist:2173037
Created March 23, 2012 17:31
init.d script to launch Play framework under CentOS/RedHat
#!/bin/bash
# chkconfig: 345 20 80
# description: Play start/shutdown script
# processname: play
#
# Instalation:
# copy file to /etc/init.d
# chmod +x /etc/init.d/play
# chkconfig --add /etc/init.d/play
# chkconfig play on
@RadoBuransky
RadoBuransky / dist-play-app-initd
Last active March 24, 2020 20:26
Init.d shell script for Play framework distributed application. Provides start, stop, restart and status commands to control applications packaged using standard "play dist" packaging command.
#!/bin/bash
#
# =========================================================================
# Copyright 2014 Rado Buransky, Dominion Marine Media
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
@siteslave
siteslave / ionic_publish_android_app.md
Created October 28, 2015 03:15 — forked from leommoore/ionic_publish_android_app.md
Ionic Publish Android App

#Ionic Publish Android App

This is the process to publish an ionic android app.

  1. Make sure you set/increment the version number in config.xml ie 0.0.3.

  2. Make sure the android platform has been added

@thejmazz
thejmazz / .babelrc
Created February 16, 2016 18:17
async/await with webpack+babel
{
"presets": ["es2015"],
"plugins": ["transform-async-to-generator"]
}
@joelongstreet
joelongstreet / Dockerfile.template
Last active December 13, 2017 13:35
Resin.io DockerFile - Node, Bower, Chromium
FROM resin/%%RESIN_MACHINE_NAME%%-node:6.9.1
RUN apt-get update \
&& apt-get install -y \
chromium-browser \
fbset \
htop \
libnss3 \
libraspberrypi-bin \
lsb-release\
@marians
marians / main.go
Created January 27, 2017 10:25
OAuth 2.0 authentication in a Golang CLI
package main
import (
"context"
"crypto/tls"
"fmt"
"log"
"net/http"
"net/url"
"time"