Skip to content

Instantly share code, notes, and snippets.

View sheepla's full-sized avatar
🐑
メェ〜

sheepla sheepla

🐑
メェ〜
View GitHub Profile
@asa1984
asa1984 / Rust最短攻略経路.md
Last active March 27, 2025 14:45
Rust最短攻略経路 / asa1984 Advent Calendar 2024 2日目

Rust最短攻略経路

「asa1984 Advent Calendar 2024」の2日目。

本稿の目的は、「Rustは難しい」という言説を打破し、The Rust Programming Language を前にして立ちすくむ人々の目を †本質情報† に向けさせることである。よって、本稿ではRust言語のより効率的な学習経路を提示する。

ところで、読者諸君からは「なんかエラそうなこと言ってるけど、筆者はどれくらいRustを使えるの?」という疑問が湧き上がっているかもしれない。そんな読者にはこれを見てほしい。





ㅤㅤカニ

@Comamoca
Comamoca / u149.sql
Last active June 19, 2024 21:57
U149メンバーのSQL Schema。SQLの試し書きやサンプルコードなどにどうぞ。公式サイトとPixiv百科事典の情報を元にしています。順次情報を増やしていく予定です。
create table idols
(
name text,
age integer,
height integer
);
INSERT INTO idols (name, age, height) VALUES
('橘ありす', 12, 141),
('櫻井桃華', 12, 145),
@teramako
teramako / Get-MemberDescription.ps1
Last active July 14, 2024 04:52
DLLライブラリ内のクラスメンバーやEnum値を列挙する。
<#
.SYNOPSIS
DLL 内の Class および Enum メンバーを列挙する
.DESCRIPTION
対象DLLを読み込み、Class や Enum メンバーと、
その属性(`System.ComponentModel.DescriptionAttribute`)値を列挙します。
.PARAMETER Path
対象DLLファイル
@Comamoca
Comamoca / single-binary-languages.md
Last active May 13, 2024 11:53
シングルバイナリになる言語一覧
  • C

    手続き型の汎用高水準言語。
    ライブラリを静的リンクすることでシングルバイナリを生成できる。

  • C++

  • C#

@thesamesam
thesamesam / xz-backdoor.md
Last active April 7, 2025 09:15
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.

Update: I've disabled comments as of 2025-01-26 to avoid everyone having notifications for something a year on if someone wants to suggest a correction. Folks are free to email to suggest corrections still, of course.

Background

@eggplants
eggplants / get_aria_cmd_dlsite.py
Created March 6, 2024 17:15
DLsiteの分割ダウンロードが遅いのでAPIをみてaria2で落とす情報を収集
import requests
N = 5
WORK_ID = "RJ..."
JWT = "..."
SID = "..."
session = requests.session()
session.cookies.set("jwt", JWT, domain=".dlsite.com")
session.cookies.set("__DLsite_SID", SID, domain=".dlsite.com")
@jkone27
jkone27 / fsharp-minimal-api.fsx
Last active March 7, 2024 12:26
F# aspnetcore minimal API working with OpenApi specs
#load "runtime-scripts/Microsoft.AspNetCore.App-latest-8.fsx"
// to gen the above run this script in the local folder
// https://raw.githubusercontent.com/TheAngryByrd/IcedTasks/master/generate-sdk-references.fsx
#r "nuget: Feliz.ViewEngine"
#r "nuget: Microsoft.AspNetCore.OpenApi"
#r "nuget: Swashbuckle.AspNetCore"
open Microsoft.AspNetCore
open Microsoft.AspNetCore.Builder
#r "nuget: Spectre.Console, 0.48.1-preview.0.28"
#r "nuget: FsSpectre, 0.4.6"
open Spectre.Console
open FsSpectre
let wa = "[#eb6ea6]わ[/]"
let nn = "[#c86fab]ん[/]"
let da = "[#5fbfb7]だ[/]"
let fu = "[#fdd000]ふ[/]"
fn main() {
let result = {
fn 半端な生命() -> &'static str {
return "半端な生命";
}
};
fn 半端な生命() -> &'static str {
return "少々ここらでオーバライド";
}
@Hayao0819
Hayao0819 / jirou.ts
Created December 20, 2023 08:06
ラーメン二郎の型定義
export type MenuAmount = "マシ" | "多め" | "マシマシ" | "かなり多め" | "普通" | "少なめ" | "無し";
export type IsGarlicAdded =
| "全てマシ"
| "全て普通"
| "全て少なめ"
| {
ニンニク?: MenuAmount;
ヤサイ?: MenuAmount;
アブラ?: MenuAmount;