Skip to content

Instantly share code, notes, and snippets.

View martic's full-sized avatar

Martin Camp martic

  • Sydney, Australia
View GitHub Profile
@martic
martic / index.html
Created July 23, 2012 02:38
A web page created at CodePen.io
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Comicbook Crazy &middot; CodePen</title>
<!--
Copyright (c) 2012 martic, http://codepen.io/martic
Permission is hereby granted, free of charge, to any person obtaining
@martic
martic / index.html
Created July 23, 2012 02:38
A web page created at CodePen.io
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Comicbook Crazy &middot; CodePen</title>
<!--
Copyright (c) 2012 martic, http://codepen.io/martic
Permission is hereby granted, free of charge, to any person obtaining
Disable-UAC
import sys
import csv
import httplib, urllib, base64
def main():
# set the name of your repository, username and password
username = "test"
password = "test"
repo = "test"
# Boxstarter script for blog post http://blog.zerosharp.com/provisioning-a-new-development-machine-with-boxstarter
# Allow reboots
$Boxstarter.RebootOk=$true
$Boxstarter.NoPassword=$false
$Boxstarter.AutoLogin=$true
# Basic setup
Update-ExecutionPolicy Unrestricted
Set-ExplorerOptions -showHidenFilesFoldersDrives -showProtectedOSFiles -showFileExtensions
@martic
martic / True Trello Printer
Created June 29, 2017 21:15 — forked from mathiasrw/True Trello Printer
Ever wanted to print your Trello board? Export as JSON and paste it into the code.
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>True Trello Printer</title>
<link href="http://netdna.bootstrapcdn.com/bootstrap/3.0.3/css/bootstrap.min.css" rel="stylesheet">
<style>
body{margin:15%;}
.panel-body{
# Boxstarter script for blog post http://blog.zerosharp.com/provisioning-a-new-development-machine-with-boxstarter
# Allow reboots
$Boxstarter.RebootOk=$true
$Boxstarter.NoPassword=$false
$Boxstarter.AutoLogin=$true
# Basic setup
Update-ExecutionPolicy Unrestricted
Set-ExplorerOptions -showHidenFilesFoldersDrives -showProtectedOSFiles -showFileExtensions
@martic
martic / 0_upload.lua
Created March 12, 2019 03:30 — forked from flostellbrink/Flash Air Media Uploader.md
FlashAir uploader is a script that iterates over all photos and movies saved on an SD card and uploads them to an HTTP endpoint. Uploaded files are renamed. A tiny node
-- FlashAir Lua script
-- Copy to 'Lua' folder on your SD card
-- Set as RUN_SCRIPT/SD_EVENT in your SD_WLAN/CONFIG file:
-- LUA_RUN_SCRIPT=/Lua/upload.lua
-- LUA_SD_EVENT=/Lua/upload.lua
local httpendpoint = 'http://192.168.1.13:3333/upload'
local folder = '/DCIM'
-- Recursively iterate through directories
@martic
martic / closure-table-operations.sql
Created January 13, 2020 04:53 — forked from kentoj/closure-table-operations.sql
Closure Table operations SQL fragments
-- Retrieve descendants
-- ====================
-- retrieve descendants of #4
SELECT c.*
FROM Comments AS c
JOIN TreePaths AS t ON c.comment_id = t.descendant
WHERE t.ancestor = 4;
-- Retrieve ancestors