Skip to content

Instantly share code, notes, and snippets.

View kirb's full-sized avatar
🔥

Adam Demasi kirb

🔥
View GitHub Profile
@kirb
kirb / gist:5734098
Last active December 18, 2015 05:39
Downgrade TypeStatus to beta 3 (1.1~beta-79)

If you’re experiencing issues with the latest TypeStatus release and would like to downgrade to a more stable version, follow these instructions.

  1. Make sure you have iFile installed.
  2. Open http://cydia.hbang.ws/debs/ws.hbang.typestatus_1.1~beta-79_iphoneos-arm.deb in Safari on your device.
  3. Wait for it to download, then tap “Open in iFile.”
  4. In iFile, tap the “Installer” button.
  5. When the installation is done, respring your device, or turn it off and then on again if you don’t have any way to respring.
@kirb
kirb / gist:5402495
Created April 17, 2013 07:47
dpkg-repack
#!/usr/bin/perl -w
#
# This program puts humpty-dumpty back together again.
#
# dpkg-repack is Copyright (c) 1996-2006 by Joey Hess <[email protected]>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation.
#
@kirb
kirb / gist:5253537
Last active December 15, 2015 11:29
My iPhone

Italics = paid

Tweaks

  • Action Menu

  • Activator

  • Animer

    Banners set to slide down then slide up

  • Auxo

  • Bars

@kirb
kirb / gist:5159097
Last active December 14, 2015 22:29
Fit Cydia “Manage” links to iPhone 5 screen
  1. Go to /Applications/Cydia.app in iFile, then scroll down and tap manage.html followed by the Text Editor.

  2. Tap Edit, then find a.giant-button { and tap so your cursor is next to {.

  3. Enter:

     padding: 18px 0;
    

    (You can line that up with the other CSS properties but it doesn’t really matter.)

    The line should then look like this:

@kirb
kirb / gist:5128340
Last active July 7, 2018 00:29
Best way to watch the syslog on-device

Add this to /etc/profile:

alias syslog="socat - UNIX-CONNECT:/var/run/lockdown/syslog.sock"

Install socat from Cydia if you haven't already, run . /etc/profile to re-read the script and then you can type:

~$ syslog
ASL is here to serve you
> watch

@kirb
kirb / gist:5023256
Last active December 14, 2015 03:48
Suave HD for iOS 6.1

Here's how I fixed the "Suave HD" theme in Cydia, built for for iOS 4.2.1, work on iOS 6.1:

  1. Go to /Library/Themes/Suave HD V4.2.1 (theme)/Bundles/com.apple.camera and rename [email protected] to [email protected]
  2. Go to /Library/Themes/Suave HD V4.2.1 (theme)/Bundles/com.apple.mobileipod and rename [email protected] to [email protected]
  3. Go to /Library/Themes/Suave HD V4.2.1 (theme)/Bundles/com.apple.mobilemail and rename [email protected] to [email protected]
  4. Go to /Library/Themes/Suave HD V4.2.1 (theme)/Bundles/com.apple.mobileslideshow and rename [email protected] to [email protected]
  5. Go to /Library/Themes/Suave HD V4.2.1 (theme)/Bundles and rename com.apple.youtube to com.google.ios.youtube
  6. Go to /Library/Themes/Suave HD V4.2.1 (theme)/Bundles/com.google.ios.youtube and rename [email protected] to [email protected]
  7. On iPhone 5, the wallpaper obviously won't fit the screen so you just have to live without it - delete /Library/Themes/Suave HD V4.2.1 (theme)/Wallpaper.png
  8. Open WinterBoard, toggle anything
#include <stdio.h>
#include <string.h>
#include <unistd.h>
void theTest();
int main() {
printf("Be you robot? Or human?\n");
char* passwd;
@kirb
kirb / bookmarklet.js
Last active December 13, 2015 17:58
Image animation spinny thingy javascript
javascript:document.body.innerHTML+="<div id='spinnyThingyLoader' style='position:fixed;top:0;left:0;width:100%;z-index:9999;text-align:center;line-height:300px;font-size:40px'>Loading...</div>";var a=document.createElement("script");a.src="https://gist.github.com/kirbylover4000/4952053/raw/tehcodez.js";document.body.appendChild(a);void 0
#!/bin/bash
echo -n "Drag and drop package directory: "
read dir
pushd "$dir"
dpkg-deb -b . ..
popd
@kirb
kirb / clangalyze.sh
Last active December 9, 2015 21:08
iOS 6 SDK + theos + clang user preferences file for SublimeClang
#!/bin/bash
export THEOS=/opt/theos
export SDK=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.0.sdk
if [[ "$1" =~ \.xi?m?$ ]]; then
file="$(mktemp /tmp/temp.mm.XXXXXX)"
isLogos=1
$THEOS/logos.pl "$1" > "$name" || exit 1
else
file="$1"