Skip to content

Instantly share code, notes, and snippets.

View gist:4738959
Site http://4shared.com is not being filtered right now
Site http://gimpshop.com is not being filtered right now
Site http://gufeng521.spaces.live.com is not being filtered right now
Site http://speedpluss.org is not being filtered right now
Site http://mingpaovan.com cannot connect,reason unknown
Site http://stoweboyd.com is not being filtered right now
Site http://tw.myblog.yahoo.com is still being filtered right now
Site http://joachims.org cannot connect,reason unknown
Site http://maiio.net is still being filtered right now
Site http://m.slandr.net is still being filtered right now
View gist:48c89e61a9324c4456a7
// ==UserScript==
// @name ThunderAssistant
// @namespace http://dynamic.cloud.vip.xunlei.com
// @include http://dynamic.cloud.vip.xunlei.com/*
// @updateURL http://userscripts.org/scripts/source/111748.user.js
// @version 0.3.3
// @grant GM_xmlhttpRequest
// ==/UserScript==
//
// For Firefox & Chrome & Safari
View gist:8f3f480f8cadd7fe8306
leftsubnet = 103.0.0.0/8,106.0.0.0/8,107.0.0.0/8,108.0.0.0/8,141.0.0.0/8,153.0.0.0/8,160.0.0.0/8,166.0.0.0/8,17.0.0.0/8,173.0.0.0/8,176.0.0.0/8,178.0.0.0/8,184.0.0.0/8,194.0.0.0/8,198.0.0.0/8,199.0.0.0/8,203.0.0.0/8,204.0.0.0/8,205.0.0.0/8,208.0.0.0/8,209.0.0.0/8,210.0.0.0/8,216.0.0.0/8,3.0.0.0/8,4.0.0.0/8,31.0.0.0/8,46.0.0.0/8,50.0.0.0/8,54.0.0.0/8,61.0.0.0/8,64.0.0.0/8,67.0.0.0/8,68.0.0.0/8,69.0.0.0/8,70.0.0.0/8,72.0.0.0/8,74.0.0.0/8,75.0.0.0/8,76.0.0.0/8,77.0.0.0/8,79.0.0.0/8,8.0.0.0/8
View gist:6cd745ecc60710502059
$('.dllink').each(function(i,n){console.log(n.href);console.log(" out="+$(n).parent().parent().find('.myPurchaseHistoryListNumber').html()+"." +$(n).parent().parent().find('.myPurchaseHistoryListTitle a').html()+".flac");console.log(" header=Cookie:"+document.cookie)})
@eminarcissus
eminarcissus / FileTransfer.py
Last active April 4, 2016 13:05 — forked from omz/FileTransfer.py
File Transfer script for Pythonista (iOS)
View FileTransfer.py
# File Transfer for Pythonista
# ============================
# This script allows you to transfer Python files from
# and to Pythonista via local Wifi.
# It starts a basic HTTP server that you can access
# as a web page from your browser.
# When you upload a file that already exists, it is
# renamed automatically.
# From Pythonista's settings, you can add this script
# to the actions menu of the editor for quick access.
@eminarcissus
eminarcissus / beam-search.js
Created June 5, 2016 18:39 — forked from Leko/beam-search.js
幅優先ビームサーチがこれで合ってるのか分からないけど説明読んだだけのイメージで実装してみた
View beam-search.js
// 結論(出力結果)
// Rank 1: Sum: 486, HELMS-05(54)
// BODIES-05(50)
// FOLDS-01(141)
// HANDS-04(120)
// LEGS-04(121)
// Rank 2: Sum: 484, HELMS-05(54)
// BODIES-05(50)
// FOLDS-05(139)
// HANDS-04(120)
@eminarcissus
eminarcissus / libjpeg.sh
Last active March 20, 2023 19:30 — forked from dulacp/libjpeg.sh
Download & Compile Libjpeg for iOS (all architectures)
View libjpeg.sh
# Builds a Libjpeg framework for the iPhone and the iPhone Simulator.
# Creates a set of universal libraries that can be used on an iPhone and in the
# iPhone simulator. Then creates a pseudo-framework to make using libjpeg in Xcode
# less painful.
#
# To configure the script, define:
# IPHONE_SDKVERSION: iPhone SDK version (e.g. 8.1)
#
# Then go get the source tar.bz of the libjpeg you want to build, shove it in the
# same directory as this script, and run "./libjpeg.sh". Grab a cuppa. And voila.
@eminarcissus
eminarcissus / search-git-history.md
Created February 7, 2018 17:25 — forked from lyoshenka/search-git-history.md
Search Git commit history for a string and see the diffs
View search-git-history.md

Searching Git commit history

This should be one of the core features of Git, but for some reason it's impossible to figure out how to search for a string in your commit history and see the diffs that that string is in. Here's the best I've come up with:

To find which commits and which files a string was added or removed in:

git log -S'search string' --oneline --name-status

To see the diff of that

@eminarcissus
eminarcissus / Tensorflow_Build_GPU.md
Created June 25, 2018 05:57 — forked from MatthiasWinkelmann/Tensorflow_Build_GPU.md
Tensorflow 1.7 Mac OS Sierra 10.12 GPU Support
View Tensorflow_Build_GPU.md

Tensorflow

System information

  • OS - Sierra 10.12
  • Tensorflow - 1.7.0
  • Xcode command line tools - 8.2 (Download from here: Xcode - Support - Apple Developer & Switch to different clang version: sudo xcode-select --switch/Library/Developer/CommandLineTools & check version: clang -v)
  • Cmake - 3.11
  • Bazel - 0.11.1