Skip to content

Instantly share code, notes, and snippets.

View KOBA789's full-sized avatar
🚀

KOBA789 KOBA789

🚀
View GitHub Profile
@KOBA789
KOBA789 / fizzbuzz.c
Last active August 29, 2015 14:00
fizzbuzz
/*
Simple FizzBuzz
Copyright (C) 2014 KOBA789
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
/*
Copyright © 2014 Hidekazu Kobayashi
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
while; do curl -c /tmp/__cookie.txt "http://c.student.mynavi.jp/cpf/stu_003/photos/detail/32" > /dev/null && curl -b /tmp/__cookie.txt -d "_method=POST" -d "data%5BEntry%5D%5Bid%5D=32" "http://c.student.mynavi.jp/cpf/stu_003/votes/index/page:1" -L > /dev/null ; sleep 1; done

ChangeLog を支える英語

ChangeLog を書く際によく使われる英語をまとめました。

ほとんど引用です。

基本形

@KOBA789
KOBA789 / 100g_cps.txt
Created September 16, 2013 07:21
Cookie Clicker 100G Cps
MS4wMzZ8fDEzNzkyNDgwMTc1MjF8MDAxMTEwfDU1MDkzNzk5ODI4MTc4OzQ5MTE3ODk0OTE2OTQyMjsxMzQ2MTYwOzE1OzMwMzQ5MTcxMTY2NjQwNzsxMTstMTstMTswOzA7MDswOzY3OzUwNzI1fDMwMCw0NzgsMTA1Nzg2MjY0NDExLDA7MjAsMjE5LDExNTcxMjEzNzgsMDswLDExOCwzMjQ2MDEwLDA7MCwxMTksMTgxMTUzNDgsMDswLDEyMCw2NjQxODYyNCwwOzEwMCwxMTgsMjQxMTk3NTQ2LDA7MTAwLDExNSw5MDU5MTYxNzcsMDsxMDAsMTAwLDIwNzQxNzI4MjI0LDA7MjA1LDIwNSw0NDUwNTYzNTU3MjksMDsyMzAwLDIzMDEsMjEyODE2ODIxOTQzMzksMDt8NDUwMzU5OTYyNzM3MDQ5NTs0NTAzNTk5NjI3MzcwNDk1OzIyNTE4MzQxNzM0MjMyMzE7Mzk0MDY5MjQ4OTUzMzk1MTs2OTkzOTF8NDUwMzU5NzYxNDEwNDU3NTsxNTE0MDAyNDk0MjU5MQ%3D%3D%21END%21
@KOBA789
KOBA789 / wp.md
Last active December 21, 2015 21:29
WordPress のやられたやつまとめ

WordPress のやられたやつまとめ

  • バージョン関係ないっぽい
    • 3.4.2, 3.5.1, 3.5.2, 3.6 で確認した
  • wp-login.php に多数のアクセス試行が確認されている
    • 1sec の wait で GET, POST を繰り返している
    • http://nendeb.jp/?p=673 によるともっといろんな頻度でのアクセスがあるっぽい
      • 10req/s とか 1req/3m とか
        • 海外からの攻撃なので、単純に回線速度の問題?
  • ブルートフォースっぽく見える
  • 上記 URL の記事のスクショをみる限り、そういう挙動
@KOBA789
KOBA789 / gist:6368524
Created August 28, 2013 17:08
wp-login.php でバージョンを確認するためだけのブックマークレット
javascript:alert(document.head.getElementsByTagName("link")[0].getAttribute("href").match(/ver=(.+)/)[1]);void 0;
@KOBA789
KOBA789 / parser.js
Created August 28, 2013 03:35
実際動かない(struct リテラルくらいしかパースできない)
var util = require('util');
function Nothing () {}
Object.Nothing = Nothing;
Array.prototype.maybeMap = function (callback, thisArg) {
var T, A, k;
if (this == null) {
throw new TypeError(" this is null or not defined");
package main
import (
"fmt"
"io"
"crypto/md5"
"strings"
)
func md5sum(text string) string {
require 'socket'
ETH_P_ALL = 0x0300
ETH_P_IP = 0x800
class MacAddr
def initialize(addr)
@addr = addr
end