Skip to content

Instantly share code, notes, and snippets.

View kirb's full-sized avatar
🔥

Adam Demasi kirb

🔥
View GitHub Profile
@kirb
kirb / EclipseAndroidPortable.au3
Created May 22, 2011 07:43
Eclipse + Android Portable Launcher (AutoIt)
#cs --------------------------------------
# | Eclipse + Android Portable |
# | Written by Ad@m |
# | https://gist.github.com/gists/985260 |
#ce --------------------------------------
#NoTrayIcon ;Disable tray icon
#Region ;**** Directives created by AutoIt3Wrapper_GUI ****
#AutoIt3Wrapper_Icon=appicon.ico
#AutoIt3Wrapper_Outfile=..\..\EclipseAndroidPortable.exe
#AutoIt3Wrapper_UseX64=n
@kirb
kirb / mintouch_example.html
Created July 3, 2011 09:11
Example MinTouch page
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>MinTouch Test</title>
<script src="/path/to/javascript/jquery-latest.min.js"></script>
<script src="/path/to/javascript/iscroll-lite.js"></script>
<script src="/path/to/javascript/MinTouch.js"></script>
<script>
var mypage = MinTouch({
@kirb
kirb / Mineclicker.au3
Created August 6, 2011 05:59
Mineclicker: Minesweeper auto-clicker for Windows XP
#cs ------------------------------
# Mineclicker
#
# Written by Ad@m
# http://adamscode.sourceforge.net
#
# Licensed under Creative Commons BY-ND
# http://creativecommons.org/licenses/by-nd/3.0
#ce ------------------------------
#Region Initialization
@kirb
kirb / table.vb
Created September 9, 2011 07:13
Easiest way to make a table at the command line in VB
'First, place this somewhere in your module or class:
Sub TablePadding(ByVal TheText As String, ByVal ThePadding As Integer)
Dim len As Short = ThePadding - TheText.Length
For i = 1 To len
Console.Write(" ")
Next
End Sub
'Now you can call it any time you need it. Such as in this code:
@kirb
kirb / change-favicon.js
Created October 3, 2011 05:12 — forked from mathiasbynens/change-favicon.js
Dynamically changing favicons with JavaScript
/*!
* Dynamically changing favicons with JavaScript
* Works in all A-grade browsers except Safari and Internet Explorer
* Demo: http://mathiasbynens.be/demo/dynamic-favicons
*/
// HTML5™, baby! http://mathiasbynens.be/notes/document-head
document.head=typeof document.head!="object"?document.getElementsByTagName("head")[0]:document.head;
function changeFavicon(src) {
@kirb
kirb / Autorun.inf
Created October 23, 2011 01:19
BootTethered
[Autorun]
Icon=BootTethered\Other\source\ipsw.ico
Open=BootTethered\BootTethered.exe
Action=Boot Tethered
Label=Boot Tethered
;*** How to set up ***
; First, set up the AU3 script in a folder called BootTethered
; in the root of your USB stick. Now you just need to put this
; Autorun.inf file in the root. Disconnect and reconnect your
@kirb
kirb / BetterModMyi.user.css
Created November 12, 2011 17:34
Better ModMyi
/* various tweaks for modmyi.com, written by Ad@m */
/* install with Stylish for sites on domain modmyi.com */
/* fix the position of the annoying next/last links */
/* this has been fixed .pagination span.first_last a{top:0} */
/* three column dev portal form */
#submit-form .mmi{-webkit-column-count:3;-moz-column-count:3;column-count:3}
/* make headers more visible */
@kirb
kirb / InstallSiri.sh
Created November 29, 2011 10:22
Install Siri on jailbroken devices
#!/bin/bash
# This script is now obsolete; use Spire instead.
if [[ -f "/usr/bin/openurl" ]]; then
openurl cydia://package/com.chpwn.spire
fi
echo "This script has been obsoleted by chpwn's Spire. Please use that instead."
exit 1
@kirb
kirb / vboxadditions.sh
Created December 10, 2011 12:35
Install VirtualBox Guest Additions on Ubuntu
#!/bin/bash
echo "VirtualBox Guest Additions Installer for Ubuntu"
echo ""
echo "Written by Ad@m <http://adamscode.sourceforge.net>"
echo "Licensed under the MIT License <http://adam.mit-license.org>"
echo ""
if [[ ! -f "/usr/bin/apt-get" ]]; then
echo "Please install apt-get from your packaging software and try this script again."
exit 1
fi
@kirb
kirb / LikeFor.user.js
Created December 30, 2011 15:48
Userscript to automatically like YouTube videos by particular users
// ==UserScript==
// @name LikeFor
// @description Like videos by particular users when played (edit the script before using)
// @author Ad@m
// @include http://www.youtube.com/watch?v=*
// @include http://youtube.com/watch?v=*
// @version 1.0
// ==/UserScript==
var LikeFor=[]; //change this to an array of users you want to automatically like