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
CC = gcc | |
CFLAGS = -std=c99 | |
CXX = g++ | |
CPPFLAGS = -std=c++11 | |
TARGET = example | |
SRCS = \ | |
hello-c.c \ |
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
cmake_minimum_required(VERSION 3.0) | |
project(test_glade CXX) | |
find_package(PkgConfig) | |
pkg_check_modules(Gtkmm gtkmm-3.0) | |
pkg_check_modules(Glibmm glibmm-2.4) | |
include_directories(${Gtkmm_INCLUDE_DIRS} |
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 | |
require "twitter" | |
def is_spam(tweet) | |
text = tweet.text | |
if /.*現在の価格.*現在の入札人数.*詳しくはコチラ!.*/m =~ text | |
true | |
elsif /.*現在価格:.*,入札数:.*,終了日時:.*/ =~ text | |
true | |
elsif /.*詳細はコチラ→.*#ヤフオク.*/m =~ text |
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 | |
require "twitter" | |
def is_spam(tweet) | |
source = tweet.source | |
source.include?("twittbot.net") || source.include?("IFTTT") | |
end | |
rest = Twitter::REST::Client.new do |config| | |
config.consumer_key = "" |
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
5423042|岩元忍者|siwamot | |
6198372|MOHIMOFU|mohimofu | |
215909631|ついたろ次郎|tuitaroboy | |
216923295|にこまるったー|vone12tg | |
323064900|japanesegirls|girls_j | |
368220350|Noticiario URA-GLOBO|ilobur_news | |
406035016|妖怪人間ベム fan|muralobe | |
412178232|乃木坂46 fan|nogizaka47 | |
413564437|FX投資|fxxtousi | |
413928370|EXILE fan|eexilee |
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 -*- | |
import sys | |
import urllib2 | |
from math import log | |
try: | |
response = urllib2.urlopen("http://ftp.apnic.net/stats/apnic/delegated-apnic-latest") | |
except urllib2.HTTPError, e: | |
sys.stderr.write("IPアドレスの一覧を取得できませんでした。") |
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 | |
# アンテナサイトからまとめブログを取得するコマンド集です | |
# サイトごとに1行にしてるのでコマンドをターミナルシミュレータにコピペするだけですぐ動きます | |
# 正規表現でhtmlから抜き出してるだけなので、アンテナサイトが仕様変更すると使えなくなる可能性があります | |
# また、その気になればアンテナサイト側が無関係なサイトが出るように細工できるのでそのつもりで | |
# 2chまとめのまとめ | |
# http://2chmm.com/ | |
curl -s 'http://2chmm.com/' | sed -n 's/^<h2><a href=".*\/\/\([^"]*\)\/.*$/\1/p' | sed -e 's/^www\.//' |
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
##a[href*="alfalfalfa.com"] | |
##a[href*="hamusoku.com"] | |
##a[href*="www.akb48matomemory.com"] | |
##a[href*="blog.livedoor.jp/dqnplus"] | |
##a[href*="blog.livedoor.jp/nwknews"] | |
##a[href*="gossip1.net"] | |
##a[href*="blog.livedoor.jp/rbkyn844"] | |
##a[href*="rabitsokuhou.2chblog.jp"] | |
##a[href*="blog.livedoor.jp/chihhylove"] | |
##a[href*="oniyomech.livedoor.biz"] |
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/sh | |
# Get tor exit address | |
data=`curl -s https://check.torproject.org/exit-addresses` | |
if [ $? -ne 0 ]; then | |
echo "Cannot get address." | |
exit 1 | |
fi |