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 Remove Google Ads | |
// @namespace https://gist.github.com/yatt/ | |
// @version 1.0.0 | |
// @description remove google search ads | |
// @author You | |
// @match https://www.google.com/search?q=* | |
// ==/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
// ==UserScript== | |
// @name Twitter その他のツイート 除去 (disable other tweets for twitter japan) | |
// @namespace https://gist.github.com/yatt/ | |
// @version 0.1.1 | |
// @description その他のツイートを除去する. | |
// @author yatt | |
// @match https://twitter.com/*/status/* | |
// @grant none | |
// ==/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
// ==UserScript== | |
// @name Twitter おすすめトピック 除去 (disable topic suggestions for twitter japan) | |
// @namespace https://gist.github.com/yatt/ | |
// @version 0.1 | |
// @description おすすめトピックを除去する. | |
// @author yatt | |
// @match https://twitter.com/* | |
// @grant none | |
// ==/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
// ==UserScript== | |
// @name twitter webからトレンド欄を削除する | |
// @namespace none | |
// @version 0.1 | |
// @description twitter webからトレンド欄を削除する | |
// @author You | |
// @match https://twitter.com/* | |
// @grant none | |
// ==/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
#! /usr/bin/python2.7 | |
# coding: utf-8 | |
import datetime | |
# ダウンロードしたツイート全履歴のディレクトリ | |
TWEET_HISOTRY_DIR = u'C:/Users/XXX/twitter全履歴' | |
# JavaScript式をevalするため. | |
false = False |
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
set YYYYMMDD=%DATE:~0,4%%DATE:~5,2%%DATE:~8,2% | |
set HH=%TIME:~0,2% | |
rem 11 -> 11 | |
rem 9 -> 09 | |
set HH=%HH: =0% |
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 | |
cd $(dirname $0) | |
# 現在パスが通っているchromedriverのバージョンと、chromedriverで公開されている | |
# 最新のchromedriverのバージョンを比較し、新しくなっている場合は更新する。 | |
# chromedriverの保存先 | |
CURRENT_CHROMEDRIVER=/home/user/bin/chromedriver | |
CHROMEDRIVER_ARCHIVE_DIR=/home/user/bin/selenium-webdriver/chromedriver/ |
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/python2.7 | |
# coding: utf-8 | |
""" | |
persistent cache with timeout using pickle | |
restore cache from disk when decorator is used and | |
store cache to disk before exit program. | |
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/python2.7 | |
# coding: utf-8 | |
import peewee | |
import cx_Oracle | |
import os | |
class OracleDatabase(peewee.Database): | |
def _connect(self, database, **kwargs): | |
os.environ['NLS_LANG'] = 'JAPANESE_Japan.AL32UTF8' |
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/python2.7 | |
# coding: utf-8 | |
import os | |
from peewee import * | |
DATABASE_PATH = os.path.join(os.path.dirname(__file__), 'database.sqlite3') | |
db = SqliteDatabase(DATABASE_PATH) | |
NewerOlder