Skip to content

Instantly share code, notes, and snippets.

View TmanTman's full-sized avatar

Tielman TmanTman

View GitHub Profile
@TmanTman
TmanTman / input.scss
Created November 18, 2020 15:58
Generated by SassMeister.com.
$linkcolour: #0075E1;
div {
color: lighten($linkcolour, 20%);
}
@TmanTman
TmanTman / set-gps-location.sh
Last active February 10, 2024 21:39
Assigns a GPS location to an image. Requires exiftool to be installed. Copy the GPS locations from Google Maps.
# Example usage: sh set-gps-location.sh test.JPG "-32.326510, 19.020942"
if [ -z "$1" ] ; then
echo 'Image filename needs to be provided. Exiting'
exit 1
fi
if [ -z "$2" ] ; then
echo 'Comma-separated list of GPS coords ( lat,lng ) needs to be supplied. Exiting'
exit 1
@TmanTman
TmanTman / package.json
Created October 9, 2018 09:31
NPM script that force pushes current branch to remote branch
{
"scripts": {
"deploy-poc": "BRANCH=$(git branch | grep \\* | cut -d ' ' -f2) && git push origin $BRANCH:poc/deploy -f"
}
}
@TmanTman
TmanTman / fcmPlugin.factory.js
Created August 23, 2016 18:18
Suggestion for Ionic 'ngCordova'-like wrapper for cordova-plugin-fcm
(function() {
angular
.module('fcm.plugin', [])
.factory('$FCMPlugin', $FCMPlugin);
$FCMPlugin.$inject = [];
function $FCMPlugin() {
var service = {