View jits_to_us.ahk
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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+@ができないため使わない |
View web_py.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
View blacklist_ip_check.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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) |
View backlog_img_resize.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 指定した画像のサイズ以上はすべて指定サイズにする | |
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("小さくしたよ"); | |
} | |
} |
View backlog_category_template.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 初期設定 | |
// 発火させたいプロジェクトを記入 | |
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"] | |
]; |
View Dockerfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |