Skip to content

Instantly share code, notes, and snippets.

View appastair's full-sized avatar
😷

Alastair Gifillan appastair

😷
View GitHub Profile
@appastair
appastair / iitc-fix-beacons.user.js
Last active February 6, 2023 21:12
IITC plugin: Fix Beacons
// ==UserScript==
// @id iitc-fix-beacons
// @name IITC plugin: Fix Beacons
// @version 0.6
// @author Appastair
// @description Fixing missing beacon icons by including Base64-encoded icons.
// @downloadURL https://gist.github.com/appastair/fa00c9b654cdabef2c222807636bf7a2/raw/iitc-fix-beacons.user.js
// @updateURL https://gist.github.com/appastair/fa00c9b654cdabef2c222807636bf7a2/raw/iitc-fix-beacons.user.js
// @category Stock
// @include https://*.ingress.com/intel*
@appastair
appastair / iitc-toast.user.js
Created December 30, 2019 15:39
IITC plugin: Toast 🍞
// ==UserScript==
// @id iitc-toast
// @name IITC plugin: Toast 🍞
// @version 0.1
// @author Appastair
// @description Fixing missing Toast beacon icon by including two variant Base64-encoded icons.
// @category Stock
// @include https://*.ingress.com/intel*
// @include http://*.ingress.com/intel*
// @match https://*.ingress.com/intel*
@appastair
appastair / geojson_kaunaslithuania.json
Created July 19, 2019 00:26
Nemesis: Myriad Ingress Anomaly - Kaunas, Lithuania GeoJSON
{
"features": [{
"geometry": {
"coordinates": [
[
[23.8924767, 54.8985564],
[23.888654708862305, 54.899883430791235],
[23.875908851623535, 54.89887167667083],
[23.88131618499756, 54.894923124741275],
[23.8995792, 54.8939661],
@appastair
appastair / geojson_brasiliabrazil.json
Created July 18, 2019 23:50
Nemesis: Myriad Ingress Anomaly - Brasilia, Brazil GeoJSON
{
"features": [{
"geometry": {
"coordinates": [
[
[-47.87412643432617, -15.791510250073149],
[-47.87451267242431, -15.782259813917632],
[-47.86610126495361, -15.77680846635244],
[-47.86494255065918, -15.763881579285876],
[-47.86764621734619, -15.75909057493134],
@appastair
appastair / uniques-importer.user.js
Last active August 16, 2018 13:52
Automated importer of unique portals captured for use with the IITC Uniques plugin.
// ==UserScript==
// @id iitc-plugin-uniques-importer@Appastair
// @name IITC plugin: Uniques Importer
// @category Misc
// @version 0.1.3.20180809.147
// @namespace https://gist.github.com/appastair/2a15cc369049720178a8e36eadfba90b
// @updateURL https://gist.github.com/appastair/2a15cc369049720178a8e36eadfba90b
// @downloadURL https://gist.github.com/appastair/2a15cc369049720178a8e36eadfba90b
// @description Automated importer of unique portals captured for use with the Uniques plugin.
// @include https://*.ingress.com/intel*
@appastair
appastair / multi-passcode.user.js
Last active August 8, 2018 13:34 — forked from rongself/multi-passcode.user.js
iitc script for multi passcode apply (点击下面raw按钮安装)
// ==UserScript==
// @id iitc-plugin-multi-passcode@rongself
// @name IITC plugin: Multi Passcode Redeem
// @category Controls
// @version 0.1.0.20180529.1331.
// @namespace https://gist.github.com/rongself/288ad6c887ffb184b469ae0295acc642
// @updateURL https://gist.github.com/appastair/bd32ac0bbfed9a476edd0d2c2148d25e
// @downloadURL https://gist.github.com/appastair/bd32ac0bbfed9a476edd0d2c2148d25e
// @description [rongself-2016-07-17-154202] script for multi passcode apply [appastair-2018-05-28.1331] fixed and added support for newline
// @include https://*.ingress.com/intel*
@appastair
appastair / timelapse.sh
Created November 3, 2017 04:12 — forked from Aramgutang/timelapse.sh
A Bash script to take regular screenshots of the Ingress Intel map for creating timelapses of operations.
#!/usr/bin/env bash
while [ 1 ]; do
# The --password-store=basic is there to avoid the KDE Wallet access
# request dialog on start-up.
google-chrome --password-store=basic --app=http://www.ingress.com/intel?ll=-33.781201,150.619812\&z=10 &
# Get the process ID, so we can kill it later
chrome_pid=$!
sleep 3
# Get the X window ID of the process we just started so we can resize it.
@appastair
appastair / alastair.min.js
Created November 27, 2014 23:42
IE6 Polyfill
/* alastair.min.js released under the MIT licence. */
var undefined,console,window,JSON,$;
@appastair
appastair / engine.js
Last active January 4, 2016 00:29
HTML5 localStorage AJAX Cache
function getTime(){
return ((new Date().valueOf() * 0.001)|0);
}
function cacheTime(key,time){
/* @TODO: Compare client/server cache ages! */
if((!window.localStorage.getItem('cache-ttl')) || !window.localStorage.getItem('cache-ttl').match(/(\{).+(\})/)){
var cacheTTL = {};
}
else{
@appastair
appastair / footer.php
Last active December 27, 2015 00:29
PHP Page Generation Time