Skip to content

Instantly share code, notes, and snippets.

View Sakurina's full-sized avatar

Yanik Magnan Sakurina

View GitHub Profile
@Sakurina
Sakurina / Dispatch.cs
Created June 24, 2010 21:04
naïve implementation of something like Grand Central Dispatch, in C#
using System;
using System.Collections;
using System.Collections.Generic;
using System.Threading;
public struct DispatchAction {
public Action action;
public DispatchActionType type;
public DispatchAction(Action a, DispatchActionType t) {
action = a;
@Sakurina
Sakurina / change.cy
Created May 30, 2010 17:44
automated application icon data collection mechanism (don't be evil)
/*
* change - automated application icon data collection mechanism (don't be evil)
* by Yanik Magnan - http://r-ch.net
*
* LICENSE:
* Copyright (c) 2010, Yanik Magnan <[email protected]>
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
@Sakurina
Sakurina / fairchild.cy
Created May 9, 2010 19:04
CaptainHook-inspired syntax sugar for hooking stuff with Cycript
/*
* fairchild - an enhanced syntax for hooking stuff with Cycript
* by Yanik Magnan - http://r-ch.net
*/
var FCSuper = {};
var FCClassSuper = {};
function FCMethod(_className, _selector, _block) {
if (!FCSuper[_className])
@Sakurina
Sakurina / springroll.cy
Created May 1, 2010 19:15
transitional theme tool for iPhone OS 3.2
/*
* springroll 2: the return of SpringRoll
*
* Copyright (c) 2010 Yanik Magnan <[email protected]>
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
@Sakurina
Sakurina / mangadump.cy
Created April 27, 2010 02:49
facilitate converting MangaDLC libraries into CBZs
// mangadump - a quick Cycript hack for MangaDLC
// by Yanik Magnan - http://r-ch.net
/*
* Here's how it works.
*
* Launch MangaDLC and switch to the Library tab.
* Inject this cycript into the process, and a mangadump.sh
* shell script will be created in /tmp.
* Chmod it with executable permissions and run it;
/*
* wigglefree - by Yanik Magnan
* http://r-ch.net
*/
/*
* Redistribution and use in source and binary
* forms, with or without modification, are permitted
* provided that the following conditions are met:
*
#!/usr/bin/env ruby
# linky - easy file sharing on a local network
# by Yanik Magnan - http://r-ch.net/
require 'fileutils'
require 'socket'
require 'tempfile'
# LONG USERNAME GOES HERE
LONG_USERNAME = "Yanik"