Skip to content

Instantly share code, notes, and snippets.

View Shun2439's full-sized avatar

Shun2439 Shun2439

  • Japan
  • 09:14 (UTC +09:00)
View GitHub Profile
i=0;eval( source= %w?"zl ib,bas e64,securerand om".split( ', ').eac
h{|x|require(x)};data=Zlib.inflate (Base64.urls afe_decode64(sou rce.split("#")[4+i ])).unpack("C* ").flat_ma p{|x|[x/8,x/
8,x%8,x%8]};palette=[0x48b0d5,0x8d cee5,0xffffff,0x3a90 ad,0xe0c3b8,0xef d5c6,0].map{|x|[x> >16,(x>>8)&0xff, x&0xff]};all_source=('i='+((i+1)%2
).to_s+';eval(source=%w'+63.chr+source +63.chr+".join)");ch ars=al l_sour ce.chars;width=46; height=24;missin g=width*2*height-chars.size;chars+
=["^"]*missing;c hars=c hars.e ach_slice( width* 2).fla t_map{ _1.join.gs ub(/\x5e{2,}/) {|x|"#"+Se cureRandom.urlsafe_base6
4(x.size-1)[0,x. size-1 ]}.cha rs};pu ts(cha rs .zip(dat a).map{| l,c|"\e[ 48
;2;#{palette[c].join (";")}m" +l}.
@tana
tana / ラズパイでSiv3D.md
Last active October 6, 2023 12:08
ラズパイでSiv3D

前提条件

  • Raspberry Pi 4 Model B
    • OpenGL ES 3.1はPi 4でないと動かないため
  • Raspbian bullseye (64ビット、32ビット両対応。ただし32ビットでは検証不足)

手順

  1. aptから入れられる範囲で依存パッケージを入れる
    sudo apt install ninja-build libasound2-dev libavcodec-dev libavformat-dev libavutil-dev libboost-dev libcurl4-openssl-dev libgtk-3-dev libgif-dev libglu1-mesa-dev libharfbuzz-dev libmpg123-dev libopencv-dev libopus-dev libopusfile-dev libsoundtouch-dev libswresample-dev libtiff-dev libturbojpeg0-dev libvorbis-dev libwebp-dev libxft-dev uuid-dev xorg-dev clang cmake
  • GCCではなくClangコンパイラが必要(32ビットではGCCでもコンパイル可能な可能性あり。要検証)
@angela-d
angela-d / gpg-key-migration.md
Created April 1, 2018 23:57
Move GPG Keys from One Machine to Another

Migrate GPG Keys from One Workstation to Another

Replace [your key] with your key ID

To obtain your key ID

gpg --list-secret-keys --keyid-format LONG

Which returns something like

@matsubara0507
matsubara0507 / introduction2Pwn.md
Last active December 16, 2024 08:11
楽しいPwn入門

たのしいPwn入門

What is This ?

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

Pwnable

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

@tuxfight3r
tuxfight3r / 01.bash_shortcuts_v2.md
Last active May 2, 2025 20:00
Bash keyboard shortcuts

Bash Shortcuts

visual cheetsheet

Moving

command description
ctrl + a Goto BEGINNING of command line