Skip to content

Instantly share code, notes, and snippets.

@thesamesam
thesamesam / xz-backdoor.md
Last active November 4, 2024 18:32
xz-utils backdoor situation (CVE-2024-3094)

FAQ on the xz-utils backdoor (CVE-2024-3094)

This is a living document. Everything in this document is made in good faith of being accurate, but like I just said; we don't yet know everything about what's going on.

Background

On March 29th, 2024, a backdoor was discovered in xz-utils, a suite of software that

@voluntas
voluntas / index.md
Last active November 4, 2024 07:18
Zig 言語リファレンス
  • これは Zig ドキュメント 0.10.1 を DeepL Pro と ChatGPT を利用して翻訳したものです。
    • 一部 master なモノもあります、ごちゃ混ぜです
  • 自分用に翻訳しています
@elfmimi
elfmimi / reset-usb-sbc.sh
Last active December 18, 2022 07:34
Reset Linux USB subsystem without rebooting
#!/bin/bash
# root privilege required
if cd /sys/bus/platform/drivers/ehci-platform >& /dev/null; then
for dev in *.usb; do
echo -n $dev > unbind
echo -n $dev > bind
done
fi
@niklaskorz
niklaskorz / goroutines.go
Last active May 5, 2023 09:51
Threading Performance Comparison
package main
import (
"fmt"
"os"
"runtime"
"sync"
"time"
)
@sago35
sago35 / rtl8270dn.erpc
Created November 22, 2020 09:24
Wio Terminal RTL8720D eRPC IDL
// erpc_idl/rpc_system.erpc
@output_dir("erpc_shim")
@types_header("rpc_system_header.h")
program rpc
@group("system")
interface rpc_system {
package main
import (
"bytes"
"encoding/binary"
"io"
"io/ioutil"
)
// 手軽にnバイト読み込む関数を定義
@kujirahand
kujirahand / parser.go.y
Last active January 25, 2022 01:29
複数行の計算、および、変数代入の機能がある最小計算言語
%{
// プログラムのヘッダを指定
package main
import (
"os"
"fmt"
"strconv"
"bufio"
)
%}
#!/bin/bash
cd /sys/kernel/config/usb_gadget/
mkdir -p procon
cd procon
echo 0x057e > idVendor
echo 0x2009 > idProduct
echo 0x0200 > bcdDevice
echo 0x0200 > bcdUSB
echo 0x00 > bDeviceClass
@itchyny
itchyny / go114-regression.md
Last active April 8, 2020 23:23
Go 1.14の主なregression

Go 1.14 の主なregressionです。1.14.1で修正されると思われます。

@dreampuf
dreampuf / main.go
Last active December 28, 2023 06:46
Golang SSHAgent Usage Example
package main
/*
Golang SSHAgent Usage
https://orebibou.com/2019/03/golang%E3%81%A7ssh-agent%E3%81%8B%E3%82%89%E9%8D%B5%E3%82%92%E5%8F%96%E5%BE%97%E3%81%97%E3%81%A6ssh%E6%8E%A5%E7%B6%9A%E3%81%99%E3%82%8B/
*/
import (
"fmt"
"golang.org/x/crypto/ssh"