Skip to content

Instantly share code, notes, and snippets.

View mj-hd's full-sized avatar
💯
Flutter Engineer

Yusuke Otsuka mj-hd

💯
Flutter Engineer
View GitHub Profile
@mj-hd
mj-hd / config.cfg
Last active July 23, 2017 06:04
HSP用設定管理モジュール
# こんな感じの設定ファイルを扱えます
General {
Config1: test4
Config2: test2
Config3: test3
}
@mj-hd
mj-hd / decrypt.php
Created August 14, 2015 20:07
Brute-force attack for php's crypt
<?php
$hash = "encrypted hash";
$salt = "salt";
$digits = 8;
$thread_n = 4;
$threads = [];
for ($i = 0; $i < $thread_n; $i++) {
$threads[$i] = new AttackThread($i, $thread_n, $hash, $salt, $digits);
@mj-hd
mj-hd / db_migrate.go
Created June 26, 2015 15:26
HSP部屋データベース移行
package main
import (
"bytes"
"database/sql"
"encoding/gob"
"fmt"
"time"
"github.com/go-sql-driver/mysql"
@mj-hd
mj-hd / private.xml
Last active August 29, 2015 14:23
JISキーボードをUSキーボードとして使ってるユーザ向けの、Karabinerで、Parallels上で英数/かなキーをShift+Ctrl+F11/F12へ割り当てるprivate.xml
<?xml version="1.0"?>
<root>
<list>
<item>
<name>個人用</name>
<item>
<name>英数/かなをVirtualMachineでCtrl+Shift+F11/F12として使う</name>
<identifier>remap.jis_eisuukana_to_us_virtualmachine</identifier>
<only>VIRTUALMACHINE</only>
<autogen>__KeyToKey__ KeyCode::JIS_EISUU,
@mj-hd
mj-hd / hdl_keyword_extractor.rb
Created May 19, 2015 08:02
HDLキーワード抽出スクリプト(Ruby)
#!/usr/bin/ruby
#
# 2015/5/19
#
# hdl_keyword_extractor
# by mjhd <mjhd@devlion.net>
#
# 使い方:
# hdl_keyword_extractor.rb <HDLのデータベースファイル>
#