Skip to content

Instantly share code, notes, and snippets.

View shun-shobon's full-sized avatar
🙇‍♂️
I'm sorry I'm not good at English.

NISHIZAWA Shuntaro shun-shobon

🙇‍♂️
I'm sorry I'm not good at English.
View GitHub Profile
@shun-shobon
shun-shobon / del_ignore_history.vim
Last active December 30, 2019 14:11
パターンにマッチするコマンドを保存しない
" ヒストリーに保存しないコマンド
let s:histignore = [
\ 'history',
\ 'h\%[elp]',
\ 'qa\?!\?',
\ 'wq\?a\?!\?'
\ ]
function! s:delIgnoreHistory() abort
let l:history = histget(':', -1)
for l:ignore in s:histignore
@shun-shobon
shun-shobon / .eslintrc
Last active November 22, 2020 14:43
TypeScript + ESLint + Prettier環境構築例
{
"env": {
"node": true,
"es2021": true
},
"plugins": ["@typescript-eslint"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"sourceType": "module"
},
@shun-shobon
shun-shobon / install.sh
Last active May 17, 2020 02:58
TypeScript + Jest環境構築例
yarn add -D \
typescript \
jest \
ts-jest \
@types/jest
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@shun-shobon
shun-shobon / README.md
Last active May 24, 2020 05:46
SECCON for Beginners、TweetstoreのWriteup

このサイトへ攻撃を行う。

ツイート一覧が表示されているサイト。search wordに文字列、limitに数字を入力することで絞り込みが可能。

とりあえずSQLインジェクションかなと思ってsearch wordに1' OR 1 = 1; --と入力してみるとあっさり成功。

次にサーバーのソースコードを読んで見る。

// ...
@shun-shobon
shun-shobon / ci.yml
Created November 6, 2020 15:10
GitHub Actionsのテンプレート
name: ci
on: push
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
@shun-shobon
shun-shobon / README.md
Last active June 4, 2024 07:53
Hide private address on Amazon
@shun-shobon
shun-shobon / README.md
Last active May 1, 2022 13:55
Customize code font of GitHub.
@shun-shobon
shun-shobon / vector.h
Last active July 23, 2022 02:46
C言語でベクタを実装してみました
#pragma once
// 可変長配列の宣言
#define VEC_DECLARE(T) \
typedef struct { \
size_t cap; \
size_t len; \
T *ptr; \
} vec_##T; \
void vec_init_##T(vec_##T *vec); \

Keybase proof

I hereby claim:

  • I am shun-shobon on github.
  • I am shunshobon (https://keybase.io/shunshobon) on keybase.
  • I have a public key ASBm4a9qGzOI-u1yvt5KA4mNfHoQurxp7ASZLUAIROG2zwo

To claim this, I am signing this object: