I hereby claim:
- I am vvoody on github.
- I am vvoody (https://keybase.io/vvoody) on keybase.
- I have a public key ASBvWpZB4yG0XpD8OLiRHwDezW9GWiFromZ30cy3Tz1loQo
To claim this, I am signing this object:
| /* | |
| Connect to massive ip:port addresses and find out what are not connectable. | |
| Port variant of PingInfoView. | |
| It only accepts input from a CSV file with following format: | |
| 10.12.15.121:8080,xxxxx,zzzzzz | |
| 10.12.15.4:8080,aaaaa,bbbbbb | |
| 10.12.15.35:8080,ddddd,eeeeee | |
| ... |
I hereby claim:
To claim this, I am signing this object:
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| <plist version="1.0"> | |
| <dict> | |
| <key>Label</key> | |
| <string>com.foobar.ifconfiglo</string> | |
| <key>ProgramArguments</key> | |
| <array> | |
| <string>/sbin/ifconfig</string> |
| #!/usr/bin/python | |
| # -*- coding: utf-8 -*- | |
| # __author__ = 'ihciah' | |
| # cid_hash_file function from https://github.com/binux/lixian.xunlei/blob/master/libs/tools.py | |
| import hashlib | |
| import inotify.adapters | |
| import os | |
| import requests | |
| import re |
| <?php | |
| $ch = curl_init("https://api.twitter.com/"); | |
| curl_setopt($ch, CURLOPT_HTTPHEADER, array("Accept-Encoding: gzip")); | |
| header ("Content-Encoding: gzip"); | |
| $data = curl_exec($ch); | |
| curl_close($ch); |
| /* | |
| * wrapper of running shell script as given user | |
| */ | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <unistd.h> | |
| #include <sys/types.h> | |
| int main(int argc, char *argv[]) |
| #!/usr/bin/python | |
| # -*- coding: utf-8 -*- | |
| # find palindrome dates from today | |
| # One date is same whatever you read it from left or right, | |
| # like "20111102", "20200202"... we'll call it palindrome date. | |
| import datetime | |
| today = datetime.datetime.today() |
| # part of /etc/nginx/nginx.conf | |
| server { | |
| listen 80; | |
| server_name vvoody.org; | |
| location ~ /blog[/]?$ { | |
| if ($query_string ~ p=([0-9]+)) { | |
| rewrite ^(.*) http://blog.vvoody.org/article/$arg_p? permanent; | |
| #set $article_id $1; |
| #!/usr/bin/python | |
| # use PostgreSQL for example | |
| import pgdb | |
| def get_namespace_oid(db, name): | |
| cx = db.cursor() | |
| cx.execute('SELECT oid FROM pg_namespace WHERE nspname=%s', (name,)) | |
| row = cx.fetchone() | |
| cx.close() |