Skip to content

Instantly share code, notes, and snippets.

@alancwoo
alancwoo / docker-compose.yml
Created August 22, 2019 06:45
Simple wordpress docker
version: '3'
services:
db:
image: mysql:5.7
volumes:
- db_data:/var/lib/mysql
restart: always
environment:
MYSQL_ROOT_PASSWORD: somewordpress
<html lang="en"><head>
<title>Anthropocene Curriculum</title>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1.0, user-scalable=no">
<meta property="og:image" content="https://api.anthropocene-curriculum.org/api/v1/img/pages/2728/seminar_01_vis_up01.png">
<meta property="og:title" content="Anthropocene Curriculum">
<script type="text/javascript" async="" defer="" src="//piwik.kbb.eu/piwik/piwik.js"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/es5-shim/4.5.7/es5-shim.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/es5-shim/4.5.7/es5-sham.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/json3/3.3.2/json3.min.js"></script>
@alancwoo
alancwoo / travel_dates.py
Created March 13, 2019 09:17
Print travel dates from Google Calendar export
#!/usr/bin/python3
""" Travel Calendar Parser
Export ics from Google Calendar and pass filename as argument
pip3 install ics
python3 travel_dates.py input_file.ics
"""
import sys
from ics import Calendar

Keybase proof

I hereby claim:

  • I am alancwoo on github.
  • I am alanwoo (https://keybase.io/alanwoo) on keybase.
  • I have a public key ASBWH3e7kz2-Ul6-fQ1Pom8AeUxYUG7wulF7vsojsxZh1Qo

To claim this, I am signing this object:

@alancwoo
alancwoo / geocoder.py
Last active March 9, 2016 07:36
Simple python script for retrieving longitude and latitude from Google Location Geocoding API
# geocoder.py
#
# requires googlemaps python package:
#
# 1. pip install googlemaps
# 2. get and set your Api Key: https://developers.google.com/api-client-library/python/guide/aaa_apikeys#introduction
# 3. run with a single search or multiple
#
# geocoder.py 'Toronto, Canada'
# geocoder.py 'Toronto, Canada' 'Paris, France'
# OKST Interview References
1. [Suzanne Treister, Post-Surveillance Art, 2014](www.suzannetreister.net/PostSurveillanceArt/works.html)
2. [What Is Post-Internet Art? Understanding the Revolutionary New Art Movement By Ian Wallace, March 18, 2014,](www.artspace.com/magazine/ interviews_features/post_internet_art), [Beginnings + Ends, Frieze issue 159 November-December 2013](www.frieze.com/issue/article/beginnings-ends/)
3. [George Barber, The Freestone Drone, 2013](vimeo.com/56444355)
4. [On Drones, Guy Mannes-Abbott talks to Omar Kholeif, 2013](www.ibraaz.org/interviews/67)
5. [Trevor Paglen, Untitled (Drones), 2010](www.paglen.com/?l=work&s=drones&i=4)
6. [UK Government Communications Headquarters, “GCHQ is an intelligence and security organisation, working to keep Britain safe and secure in the challenging environment of modern communications.” ](www.gchq.gov.uk/Pages/homepage.aspx)
7. Jacques Ellul, La technique ou l’enjeu du siècle, Paris: Armand Colin, 1954
8. [Pat Naldi & Wendy Kirkup, Search, 1993](ww
@alancwoo
alancwoo / gist:b08737feddeb952ed2bc
Created May 14, 2014 13:02
Notes on Rundfunkbeitrag

Toytown Germany

In 2013 the GEZ became the "Rundfunkgebuhr". The principal of this is very different in that it no longer relates to ownership or use of equipment, but is simply a flat charge per household. The legal standing of the charge remains questionable, but again many people (more than the GEZ) are happy to pay it. As with the GEZ many people continue to contest the viability of the charge and/or refuse to pay. There is little dispute that public media services have to be financed somehow, but the question remains if this is the best or fairest way to do it.

The German government support the enforcement of the Rundfunkgebuhr charge, but the legal status, especially for enforcement is dubious as it remains a private, rather than a public or governmental body. As with any private organisation, if they believe you owe them money (and that's all that is required), then they will take legal redress for you to pay. Threats are getting stron

/*! jQuery UI - v1.10.3 - 2013-05-03
* http://jqueryui.com
* Includes: jquery.ui.core.css, jquery.ui.accordion.css, jquery.ui.autocomplete.css, jquery.ui.button.css, jquery.ui.datepicker.css, jquery.ui.dialog.css, jquery.ui.menu.css, jquery.ui.progressbar.css, jquery.ui.resizable.css, jquery.ui.selectable.css, jquery.ui.slider.css, jquery.ui.spinner.css, jquery.ui.tabs.css, jquery.ui.tooltip.css, jquery.ui.theme.css
* Copyright 2013 jQuery Foundation and other contributors; Licensed MIT */
/* Layout helpers
----------------------------------*/
.ui-helper-hidden {
display: none;
}
.ui-helper-hidden-accessible {
/*! jQuery UI - v1.10.3 - 2013-05-03
* http://jqueryui.com
* Includes: jquery.ui.core.js, jquery.ui.widget.js, jquery.ui.mouse.js, jquery.ui.draggable.js, jquery.ui.droppable.js, jquery.ui.resizable.js, jquery.ui.selectable.js, jquery.ui.sortable.js, jquery.ui.effect.js, jquery.ui.accordion.js, jquery.ui.autocomplete.js, jquery.ui.button.js, jquery.ui.datepicker.js, jquery.ui.dialog.js, jquery.ui.effect-blind.js, jquery.ui.effect-bounce.js, jquery.ui.effect-clip.js, jquery.ui.effect-drop.js, jquery.ui.effect-explode.js, jquery.ui.effect-fade.js, jquery.ui.effect-fold.js, jquery.ui.effect-highlight.js, jquery.ui.effect-pulsate.js, jquery.ui.effect-scale.js, jquery.ui.effect-shake.js, jquery.ui.effect-slide.js, jquery.ui.effect-transfer.js, jquery.ui.menu.js, jquery.ui.position.js, jquery.ui.progressbar.js, jquery.ui.slider.js, jquery.ui.spinner.js, jquery.ui.tabs.js, jquery.ui.tooltip.js
* Copyright 2013 jQuery Foundation and other contributors; Licensed MIT */
(function( $, undefined ) {
var uuid = 0,
runiq
@alancwoo
alancwoo / .gitignore
Created October 16, 2012 18:15 — forked from redoPop/.gitignore
Template .gitignore file for WordPress projects
.DS_Store
# This is a template .gitignore file for git-managed WordPress projects.
#
# Fact: you don't want WordPress core files, or your server-specific
# configuration files etc., in your project's repository. You just don't.
#
# Solution: stick this file up your repository root (which it assumes is
# also the WordPress root directory) and add exceptions for any plugins,
# themes, and other directories that should be under version control.