Skip to content

Instantly share code, notes, and snippets.

View co3k's full-sized avatar
🔞
"><s>'\

Kousuke Ebihara co3k

🔞
"><s>'\
View GitHub Profile
  • 下ごしらえ

    • 材料を切る
  • タレ1

    • お湯ににんにくと生姜を入れる
    • ダシも入れる
    • 沸騰したら酒
  • 豚

  • 豚を茹でる

@co3k
co3k / a.txt
Last active September 16, 2017 13:51
https://pastebin.com/6vKp6rh6 の日本語訳です(この英文は中国語からの翻訳)。
この日本語訳の翻訳者は、中国のインターネット規制については明るくありません。また、 Web セキュリティが主戦場であって、ネットワーク関連は専門
ではない (DPI がどういうものなのかを理解している程度のレベル) ので技術的に不正確な訳が含まれるかもしれません。
あと私訳であり、英文法的に不正確な訳が含まれるかもしれません。
あらゆるフィードバックを歓迎します。
-----
# -*- coding: utf-8 -*-
# LICENSE INFORMATION:
# Please treat this script as CC0
from immlib import *
imm = Debugger()
class KamikazeHook(LogBpHook):
<!DOCTYPE feed [
<!ENTITY kurorekishi SYSTEM "php://filter/convert.base64-encode/resource=s3://phpcon/ebihara-kaicho.jpg">
]>
<feed xmlns="http://www.w3.org/2005/Atom">
<title>example</title>
<updated>2013-06-24T11:56:27+09:00</updated>
<id>example</id>
<entry>
<title>&kurorekishi;</title>
<link href="http://example.com/" />
@co3k
co3k / urlencode-rawurlencode.diff
Created August 9, 2013 12:14
diff -u urlencode rawurlencode
--- urlencode 2013-08-09 20:57:57.000000000 +0900
+++ rawurlencode 2013-08-09 21:11:45.000000000 +0900
@@ -1,43 +1,30 @@
-PHPAPI char *php_url_encode(char const *s, int len, int *new_length)
+PHPAPI char *php_raw_url_encode(char const *s, int len, int *new_length)
{
- register unsigned char c;
- unsigned char *to, *start;
- unsigned char const *from, *end;
-
@co3k
co3k / pre-push.py
Created July 8, 2013 13:03
Git pre-push hook script to display confirmation of the push action
#!/usr/bin/env python
import sys, os
info = sys.stdin.read().strip().split(" ")
range = ""
if info:
range = "{}..{}".format(info[3], info[1])
sys.stdin = open('/dev/tty')
<?php
require_once __DIR__.'/vendor/autoload.php';
$lib = new PasswordLib\PasswordLib();
$hash = $lib->createPasswordHash('tetete', '$6$');
var_dump($hash);
var_dump(date('Y-m-d H:i:s'));
// ==UserScript==
// @name Non scheduled blogger posting preventer
// @namespace http://co3k.org/
// @version 0.1
// @description This script alerts when you try to post without scheduling
// @match http://www.blogger.com/blogger.g?*
// @copyright CC0
// ==/UserScript==
window.addEventListener ("load", (function(){
@co3k
co3k / chrome.html
Last active December 16, 2015 08:09
CC0
<!DOCTYPE html>
<html>
<head>
<title>Chrome</title>
</head>
<body onload="UraCra.loadImage()">
<ul>
<li><button onclick="UraCra.background()">Background</button></li>
<li><button onclick="UraCra.zoom()">Zoom</button></li>
</ul>