- Create non-encrypted backup in iTunes
- Download and open iBackupBot
- Locate and open file at
HomeDomain/Library/Preferences/com.apple.restrictionspassword.plist
- Open https://repl.it/CY2I
- Change
PASS_KEY
andPASS_SALT
to values fromcom.apple.restrictionspassword.plist
- Click
run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// require() some stuff from npm (like you were using browserify) | |
// and then hit Run Code to run it on the right | |
var window = require('global/window'); | |
var hg = window.hg = require('mercury'); | |
var h = window.h = require('mercury').h; | |
var state = window.state = hg.state({ | |
counter: hg.value(0), | |
channelz: { | |
clicks: incrementCounter |
// req<TAB>
var webpackDevServer = require('webpack-dev-server');
var merge = require('react/lib/merge');
var Store = require('../stores/Store');
$ git clone https://gist.github.com/60a89f7197719888630d.git ~/Library/Application\ Support/Sublime\ Text\ 3/Packages/JSRequireSnippets
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
PROXY_INTERFACE="Wi-Fi" | |
PROXY_HOST=localhost | |
PROXY_PORT=8558 | |
if [[ $1 == "on" ]]; then | |
sudo networksetup -setwebproxy "$PROXY_INTERFACE" $PROXY_HOST $PROXY_PORT | |
echo "HTTP proxy enabled" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#global module:false | |
module.exports = (grunt) -> | |
# Project configuration. | |
grunt.initConfig | |
meta: | |
version: '0.1.0', | |
banner: '/*!\n * Sapphiriq - v<%= meta.version %> - ' + |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name TracksFlow Download | |
// @namespace https://github.com/sapphiriq/ | |
// @description Tracksflow content downloader | |
// @author Alexander Khorin <sapphiriq@gmail.com> | |
// @copyright Alexander Khorin, 2012-2013 | |
// @include http://tracksflow.com/* | |
// ==/UserScript== | |
(function () { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// see http://paulirish.com/2011/requestanimationframe-for-smart-animating/ | |
// shim layer with setTimeout fallback | |
window.requestAnimFrame = (function(){ | |
return window.requestAnimationFrame || | |
window.webkitRequestAnimationFrame || | |
window.mozRequestAnimationFrame || | |
window.oRequestAnimationFrame || | |
window.msRequestAnimationFrame || |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Quick hack of regular expressions to convert twitter bootstrap from LESS to Stylus | |
less2stylus = (string) -> | |
string = string | |
.replace(/^(\ *)(.+)\ +\{\ *\n?\ */mg, "$1$2\n$1 ") # remove opening brackets | |
.replace(/^(\ *)([^\ ]+)\ +\{\ *\n?\ *?/mg, "$1$2\n$1 ") # remove opening brackets | |
.replace(/\ *\{\ *\n*/g, "\n") # remove opening brackets again (some random cases I'm too lazy to think through) | |
.replace(/\ *\}\ *\n*/g, "\n") # remove closing brackets | |
.replace(/\;\ *?$/gm, "") # remove semicolons | |
.replace(/@([\w]+)[\s\t]*:(\ *)\ /g, "$$$1$2 = ") # replace @variable: with $variable = | |
.replace(/\@(?!import|media|font\-face|keyframes|extend)/g, "\$") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Run Redis - cd redis-2.2.4 and run src/redis-server | |
var sip = require('sip'); | |
var sys = require('sys'); | |
var redis = require('redis'); | |
var tropoapi = require('tropo-webapi'); | |
//Trim leading and trailing whitespace from string values. | |
function trim(str) { | |
return str.replace(/^\s+|\s+$/g, ''); |
NewerOlder