Skip to the relevant sections if needed.
#!/bin/bash | |
target_branch="production" | |
working_tree="PATH_TO_DEPLOY" | |
while read oldrev newrev refname | |
do | |
branch=$(git rev-parse --symbolic --abbrev-ref $refname) | |
if [ -n "$branch" ] && [ "$target_branch" == "$branch" ]; then | |
<?php | |
header('Content-type: text/xml'); | |
/* | |
Runs from a directory containing files to provide an | |
RSS 2.0 feed that contains the list and modification times for all the | |
files. | |
*/ | |
$feedName = "My Audio Feed"; | |
$feedDesc = "Feed for the my audio files in some server folder"; |
Also see: https://gist.github.com/lemiorhan/8912188
Here are the simple steps needed to push your local git repository directly to a remote (e.g. prod) server over ssh. This is based on Digital Ocean's Tutorial.
You are developing in a working-directory on your local machine, let's say on the master
branch. Usually people push code to a remote
server like github.com or gitlab.com and pull or export it to a production server. Or you use GitHub's webhooks to send a POST request to a webserver to take appropriate actions such as cloning/checking out a branch on the remote (prod) server.
if [ -z "$1" ] | |
then | |
echo "Please supply a subdomain to create a certificate for"; | |
echo "e.g. www.mysite.com" | |
exit; | |
fi | |
# Create a new private key if one doesnt exist, or use the xeisting one if it does | |
if [ -f device.key ]; then | |
KEY_OPT="-key" |
#!/usr/bin/env bash | |
if [ -z "$1" ] | |
then | |
echo "Please supply a subdomain to create a certificate for"; | |
echo "e.g. mysite.localhost" | |
exit; | |
fi | |
# Create a new private key if one doesnt exist, or use the xeisting one if it does |
Note: This gist may be outdated, thanks to all contributors in comments.
adb
is the Android CLI tool with which you can interact with your android device, from your PC
You must enable developer mode (tap 7 times on the build version in parameters) and install adb on your PC.
Don't hesitate to read comments, there is useful tips, thanks guys for this !