Skip to content

Instantly share code, notes, and snippets.

View Hayao0819's full-sized avatar

Yamada Hayao Hayao0819

View GitHub Profile
@noromanba
noromanba / crx-download.mkd
Last active November 27, 2023 03:46
download and locate Chrome Extension file 'crx'

Inspect crx location on Chrome Web Store

crx are src-file of Chrome Extension, those name like this;

novell-moonlight-3.99.0.3-i586.crx

find out *.crx URL and download

Bookmarklet

for Google Web Store

@doi-t
doi-t / setting_default_value.bash
Last active April 2, 2023 11:35
シェル変数のデフォルト値を設定する
#!/bin/bash
foo=${1:-hoge}
echo $foo #$1がなかったらhogeをデフォルト値としてfooに代入する
#var自身にデフォルト値としてhogeを代入としたいので以下のように書きたい
${var:=hoge} #このままでは、hogeが展開されてしまって、hogeなんてコマンドはないとシェル怒られる
echo "1:$var"
var=
@matsubara0507
matsubara0507 / introduction2Pwn.md
Last active July 31, 2025 13:01
楽しいPwn入門

たのしいPwn入門

What is This ?

IGGG Advent Calender 2015のために書いた記事です。
常設CTFで遊んでたらPwnable系の問題を解いてるうちにいろいろと勉強になったのでまとめます。

Pwnable

PwnableとはCTFのジャンルの1つで、プログラムの脆弱性をつき、本来アクセスできないメモリ領域にアクセスして操作し、フラグを取得する感じの問題です。
別名としてExploitがあります。

@sasairc
sasairc / naxtu.md
Last active August 15, 2022 13:33
Linux Kernelのロゴを野獣の咆哮へ変更する

Linux Kernelのロゴを野獣の咆哮へ変更する

この記事は例のアレ Advent Calendar 2014の記事です。(大嘘)

linux-logo-naxtu - Linux Kernelの起動ロゴを、野獣の咆哮(NAXTU)へ変更するパッチです。

Patching

@varqox
varqox / install_debian_with_debootstrap_howto.md
Last active September 17, 2026 13:15
Instructions how to install Debian using debootstrap
@nogajun
nogajun / wine-japanese.reg
Last active November 11, 2025 04:21
LinuxのWine環境で日本語周りをいい感じに設定するレジストリデータ。Windowsで使われるフォント名置換とビットマップフォント無効、InputStyleをrootにします
Windows Registry Editor Version 5.00
' 文字コードをUTF-16リトルエンディアン、改行をCR+LFで保存してください
[HKEY_CURRENT_USER\Software\Wine\Fonts\Replacements]
"Meiryo UI"="Noto Sans CJK JP"
"Meiryo"="Noto Sans CJK JP"
"MS Gothic"="Ume Gothic"
"MS Mincho"="Ume Mincho"
"MS PGothic"="Ume P Gothic"
@fnky
fnky / ANSI.md
Last active October 6, 2026 18:06
ANSI Escape Codes

ANSI Escape Sequences

Standard escape codes are prefixed with Escape:

  • Ctrl-Key: ^[
  • Octal: \033
  • Unicode: \u001b
  • Hexadecimal: \x1B
  • Decimal: 27
@catchdave
catchdave / replace_synology_ssl_certs.sh
Last active March 2, 2026 10:59
CLI script to programmatically replace SSL certs on Synology NAS
# MOVED to public repo: https://github.com/catchdave/ssl-certs/blob/main/replace_synology_ssl_certs.sh
@MasayukiFukada
MasayukiFukada / use_android_extra_display.md
Created April 16, 2021 12:51
余っている Android 端末をサブ画面として使う

余っている Android 端末をサブディスプレイとして使う

  • Linux
  • Android

こちらを参考

要約手順

  • Linux 側に x11vnc をインストールしておく
@mmktomato
mmktomato / detect-wsl.md
Last active January 1, 2025 16:21
[shell] WSL かどうかを判別する

[shell] WSL かどうかを判別する

注:2018年に書いたものです。

シェルの実行環境が WSL でかどうかを判別する方法をいくつかまとめました。確認した環境は以下のとおりです。

  • Ubuntu 16.04 (Windows 10 Creators Update)
  • bash

$PATH 系