Skip to content

Instantly share code, notes, and snippets.

View jonalter's full-sized avatar

Jonathan Alter jonalter

View GitHub Profile
@jonalter
jonalter / colonist.io.remove.ads.user.js
Created October 28, 2021 04:37
Removes ads from colonist.io - Use with Tampermonkey
// ==UserScript==
// @name Remove Ads
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Removes ads from colonist.io
// @author jonalter
// @match https://colonist.io/
// @icon https://www.google.com/s2/favicons?domain=colonist.io
// @grant none
// ==/UserScript==
@jonalter
jonalter / meet-video-background.user.js
Last active December 23, 2021 15:43
Allow selecting videos as your background in google meet - Use with Tampermonkey
// ==UserScript==
// @name Google Meet Video Background
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Allow selecting videos as your background
// @author jonalter
// @match https://meet.google.com/*
// @icon https://www.google.com/s2/favicons?domain=google.com
// @grant none
// ==/UserScript==
@jonalter
jonalter / shared_folder_centos_virtualbox.txt
Last active February 20, 2017 22:44 — forked from larsar/shared_folder_centos_virtualbox.txt
Mount shared folder on CentOS in VirtualBox
# The VirtualBox documentation[1] for how to install guest additions
# for Linux on a virtual host is somewhat messy. So here is what
# I did to make it work.
# Install the packages required
yum -y update
yum -y install gcc kernel-devel make bzip2
reboot
@jonalter
jonalter / tiapp.xml
Created March 9, 2015 20:26
Extension tag example in the tiapp.xml
<modules/>
<extensions>
<extension projectPath="/Users/jalter/Projects/TodayExtension/Test1">TestToday</extension>
</extensions>
@jonalter
jonalter / _app_props_.json
Created January 6, 2014 23:18 — forked from srahim/_app_props_.json
This file must be placed in the "harnessResourcesTemplate" folder to run anvil on iOS...it must not be there to run on Android because the file name begins with _
{
"driver.socketPort":40405
}
@jonalter
jonalter / appj.js
Last active December 30, 2015 09:19
Basic Titanium Testing app w/ in app log
////////////////////////////////////////////////////////
// Constants
////////////////////////////////////////////////////////
function isIOS7Plus() {
if (Titanium.Platform.name == 'iPhone OS')
{
var version = Titanium.Platform.version.split(".");
var major = parseInt(version[0],10);
if (major >= 7)
Titanium.Media.openPhotoGallery({
success:function(event){
var myImage = event.media;
var xhr = Titanium.Network.createHTTPClient();
xhr.open('POST','http:// ------ /uploads.php');
xhr.onerror = function(e){alert(e.error);};
xhr.setTimeout(200000);
@jonalter
jonalter / config.js
Created October 15, 2013 18:20
Anvil config.js
module.exports = new function() {
// local values
/*******************************************************************************/
/*
local values used for defining the required properties (IE: you can change this section to
taste by adding or removing values if desired)
Examples:
@jonalter
jonalter / menu.plist
Created June 27, 2013 15:21
Colloquy Emoticons edit the `menu.plist` file found here: /Applications/Colloquy.app/Contents/Resources/Emoticons/Standard.colloquyEmoticons/Contents/Resources
(
{name = Smile; image = "smile.png"; insert = ":)";},
{name = Frown; image = "frown.png"; insert = ":(";},
{name = Wink; image = "wink.png"; insert = ";)";},
{name = Happy; image = "happy.png"; insert = ":D";},
{name = Stoic; image = "stoic.png"; insert = ":|";},
{name = Cool; image = "cool.png"; insert = "8)";},
{name = Razz; image = "razz.png"; insert = ":P";},
{name = Surprised; image = "suprised.png"; insert = ":O";},
{name = Sarcastic; image = "sarcasm.png"; insert = "9.9";},
@jonalter
jonalter / app.js
Created March 12, 2013 21:03
UrbanAirship example for the ti.newsstand module
////////////////////////////////////////////////////////
// Urban Airship
// Uncomment the code below to use Urban Airship
////////////////////////////////////////////////////////
/**
var UrbanAirship = require('ti.urbanairship');
UrbanAirship.tags = [ 'testingtesting', 'appcelerator', 'my-tags' ];
UrbanAirship.alias = 'testDevice';