Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env bash
# Setup
PACKAGE_NAME="###################################################"
DB_PATH="/data/data/$PACKAGE_NAME/databases"
DB_FILENAME="####################################################"
#cleanup after old runs(just in case)
adb shell "su -c \"rm /sdcard/$DB_FILENAME\""
@fuho
fuho / CookieClickerSave.txt
Created November 4, 2013 21:13
Cookie Clicker Save around 130 Quadrillion, the end game
MS4wMzkzfHwxMzgzNDE2OTcxNTg1O05hTjsxMzgzNTk5NTI4Mzc3fDAxMTEwMHwxMzQ4MDgxODczMzcxNjM0NzA7MjUzNjUxNzQwMDc1NzQ5MjgwOzEwNzI1OzMwNTk7ODU1
NTkzMTk4ODIzNzgwLjY7MTc3Oy0xOy0xOzA7MDsxOzA7MDstMTswOzMwNDc7MzkyMTU4MTg0NDkxNDYuNTY7MjR8MjMxLDIzMSwzMTE2MDgyMjQ4ODcsMDsyMDAsMjIwLDIz
NDY3ODUyMTI5MywwOzIwMCwyNDgsMzE4MTc3MDg5LDA7MTUwLDE2MCwxMTEzNDc2NjY3LDE7MTUwLDE1MCwzNTA3NDc3ODYxLDA7MTUwLDE1MCw3OTE3MTk5MDU1LDA7MTUw
LDE3NSwyMzU2ODg0MzU3NywwOzE1MCwxNTAsMzcwNjY0MTkxNTkxLDA7MTE0LDEyMSwyMTExNDY2MTQ5MDg1LDA7MTA2LDEwNiwxMTkyMDQ2MjA1NDAzOSwwO3w0NTAzNTk5
NjI3MzcwNDk1OzQ1MDM1OTk2MjczNzA0OTU7MjgxNDc0OTc2NzEwNjU1OTs0NTAzNTczNzUyMzE0MzY3OzIyNTM5OTg4MzUzNjc5MzU7MTM5MDU1ODU3NjY1fDQ1MDM1OTc2
MTQxMDQ1NzU7MzI0NTU0OTQ4MDMxMjgzMTsxMTAz%21END%21
@fuho
fuho / scrapy_scrape.sh
Created August 23, 2013 21:22
Scraper ;)
for COUNTRY in $(curl http://edg3.co.uk/snippets/weather-location-codes/ | grep -Po '(/snippets/[^"\.]+[^"\.])'); do curl "http://edg3.co.uk$COUNTRY" | grep -Pzo "(?<=<pre>)[^<]+"; done > zones.txt
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!-- saved from url=(0037)https://www.djangoproject.com/weblog/ -->
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="Content-Language" content="en-us">
<title>Inject Django Docs UI</title>
<meta name="ROBOTS" content="ALL">
<meta http-equiv="imagetoolbar" content="no">
<meta name="MSSmartTagsPreventParsing" content="true">
<meta name="Copyright" content="Django Software Foundation">
@fuho
fuho / DjangoDocsUI.js
Created November 15, 2012 17:22
Adds user interface to edit how Django documentation page is displayed.
//Copyright (C) 2012 fuho - https://github.com/fuho
/* This program is free software. It comes without any warranty, to
* the extent permitted by applicable law. You can redistribute it
* and/or modify it under the terms of the Do What The Fuck You Want
* To Public License, Version 2, as published by Sam Hocevar. See
* http://sam.zoy.org/wtfpl/COPYING for more details. */
//TODO: Rewrite the code, maek it cleaner.
//TODO: Fix the flickering
//TODO: Mouse middle button cotnrol (some event handling written already)
@fuho
fuho / vips_install.sh
Created October 11, 2012 04:46
Compiling vips on Ubuntu 12.04 server LTS from source on github
#!/bin/bash
########################################################################
###################### VARIABLE DEFINITIONS ########################
########################################################################
DIR_CWD="$PWD" # Store current working directory
DIR_SRC="src" # Default source directory in your home folder
DIR_OS="openslide" # Openslide source directory
DIR_LV="libvips" # Libvips source directory