Skip to content

Instantly share code, notes, and snippets.

View kirb's full-sized avatar
🔥

Adam Demasi kirb

🔥
View GitHub Profile
@kirb
kirb / gist:4148344
Created November 26, 2012 14:00 — forked from S1ReX/gist:4148340
CGRect alertFrame = self.frame;
CGFloat oldY = alertFrame.origin.y;
alertFrame.origin.y = -alertFrame.size.height;
self.frame = alertFrame;
[UIView animateWithDuration:.3f animations:^{
CGRect alertFrame = self.frame;
alertFrame.origin.y = oldY;
self.frame = alertFrame;
}];
@kirb
kirb / storeup.sh
Created November 23, 2012 06:14
Bash script to alert when the Apple Store comes back up
#!/bin/bash
isup=0
check=0
store=au # change this to your country code
player=play
sound=/System/Library/Sounds/Tink.aiff
if [[ "$(which afplay)" != "" ]]; then
player=afplay
fi
@kirb
kirb / jbqamacros.user.js
Created September 18, 2012 23:35
JailbreakQA Answer Macros
// ==UserScript==
// @name JailbreakQA Answer Macros
// @description Lazy answers for the lazy questions
// @author thekirbylover
// @include http://www.jailbreakqa.com/questions/*
// @version 1.0
// ==/UserScript==
var macros = {
"Safe Mode": "Have you tried the instructions at [this FAQ entry](http://www.jailbreakqa.com/questions/32462/frequently-asked-questions/32560)?",
@kirb
kirb / README.md
Last active October 10, 2015 18:17
Theos on Windows
@kirb
kirb / ipad-min.css
Created June 24, 2012 08:23
My (failed) iPad themed CSS1K entry
html,body,h1,h2,nav,p,a,article,section,header,footer{margin:0;padding:0;border-width:0}html,body{width:100%;height:100%}html{font:13pt "Helvetica Neue",Helvetica,sans-serif;background:#EFEFEF linear-gradient(#EFEFEF,#E0E0E0)}header h1{display:none}nav h2:after{content:" for CSS1K"}article h2,nav h2,footer{color:#717880;font-size:18px;line-height:42px;text-align:center;text-shadow:0 1px 0 #E1E3E8;border-top:1px solid white;border-bottom:1px solid #797F90;background:#F4F5F7 linear-gradient(#F4F5F7,#A8ACB9)}article header p{font-style:italic}section{position:relative;z-index:1}body>header{position:absolute;top:0;left:0;width:300px;z-index:2}article>header,section,footer{margin-left:300px}ul{margin:0;padding:0;list-style-image:none;background:white}ul li{border-bottom:1px solid #ccc;padding:4px}ul a{display:block;color:black}ul a:first-child{font-weight:bold}ul li:hover,ul li:hover a{background:blue;color:white}footer:after{content:"iPad style written by Ad@m"}
@kirb
kirb / index.php
Created May 9, 2012 14:20 — forked from rpetrich/index.php
Twitter self-hosted image service/url shortener
<?
// Twitter self-hosted image service/url shortener by Ryan Petrich
// Installation:
// 1. Paste this script into the top of your HTTP root's index.php (rename index.html to index.php if it doesn't exist)
// 2. Add the following to your HTTP root's .htaccess file (create .htaccess if it doesn't exist):
// ErrorDocument 404 /index.php
// 3. Create a "s" subfolder and give it 777 permissions
// 4. Add the following as the custom URL for URL shortening in Twitter for iPhone's settings:
// http://yourdomain.com/?d=%@&p=password
// 5. Add the following as the custom URL for Image service:
@kirb
kirb / README.md
Last active October 18, 2022 03:26
Install Theos on Linux

Please don't use this. It's old and didn't really even work in the first place. Just keeping it around for historical value.

@kirb
kirb / .htaccess
Last active November 16, 2020 22:39
Self-hosted Cydia repo download counter
# Use the Apache rewrite engine to redirect downloads to our script.
RewriteEngine On
RewriteBase /
RewriteRule ^repo/((Packages|Release)(.*)?)$ /repo/counter.php?filename=$1 [L,QSA]
RewriteRule ^repo/downloads/(.*)\.deb$ /repo/counter.php?filename=$1 [L,QSA]
@kirb
kirb / absinthe.cmd
Created January 21, 2012 17:40
Absinthe Jailbreak Installer Assistant for iPhone 4S and iPad 2
@echo off & setlocal
rem Absinthe Jailbreak Installer Assistant
rem Written by Ad@m <http://adam.hbang.ws>
rem Licensed under the MIT License <http://adam.mit-license.org>
rem --------------------------------------
rem To use, download download and unzip this batch file from
rem <http://gist.github.com/gists/1653393/download>, then download
rem Absinthe from <http://idownloadblog.com/iphone-downloads>.
rem Now right click this batch file and run as administrator.
title Absinthe Jailbreak
@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