Skip to content

Instantly share code, notes, and snippets.

View onokatio's full-sized avatar
♨️
温泉行きたい

onokatio (tmaruyama) onokatio

♨️
温泉行きたい
  • Japan
  • 18:34 (UTC +09:00)
View GitHub Profile
@onokatio
onokatio / file0.txt
Last active February 11, 2018 01:13
公開リポジトリをフォークして非公開リポジトリにする ref: https://qiita.com/onokatio/items/1a962c99fde76f6778b4
$ git clone --bare https://github.com/hoge/hoge
@onokatio
onokatio / file0.txt
Last active February 20, 2018 02:57
SECCON2017国内決勝大会 Write-up ref: https://qiita.com/onokatio/items/95ba13f7d4facd09be6c
$ curl -Ss http://umeda.koth.seccon/login|tr '<>' '\n\n' > a ; rg "csrf_name" a|sed -E 's/.*(name=)(.*)(value)/\1/'|sed -E 's/name=="//'|sed -E 's/"//' > csrf_name ; rg "csrf_value" a|sed -E 's/.*(name=)(.*)(value)/\1/'|sed -E 's/name=="//'|sed -E 's/"//' > csrf_value ; curl -Ss -X POST -d "csrf_name=$(cat csrf_name)&csrf_value=$(cat csrf_value)&name=test&password=test" http://umeda.koth.seccon/register -i
curl -Ss https://qiita.com/onokatio/feed.atom|grep -e "<title>" -e "<url>" |sed -e 's/^[0-9]*: *//'|sed -E 's/<url>/(/'|sed -E 's/<\/url>/)/'|sed -E 's/<title>/[/'|sed -E 's/<\/title>/]/'|tr -d '\n'|sed -e 's/)/)\n/g'
@onokatio
onokatio / file0.txt
Last active April 4, 2018 03:40
Cloudflareが1.1.1.1で超高性能DNS始めたし、いっちょ俺のパソコンもDNS over HTTPSしてみる ref: https://qiita.com/onokatio/items/42fb4a2811600680591b
$ wget https://bin.equinox.io/c/VdrWdbjqyF/cloudflared-stable-linux-amd64.tgz
$ tar xvf cloudflared-stable-linux-amd64.tgz
$ sudo mv ./cloudflared /usr/bin/
@onokatio
onokatio / file0.txt
Created April 5, 2018 08:32
お前らのターミナルは可愛くない ref: https://qiita.com/onokatio/items/9b18d900629b84e5845d
$ PROMPT="人の金で焼き肉が食べたい!! "
## 物理ボリュームの作成(パーティションをLVM管理下に置く)
pvcreate /dev/sda1
pvcreate /dev/sda2
## 物理ボリュームの解除(パーティションをLVM管理下に置かない)
pvremove /dev/sda1
--- main.rc.old 2018-04-20 16:06:02.000000000 +0900
+++ main.rc 2018-04-28 13:32:42.350012349 +0900
@@ -1928,59 +1928,12 @@ style "checkbutton_label" {
}
style "button" {
- xthickness = 4
- ythickness = 4
- # For the sake of sanity style buttons this way
@onokatio
onokatio / file0.txt
Created May 5, 2018 15:54
高専生が無料で使えるLAMP Webサーバー KosenSpaceでsshfsを使ってみた ref: https://qiita.com/onokatio/items/f6cb6973bda065393d3b
$ sudo pacman -S sshfs
Verifying my Blockstack ID is secured with the address 1CKPRLmYjBEKg8WRXDFQburd91ihGhJ1oS https://explorer.blockstack.org/address/1CKPRLmYjBEKg8WRXDFQburd91ihGhJ1oS
#zmodload zsh/zprof && zprof
if [[ -z "$CTG" ]];then
source ~/.zprofile
fi
if [[ "$TTY" == "/dev/tty1" ]];then
startx > /dev/null 2>&1
# fbterm
elif echo "$TTY" | grep "/dev/tty" ;then