Skip to content

Instantly share code, notes, and snippets.

static inline int
files_check(void)
__attribute__((always_inline));
int files_check(void) {
struct stat sb;
int result = 0;
if (stat("/bin/bash", &sb) == 0) {
+(BOOL) jailBreakCheck{
NSArray *jailbrokenPath = [NSArray arrayWithObjects:
@"/Applications/Cydia.app",
@"/Applications/RockApp.app",
@"/Applications/Icy.app",
@"/usr/sbin/sshd",
@"/usr/bin/sshd",
@"/usr/libexec/sftp-server",
@"/Applications/WinterBoard.app",
@"/Applications/SBSettings.app",
@tazjel
tazjel / README.md
Created February 22, 2013 21:03 — forked from agnoster/README.md

agnoster.zsh-theme

A ZSH theme optimized for people who use:

  • Solarized
  • Git
  • Unicode-compatible fonts and terminals (I use iTerm2 + Menlo)

For Mac users, I highly recommend iTerm 2 + Solarized Dark

<html>
<head>
<style>
html {
width: 100%;
height: 100%;
}
body {
width: 100%;
height: 100%;
If you get this trying to install vim on your seemingly "up to date" xubuntu or ubuntu desktop ..
"Failed to fetch gzip:/var/lib/apt/lists/partial/us.archive.ubuntu.com_ubuntu_dists_quantal_main_source_Sources Hash Sum mismatch"
the below will rebuild the cache and let you install vim
cd /var/lib/apt
sudo mv lists lists.old
sudo mkdir -p lists/partial
sudo apt-get update
# for ubuntu 11.10
sudo su root
apt-get install aptitude
aptitude install xubuntu-desktop zsh autotools-dev automake libtool \
libevent-dev libncurses5-dev zlib1g-dev libbz2-dev libyaml-dev \
libxml2-dev libxslt1-dev libreadline-dev xsel patch \
chromium-browser \
ibus-mozc mozc-server mozc-utils-gui \
#!/bin/sh
TODAY=$(date +%m)
FILE=~/.duesoon
# This may be more complex than need be, but it permits months with or without leading zeroes
let THISMO=$TODAY-0
if [ $THISMO = 12 ]; then
let NEXTMO=01
else
@tazjel
tazjel / .vimrc
Created June 1, 2013 08:17 — forked from mitry/.vimrc
" (#) ~/.vimrc
" Description: vim имеет всего два режима - бибикать и все портить. :-)
" Author: dMitry Alexandrov <mitry (at) mitry.spb.ru>
" Created: 2003-08-24
" Version: $Id: .vimrc,v 27b476a4c6f4 2012/10/21 06:59:09 mitry $
version 6.2
scriptencoding utf-8
""" Options: {{{1

Multiple SSH Keys settings for different github account

create different public key

create different ssh key according the article Mac Set-Up Git

$ ssh-keygen -t rsa -C "[email protected]"