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 | |
#dir define | |
myfonts_dir=/usr/share/fonts/truetype/myfonts | |
remote_dir=http://files.cnblogs.com/DengYangjun | |
#fonts define | |
monaco=monaco-linux.ttf | |
lucida=lucida-console.ttf | |
msyh=msyh.ttf |
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 | |
#自行替换 username, host, port,password | |
python ~/goagent-local/proxy.py & plink -N -v username@host -D 127.0.0.1:port -pw password |
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/python | |
from os import listdir, symlink, makedirs | |
from os.path import basename, join, isdir, isfile, islink, getsize, exists | |
def all_entry(entry): | |
return True | |
def to_bytes(size): | |
if size.endswith("K"): | |
return int(size[:-1]) * 1024 |
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 | |
""" | |
A simple script that creates an OPML file of the RSS feeds to | |
a Twitter user's lists. | |
python twitter_list_to_opml.py mylesb | |
Copyright (c) 2010, Myles Braithwaite <[email protected]> | |
All rights reserved. |
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
# coding=utf-8 | |
from BeautifulSoup import BeautifulSoup | |
import urllib2 | |
import sys, os | |
reload(sys) | |
sys.setdefaultencoding('utf-8') | |
input_file = sys.argv[1] | |
output_opml = sys.argv[2] |
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/bin/php | |
<?php | |
include_once('getRSSLocation.php'); | |
// del.icio.us username and password | |
$username = 'your_username'; | |
$password = 'your_password'; | |
$cache_file = '/tmp/delicious-blogroll.xml'; | |
$blogs = array(); |
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
# http://msdn.microsoft.com/en-us/library/dd251064.aspx | |
for mkt in "ar-XA" "bg-BG" "cs-CZ" "da-DK" "de-AT" "de-CH" "de-DE" "el-GR" "en-AU" "en-CA" "en-GB" "en-ID" "en-IE" "en-IN" "en-MY" "en-NZ" "en-PH" "en-SG" "en-US" "en-XA" "en-ZA" "es-AR" "es-CL" "es-ES" "es-MX" "es-US" "es-XL" "et-EE" "fi-FI" "fr-BE" "fr-CA" "fr-CH" "fr-FR" "he-IL" "hr-HR" "hu-HU" "it-IT" "ja-JP" "ko-KR" "lt-LT" "lv-LV" "nb-NO" "nl-BE" "nl-NL" "pl-PL" "pt-BR" "pt-PT" "ro-RO" "ru-RU" "sk-SK" "sl-SL" "sv-SE" "th-TH" "tr-TR" "uk-UA" "zh-CN" "zh-HK" "zh-TW"; do | |
xmlURL="http://www.bing.com/HPImageArchive.aspx?format=xml&idx=0&n=1&mkt=$mkt" | |
(echo $(curl -s $xmlURL) | grep -o "<urlBase>.\+</urlBase>" | grep "ROW" || echo $mkt) | grep -v "ROW" | |
done |
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
'************************ | |
'Name: Disable Connection | |
'Author: Jeremy England | |
'Company: SimplyCoded | |
'Date: 10/01/2016 | |
'************************ | |
Option Explicit | |
Dim interface, interfaceName, interfaceTarget, available, verb | |
'Pick the Interface Name you want to disable |
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
#include <iostream> | |
#include <vector> | |
#include <algorithm> | |
#include <random> | |
#include <chrono> | |
#include <cstdlib> | |
// 打印耗时情况. | |
inline void print_duration(std::chrono::steady_clock::time_point start_t, | |
std::chrono::steady_clock::time_point end_t) |