Skip to content

Instantly share code, notes, and snippets.

@cyamax
cyamax / Dockerfile
Last active February 21, 2018 13:45
dockerfile/ctf Pwn debug-tools ubuntu 14.04 64bit
FROM ubuntu:14.04
# Debian Installerが使うフロントエンドに関わるエラーを表示しない
ENV DEBIAN_FRONTEND noninteractive
# 初期インストール
RUN dpkg --add-architecture i386
RUN apt-get update -y
RUN apt-get install -y wget git
@cyamax
cyamax / backlog_category_template.js
Last active June 24, 2018 09:15
backlogのチケット作成時にカテゴリを選択すると自動でテンプレートが入る
// 初期設定
// 発火させたいプロジェクトを記入
var projectName = "";
// テンプレートをbacklogのリポジトリにmarkdown形式で保存。
var template = [
["カテゴリ1", "https://pepope.backlog.com/git/TEST/repo/raw/master/template1.md"],
["カテゴリ2", "https://pepope.backlog.com/git/TEST/repo/raw/master/template2.md"]
];
@cyamax
cyamax / blacklist_ip_check.sh
Created June 26, 2018 13:32
指定したipがブラックリスト(SPAMHAUS)に載ったらメールを送る
#!/bin/bash
## ここのIPは逆に記入してください
### 例:192.168.1.10 → 10.1.168.192 とする
search_ip="ここにIPを逆順でいれる"
result=$(dig +short ${search_ip}.zen.spamhaus.org)
## デバッグ用
#result=$(dig ${search_ip}.zen.spamhaus.org)
@cyamax
cyamax / web_py.py
Last active November 7, 2018 12:36
import argparse
import logging
import time
import cv2
import numpy as np
from tf_pose.estimator import TfPoseEstimator
from tf_pose.networks import get_graph_path, model_wh
@cyamax
cyamax / backlog_img_resize.js
Created June 25, 2018 13:14
Backlogのwikiの画像はでかすぎるから良い感じにする
// 指定した画像のサイズ以上はすべて指定サイズにする
var maxWidth = 600;
var elements = document.getElementsByTagName("img");
for(i=0;i<elements.length;i++){
if(elements[i].width > maxWidth){
elements[i].width = maxWidth;
console.log("小さくしたよ");
}
}
@cyamax
cyamax / jits_to_us.ahk
Last active February 6, 2024 00:46
Autohotkey JIS配列→US配列する
#UseHook
#InstallKeybdHook
;参考
;https://rcmdnk.com/blog/2013/07/28/computer-windows-autohotkey/
;https://fuchiaz.com/usage-autohotkey/
;https://sites.google.com/site/autohotkeyjp/reference/KeyList#Key_Convert
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; 1段目
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
VKF4::` ; 半角/全角 -> ` sendにするとctrl+shift+@ができないため使わない