Skip to content

Instantly share code, notes, and snippets.

View alexbfree's full-sized avatar

Dr. Alex Bowyer alexbfree

View GitHub Profile
@stewartmcgown
stewartmcgown / takeout-discovery.json
Last active October 15, 2024 07:58
Google Takeout API
{
"title": "Takeout API",
"discoveryVersion": "v1",
"ownerName": "Google",
"version_module": true,
"resources": {
"exports": {
"methods": {
"get": {
"flatPath": "v2/{service}/exports/{exportId}",
We can't make this file beautiful and searchable because it's too large.
FileName,Gorongosa_id,camera,year,season,month,DateUTC,TimeUTC,time_period,distance_water,distance_human,vegetation_edu,ESId
http://zooniverse-export.s3-website-us-east-1.amazonaws.com/21484_1000_D09_Season%201_Set%201_EK001729.JPG,21484_1000_D09_Season 1_Set 1_EK001729,D09,2013,DryWet Oct-Dec,Dec,12/6/2013,12:07:57 PM,Day 0623-1709,3077.7,0.01,Mixed Savanna and Woodland,
http://zooniverse-export.s3-website-us-east-1.amazonaws.com/21484_1000_D09_Season%201_Set%201_EK001805.JPG,21484_1000_D09_Season 1_Set 1_EK001805,D09,2013,DryWet Oct-Dec,Dec,12/6/2013,12:06:43 PM,Day 0623-1709,3077.7,0.01,Mixed Savanna and Woodland,
http://zooniverse-export.s3-website-us-east-1.amazonaws.com/21484_1000_D09_Season%201_Set%201_EK001725.JPG,21484_1000_D09_Season 1_Set 1_EK001725,D09,2013,DryWet Oct-Dec,Dec,12/6/2013,12:04:55 PM,Day 0623-1709,3077.7,0.01,Mixed Savanna and Woodland,
http://zooniverse-export.s3-website-us-east-1.amazonaws.com/21484_1000_D09_Season%201_Set%201_EK001712.JPG,21484_1000_D09_Season 1_Set 1_EK001712,D09
@rogerhutchings
rogerhutchings / zooniverse_filters.xml
Last active October 14, 2015 10:00
Zooniverse Mail Filters
<?xml version='1.0' encoding='UTF-8'?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:apps='http://schemas.google.com/apps/2006'>
<title>Mail Filters</title>
<id>tag:mail.google.com,2008:filters:1431075302899,1432223516644,1432286287136,1444816741420</id>
<updated>2015-10-14T09:59:09Z</updated>
<author>
<name>Roger Hutchings</name>
<email>[email protected]</email>
</author>
<entry>
<category term='filter'></category>
@pachacamac
pachacamac / IdleBlur.js
Last active October 9, 2022 03:55
JavaScript Bookmarklet: Automatically Blur Websites When You Are Idle
javascript:(function(){
var delay=10000, intensity=10, timer;
function resetTimer(){clearTimeout(timer); timer = setTimeout(blur, delay);}
function activity(){document.documentElement.setAttribute('style',''); resetTimer();}
function blur(){document.documentElement.setAttribute('style', 'filter:url("data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\'><filter id=\'blur\'><feGaussianBlur stdDeviation=\''+intensity+'\' /></filter></svg>#blur");-webkit-filter:blur('+intensity+'px);filter:blur('+intensity+'px);');}
['mousemove', 'keypress', 'scroll'].forEach(function(e){document.addEventListener(e, activity, false);});
resetTimer();
})();void(0);
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Example</title>
<link rel="stylesheet" type="text/css" href="//cdn.jsdelivr.net/jquery.slick/1.3.6/slick.css"/>
<style>
.menu {
text-align: center;
}
@du-song
du-song / Disable Notification Center Alerts and Banners.applescript
Created February 5, 2013 03:26
Disable & Re-Enable Notification Center Alerts and Banners
do shell script "defaults write ~/Library/Preferences/ByHost/com.apple.notificationcenterui.*.plist doNotDisturb -boolean true"
set theDate to quoted form of (do shell script "date +\"%Y-%m-%d %I:%M:%S +0000\"")
do shell script "defaults write ~/Library/Preferences/ByHost/com.apple.notificationcenterui.*.plist doNotDisturbDate -date " & theDate
do shell script "killall NotificationCenter"
@bzerangue
bzerangue / update-hosts.sh
Last active March 3, 2020 13:54
A small shell script that will add and remove lines from the hosts file. Originally created by Claus Witt, http://clauswitt.com/319.html.
#! /bin/sh
# @author: Claus Witt
# http://clauswitt.com/319.html
# Adding or Removing Items to hosts file
# Use -h flag for help
DEFAULT_IP=127.0.0.1
IP=${3:-$DEFAULT_IP}
@wadey
wadey / iterm2.zsh
Last active November 3, 2024 16:25
Change iTerm2 tab color when using SSH
# Usage:
# source iterm2.zsh
# iTerm2 tab color commands
# https://iterm2.com/documentation-escape-codes.html
if [[ -n "$ITERM_SESSION_ID" ]]; then
tab-color() {
echo -ne "\033]6;1;bg;red;brightness;$1\a"
echo -ne "\033]6;1;bg;green;brightness;$2\a"