Skip to content

Instantly share code, notes, and snippets.

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

sheepla sheepla

🐑
メェ〜
View GitHub Profile
@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),
@Comamoca
Comamoca / single-binary-languages.md
Last active May 13, 2024 11:53
シングルバイナリになる言語一覧
  • C

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

  • C++

  • C#

@thesamesam
thesamesam / xz-backdoor.md
Last active June 18, 2024 23:46
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

@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 "少々ここらでオーバライド";
}
@RyushiAok
RyushiAok / FsFizzBuzz.fsx
Created December 5, 2023 03:43
FsFizzBuzz.fsx
let (|Fizz|_|) n = if n % 3 = 0 then Some "Fizz" else None
let (|Buzz|_|) n = if n % 5 = 0 then Some "Buzz" else None
let (|FizzBuzz|_|) n =
if n % 15 = 0 then Some "FizzBuzz" else None
let fizzBuzz =
function
| FizzBuzz fizzbuzz -> fizzbuzz
| Fizz fizz -> fizz
@AWtnb
AWtnb / sushi-yunomi.ps1
Created November 12, 2023 03:21
寿司屋の湯呑に使えそうな魚偏の漢字を出力
0x9b5a..0x9ce4|% {[char]::ConvertFromUtf32($_)}
@RyushiAok
RyushiAok / markdown.fs
Created October 18, 2023 15:03
F# Markdown Builder
type Block =
| H1 of string
| H2 of string
| P of string
type Markdown = {
title: string
author: string
blocks: Block list
} with