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/bash | |
#Linux Spotify Ad Mute v2 | |
#Put this script in the directory the "spotify" binary is in (e.g. /usr/share/spotify). | |
#To open Spotify, run it instead of the "spotify" binary. | |
#System sound will be muted as soon as an ad plays | |
#Find updated versions at: http://pcworldsoftware.kilu.net/files/link_spotify-admute.php and/or https://gist.github.com/pcworld | |
#On Debian, you need the package "pulseaudio-utils" for the command line util "pactl" which used in this script | |
# | |
#Update: For newer 0.8.x versions (x>4; such as 0.8.8), use this script: https://gist.github.com/pcworld/3198763/#comment-813440 |
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 xunlei lixian web version batch downloader | |
// @author jnozsc | |
// @namespace https://twitter.com/jnozsc | |
// @description xunlei lixian web version batch downloader. modify from @sycx 's applescript http://j.mp/lZlP9g. compatible with Firefox.chrome.safari | |
// @include http://dynamic.cloud.vip.xunlei.com/* | |
// @match http://dynamic.cloud.vip.xunlei.com/* | |
// @version 1.1 | |
// ==/UserScript== |
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
new array a[10]; // input | |
new array b[10]={0,0,0,0,0,0,0,0,0,0}; | |
bool flag = true; | |
int c = 0; | |
while(flag){ | |
flag = false; | |
int i; | |
// loop | |
for(i=0,i<10,i++){ | |
int c = countNumber(b,a[i]); |
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
#!/usr/bin/env python | |
import urllib | |
import string | |
import math | |
ipv4url='http://ftp.apnic.net/apnic/stats/apnic/delegated-apnic-latest' | |
up="http://autoddvpn.googlecode.com/svn/trunk/vpnup.sh" | |
down="http://autoddvpn.googlecode.com/svn/trunk/vpndown.sh" |
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
rails new project_name |
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
/usr/local/include/fuse/fuse_common.h:32:2: error: #error Please add -D_FILE_OFFSET_BITS=64 to your compile flags! In file included from /usr/local/include/fuse/fuse.h:857, from :0: | |
/usr/local/include/fuse/fuse_compat.h:69:24: error: sys/statfs.h: No such file or directory |
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
:29:in 'require': no such file to load — jcode (LoadError) |
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
rake generate |
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 NoLike for douban | |
// @namespace jnozsc | |
// @description Remove Like from douban timeline | |
// @include http://www.douban.com/* | |
// @match http://www.douban.com/* | |
// @version 1.2 | |
// ==/UserScript== | |
function main($) { |
OlderNewer