Skip to content

Instantly share code, notes, and snippets.

Avatar

Osumi, Yusuke ozuma

View GitHub Profile
@ozuma
ozuma / 25daysofchristmas-task14day9.py
Created Feb 21, 2021
TryHackMe, Advent of Cyber 1 [2019] Task14 Day9
View 25daysofchristmas-task14day9.py
#!/usr/bin/python3
import urllib.request
import json
baseurl="http://10.10.169.100:3000/"
str=""
for i in range(20):
with urllib.request.urlopen(baseurl + str) as f:
@ozuma
ozuma / p10-header-cut.sh
Created Jan 13, 2021
Cut Header of Screenshot by Huawei P-10 Lite
View p10-header-cut.sh
#!/bin/sh
for filename in *.png
do
convert "${filename}" -crop 1080x1850+0+70 "s-${filename}"
done
View keybase.md

Keybase proof

I hereby claim:

  • I am ozuma on github.
  • I am ozuma5119 (https://keybase.io/ozuma5119) on keybase.
  • I have a public key whose fingerprint is DC13 8B57 FE59 923E 8638 E0EB 0AF5 37AE BDA8 7705

To claim this, I am signing this object:

@ozuma
ozuma / view_dirent.c
Last active Aug 21, 2020
View Directory Entry.
View view_dirent.c
#include <stdio.h>
#include <dirent.h>
int main(int argc, char *argv[])
{
DIR *dir;
struct dirent *dentry;
dir = opendir(argv[1]);
while (dentry = readdir(dir)) {
@ozuma
ozuma / ascii2char.py
Created Jun 22, 2020
ASCII code to Character
View ascii2char.py
#!/usr/bin/python
strarr="56 55 62 56".split()
result=""
for code in strarr:
# result += chr(int(code, base=16))
result += chr(int(code))
print(result)
@ozuma
ozuma / 20190502jppost.log
Created May 2, 2019
20190502-dig-jppost-__.com.txt
View 20190502jppost.log
jppost-fu.com has address 198.44.228.130
jppost-hi.com has address 67.229.196.134
jppost-hu.com has address 67.229.196.134
jppost-mu.com has address 198.44.228.130
jppost-ni.com has address 198.44.228.130
jppost-no.com has address 198.44.228.130
jppost-nu.com has address 198.44.228.130
jppost-pe.com has address 67.229.228.69
jppost-ri.com has address 67.229.196.134
jppost-ta.com has address 198.44.228.130
@ozuma
ozuma / start.java
Last active Apr 27, 2018
Unicode sample of Java
View start.java
package com.example;
import java.io.UnsupportedEncodingException;
public class start {
public static void main(String[] args) throws UnsupportedEncodingException {
// TODO Auto-generated method stub
String str = "あいうえお";
// getBytes()は、特定の文字コードでのバイト列を取得する
// byte[] utf8bytes = str.getBytes("UTF-8");
@ozuma
ozuma / nginx-install.md
Last active Aug 23, 2017
nginxとHTTP/2(CentOS7) ALPN有効
View nginx-install.md
@ozuma
ozuma / git-for-windows-memo.md
Last active Mar 18, 2017
Git for Windowsの注意点
View git-for-windows-memo.md

Git for Windows

ハマりどころが多いので自分用メモ.

インストール時の改行コード指定

Windows版Gitは,おせっかいなことにLFをCRLFに勝手に変換したりとかウザいことをしようとする.デフォルトでインストールするとこのおせっかいが働くので,インストール時に「Checkout as-is, commit as-is」を選んで改行コードを一切いじらせないようにする.

その代わり,Windowsで作業時に新規ファイルを作るときは,「UTF-8の改行コードはLF」で作ること.CRLFで作ると面倒なことになる.

@ozuma
ozuma / eap-tls_on_el_capitan.md
Last active Aug 18, 2016
El CapitanでEAP-TLS(IEEE802.1X認証)を有線LANで使う
View eap-tls_on_el_capitan.md

Mac OS X El CapitanでEAP-TLS(IEEE802.1X認証)を有線LANで使う

Mountain Lionまでは、Ehternetの設定で証明書を食わせるだけで行けたのだが……。El Capitanでは、構成プロファイル(Provisioning Profile)を作って食わせてやらないといけない。めんどい。そのメモ。

Apple Configurator 2のインストール

証明書から構成プロファイルを作成するために、まずはApple Configurator 2をインストールする必要がある。