Skip to content

Instantly share code, notes, and snippets.

View jagomf's full-sized avatar

Jago jagomf

View GitHub Profile
@cgrs
cgrs / git-report.sh
Last active November 11, 2019 14:53
Create a commit report in a list of git repositories
#!/usr/bin/env bash
WORKDIR=${1:-`pwd`}
SINCE=${2:-"1970/01/01"}
UNTIL=${3:-`date +%Y/%m/%d`}
echo "Commits from ${SINCE} to ${UNTIL}"
for dir in ${WORKDIR}*/; do
pushd $dir &> /dev/null
if [ -d .git ]; then
repo=$(basename ${dir})
@prime31
prime31 / gist:5675017
Last active May 28, 2024 11:37
Simple PHP script showing how to send an Android push notification. Be sure to replace the API_ACCESS_KEY with a proper one from the Google API's Console page. To use the script, just call scriptName.php?id=THE_DEVICE_REGISTRATION_ID
<?php
// API access key from Google API's Console
define( 'API_ACCESS_KEY', 'YOUR-API-ACCESS-KEY-GOES-HERE' );
$registrationIds = array( $_GET['id'] );
// prep the bundle
$msg = array