Skip to content

Instantly share code, notes, and snippets.

@MakiseKurisu
MakiseKurisu / setup.sh
Last active January 6, 2025 05:28
Proxmox VE 6 GPU Passthrough
#!/bin/bash
# Reference guides:
# https://wiki.archlinux.org/index.php/PCI_passthrough_via_OVMF
# https://pve.proxmox.com/wiki/Pci_passthrough
# https://pve.proxmox.com/wiki/Nested_Virtualization
# Remember to turn on SVM in BIOS and disable CSM
# Update packages
@atsunoda
atsunoda / smtp_domain_takeover.md
Last active September 2, 2022 22:36
SSRFを利用したメール送信ドメインの乗っ取り
@atsunoda
atsunoda / text_injection.md
Last active September 2, 2022 22:37
脆弱性報奨金制度で認定されづらいテキストインジェクション
@mala
mala / CVE-2019-5418_is_RCE.md
Last active February 7, 2021 04:25
Rails の CVE-2019-5418 は RCE (Remote code execution) です
@YuukiToriyama
YuukiToriyama / imagemagick_cube.bash
Created May 27, 2019 19:35
またつまらないシェル芸を作ってしまった
#!/bin/bash
convert -size 1500x500 pattern:checkerboard -fill Black -pointsize 400 -font "Symbola" -draw 'text 30,350 "Sh ell 💩"' -write mpr:L -crop 500x500+0+0! -virtual-pixel none -distort Perspective '0,0 100,350 500,0 100,150 0,500 250,400' -write mpr:tmp +delete mpr:L -crop 500x500+500+0! -virtual-pixel none -distort Perspective '0,0 100,150 500,0 250,100 0,500 250,200' mpr:tmp -composite -write mpr:tmp +delete mpr:L -crop 500x500+1000+0! -virtual-pixel none -distort Perspective '0,0 250,200 500,0 400,150 0,500 250,400' mpr:tmp -composite unko.png
@masarakki
masarakki / ex-dwango.md
Last active November 26, 2024 23:45
株式会社ドワンゴを退職しました

株式会社ドワンゴを退職しました

2011年3月15日に就職してから今日で8年と3ヶ月半・・・月にして99ヶ月・・・日数にして実に3033日 と・・・計算している間にも23秒が過ぎてしまったわけですが、株式会社ドワンゴを退職しました。 7月からはクックパッドで働きます。

ドワンゴでやってきたこと

@chriswayg
chriswayg / create-cloud-template.sh
Last active April 4, 2025 19:45
This script will download a cloud image of many Linux distros and create a Proxmox 6 KVM template from it.
#!/bin/bash
set -o errexit
clear
printf "\n*** This script will download a cloud image and create a Proxmox VM template from it. ***\n\n"
### HOW TO USE
### Pre-req:
### - run on a Proxmox 6 server
### - a dhcp server should be active on vmbr1
@mehdichaouch
mehdichaouch / google-dorks
Created March 22, 2020 17:53
Listing of a number of useful Google dorks.
Explanations:
cache: If you include other words in the query, Google will highlight those words within
the cached document. For instance, [cache:www.google.com web] will show the cached
content with the word “web” highlighted. This functionality is also accessible by
clicking on the “Cached” link on Google’s main results page. The query [cache:] will
show the version of the web page that Google has in its cache. For instance,
[cache:www.google.com] will show Google’s cache of the Google homepage. Note there
can be no space between the “cache:” and the web page url.
------------------------------------------------------------------------------------------
@Connie-Wild
Connie-Wild / channels.yml
Last active April 24, 2025 07:07
mirakurun BSCSチャンネル設定(2024/06/01現在)
- name: NHK BS1
type: BS
channel: BS15_0
serviceId: 101
- name: NHK BSプレミアム
type: BS
channel: BS03_1
serviceId: 103
- name: BS日テレ
type: BS
@sjkillen
sjkillen / main.rs
Last active March 17, 2022 08:31
Rust Cartesian Product Iterator
mod util;
use std::ops::Range;
use util::*;
fn main() {
let v: Vec<Range<i32>> = [(1..4), (11..14), (111..114)]
.into_iter()
.map(|r| r.clone())
.collect();
for items in v.into_iter().flat_cprod() {