Skip to content

Instantly share code, notes, and snippets.

View mkfsn's full-sized avatar
🇯🇵

Peiming Wu mkfsn

🇯🇵
View GitHub Profile
for C in ${classc[@]}; do
for(( i=1; i<=255; i=i+1 ))
do
DomainName=`cat $dn_dir/ee.hosts | sed -n "/140\.116\.$C\.$i$/p" | awk '{print $1}'`
if [ "$DomainName" = ";NoDN" ]
then
DomainName=""
fi
echo -e "140.116.$C.$i\t$DomainName" >> $log_dir/DNlist_old
#include <iostream>
#include <cstdlib>
using namespace std;
int main(){
char nextch, temp;
double coe = 0; // 係數
double exp = 0; // 指數
nextch = cin.peek();
#define SQR(r) (r*r)
void main()
{
printf("%d", SQR(2+3));
// SQR (2+3)
// -> ( 2+3*2+3 )
// -> ( 2 + 3*2 + 3 )
// -> ( 2 + 6 + 3 )
// -> 11
[Sun May 11 05:18:22 2014] [error] [client 121.162.47.186] invalid request-URI i\x04\xa1:\xc5\xb0\xdf\xa9&\xa3\x8c
[Sun May 11 08:19:55 2014] [error] [client 87.220.201.45] File does not exist: /var/www/localhost/htdocs/phpTest
[Sun May 11 08:19:59 2014] [error] [client 87.220.201.45] File does not exist: /var/www/localhost/htdocs/phpMyAdmin
[Sun May 11 08:20:00 2014] [error] [client 87.220.201.45] File does not exist: /var/www/localhost/htdocs/pma
[Sun May 11 08:20:01 2014] [error] [client 87.220.201.45] File does not exist: /var/www/localhost/htdocs/myadmin
[Mon May 12 00:05:39 2014] [error] [client 211.149.195.25] File does not exist: /var/www/localhost/htdocs/phpTest
[Mon May 12 00:05:39 2014] [error] [client 211.149.195.25] File does not exist: /var/www/localhost/htdocs/phpMyAdmin
[Mon May 12 00:05:39 2014] [error] [client 211.149.195.25] File does not exist: /var/www/localhost/htdocs/pma
#!/usr/bin/env python
# -*- coding: utf-8 -*-
__date__= 'Jun 01, 2014 '
__author__= 'mkfsn'
import os
import sys
try:
import requests
# min support = 1%
664 miupix.cc
1125 www.chinatimes.com
1983 tw.news.yahoo.com
1136 news.ltn.com.tw
4222 www.facebook.com
785 zh.wikipedia.org
1113 twimg.edgesuite.net
2202 udn.com
1303 tinyurl.com
@mkfsn
mkfsn / gist:4ed4f67784f5a3fe01ff
Last active August 29, 2015 14:02
AKB48 37th 総選挙
80 大島涼花
79 HKT 沒聽過 ...
78 TK 宮崎美穂
77 SKE TE 小林亜実
76 小笠原真由
75 SKE TE 誰阿...
74 SKE TK2 阿比留美穂
73 SKE TS 矢方美紀
72 NMB TN 吉田朱里
71 AKB 田名部生来
#include <cstdio>
#include <cstring>
#include <string>
#include <map>
using namespace std;
int main()
{
int t; // number of test cases
<script>
var cur_lang = "<?php echo $cur; ?>";
</script>
#!/usr/bin/python
import itertools
def isa_group_separator(line):
return line=='\n'
def validation(data):
reserved = ['git', 'nfsnobody']