Skip to content

Instantly share code, notes, and snippets.

View Sitebase's full-sized avatar
🤘

Wim Mostmans Sitebase

🤘
View GitHub Profile
@Sitebase
Sitebase / tickets.json
Last active September 4, 2019 14:20
Test demo tickets
{
"results": [
{
"objectId": 245,
"title": "API-22: APIs working too fast",
"link": "http://example.com/1",
"created": "2016-09-15",
"priority": "HIGH",
"project": "API",
"reported_by": "msmith@hubspot.com",
@Sitebase
Sitebase / index.html
Last active July 10, 2017 11:50
Ambassify default email template
<html xmlns="http://www.w3.org/1999/xhtml"><head>
<meta charset="utf-8"> <!-- utf-8 works for most cases -->
<meta name="viewport" content="width=device-width"> <!-- Forcing initial-scale shouldn't be necessary -->
<meta http-equiv="X-UA-Compatible" content="IE=edge"> <!-- Use the latest (edge) version of IE rendering engine -->
<meta name="x-apple-disable-message-reformatting"> <!-- Disable auto-scale in iOS 10 Mail entirely -->
<title></title> <!-- The title tag shows in email notifications, like Android 4.4. -->
<!-- Web Font / @font-face : BEGIN -->
<!-- NOTE: If web fonts are not required, lines 10 - 27 can be safely removed. -->
@Sitebase
Sitebase / test.scss
Created December 5, 2016 13:38
Test SASS file
body {
background: $color-body;
}
@Sitebase
Sitebase / LRDropboxPublish.sh
Last active August 22, 2016 13:08
Lightroom post-processing script to publish albums on Dropbox
# Script that can be used a post-processing script in lightroom export dialog
# It will auto move all file to your dropbox and use specific parts of the
# filename to create sub folders
# Example: 201009 - India-DSC_3493.jpg
# will be moved to the EXPORT_ROOT/2010 - India/DSC_3493.jpg
DROPBOX_ROOT=$(cat ~/.dropbox/info.json | python -c 'import sys, json; print json.load(sys.stdin)["personal"]["path"]')
EXPORT_ROOT="$DROPBOX_ROOT/Photos/Albums"
LOGFILE="$EXPORT_ROOT/lightroom-export.log"

Keybase proof

I hereby claim:

  • I am sitebase on github.
  • I am sitebase (https://keybase.io/sitebase) on keybase.
  • I have a public key whose fingerprint is 6084 694D D6F5 B8AD C85E 7150 2FD7 DED9 8FA5 E27A

To claim this, I am signing this object:

@Sitebase
Sitebase / alert.js
Created May 12, 2016 05:29
Alert it
alert(2);
@Sitebase
Sitebase / device-detect.sh
Created April 28, 2016 06:25
Detect if a certain device is on the network or not. This should work better then a regular ping when you want to check for example phones that go into deep sleep mode.
# usage ./device-detect.sh 192.168.1.5
nmap -sn $1 | grep -q latency
result=$?
if [ "$result" -eq "1" ];
then
echo "Device is offline"
else
echo "Device is online"
@Sitebase
Sitebase / preset.json
Last active March 24, 2016 17:31
Custom rick roll Ambassify preset
{
"id": "unity-rickroll",
"name": "Rick Roll",
"description": "You are getting rick rolled.",
"icon": "users",
"creationDate": "Tue Mar 22 2016 15:10:33 GMT+0100 (CET)",
"author": "Wim Mostmans",
"copyright": "(C) 2016 VideoLab NV",
"authorEmail": "wim@bla.com",
"authorUrl": "http://sitebase.be",
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8">
<link href='https://fonts.googleapis.com/css?family=Lobster' rel='stylesheet' type='text/css'>
<style>
body{
font-family: 'Lobster', cursive;
font-weight:normal;
font-size:3em;
@Sitebase
Sitebase / module.js
Created September 29, 2015 10:37
Add comments based on meta data under each gallery entry in modern gallery template
/**
* Add specific meta field under each entry in the gallery
*
* styling can be done using:
* .reason {
* ...
* }
*
* Replace `meta.waarom` with something else to use another meta key
*/