Skip to content

Instantly share code, notes, and snippets.

View takuan-osho's full-sized avatar
🏠
Working from home

SHIMIZU Taku takuan-osho

🏠
Working from home
View GitHub Profile
@voluntas
voluntas / zig_quic.md
Last active August 28, 2024 19:09
2022 年の夏休みに Zig で QUIC を実装してオープンソースとして公開するお手伝い

2022 年の夏休みに Zig で QUIC を実装してオープンソースとして公開するお手伝い

こちらの応募は終了しました、冬も募集予定です。

成果

@byt3bl33d3r
byt3bl33d3r / log4j_rce_check.py
Created December 10, 2021 06:02
Python script to detect if an HTTP server is potentially vulnerable to the log4j 0day RCE (https://www.lunasec.io/docs/blog/log4j-zero-day/)
#! /usr/bin/env python3
'''
Needs Requests (pip3 install requests)
Author: Marcello Salvati, Twitter: @byt3bl33d3r
License: DWTFUWANTWTL (Do What Ever the Fuck You Want With This License)
This should allow you to detect if something is potentially exploitable to the log4j 0day dropped on December 9th 2021.
@p4bl0-
p4bl0- / 00_readme.md
Last active January 2, 2025 09:03
A complete compiler for a simple language (in less than 150 LoC)

This project is a tiny compiler for a very simple language consisting of boolean expression.

The language has two constants: 1 for true and 0 for false, and 4 logic gates: ! (not), & (and), | (or), and ^ (xor).

It can also use parentheses to manage priorities.

Here is its grammar in BNF format:

expr ::= "0" | "1"

# Name: softdenchi_remove.py
#
# Usage: Drag game.exe onto softdenchi_remove.py.
# This will make a new exe in the same location as game.exe.
#
# Process: SoftDenchi is a DRM that requires you to run its parent program in
# the background before it will run the protected binary. The parent
# service behaves eerily similar to malware in that it is constantly
# running in the background, even when you aren't using applications
# protected by it. The parent service UCManSvc is somewhat intricate
@ics-ikeda
ics-ikeda / index.js
Created June 18, 2021 05:00
Immutable Array Operation
const arrA = [1, 2, 3, 4, 5];
const arrB = [6, 7, 8, 9, 10];
const arrDuplicated = [1, 2, 3, 3, 2, 2, 5];
const dataList = [
{id: 1, name: "Sapporo"},
{id: 2, name: "Tokyo"},
{id: 3, name: "Osaka"}
];
// ルール
@jeffdyke
jeffdyke / ssh_through_bastion_host.go
Last active July 6, 2024 04:40
Go - SSH Through Bastion Host
// I created this to attach to https://stackoverflow.com/questions/60046598/ssh-through-bastion-host
package main
import (
"flag"
"fmt"
"golang.org/x/crypto/ssh"
"golang.org/x/crypto/ssh/agent"
"log"
@ctrlcctrlv
ctrlcctrlv / rust-maintainer-perfectionism.md
Last active April 12, 2025 05:42
Rust maintainer perfectionism

Rust maintainer perfectionism, or, the tragedy of Alacritty

I did not submit this to Hacker News and did not intend that this post would have high circulation but have no real problem with it being there or with it having such. I have more recent comments below. This post is from January 2020 and predates the Modular Font Editor K (MFEK) project.

I have not worked on Rust projects in quite a while, and don't know if I ever will again. I feel many crate maintainers are way too perfectionist, for example, despite all the developer hours that went into this PR, it took the effort within years to be (halfway) merged.

There's always a reason not to merge, isn't there? It would be better done with a new nightly language feature, or the function signature should have a where clause, or the documentation is not perfect. There's always a new nit to pick in the world of Ru

@aodag
aodag / app.py
Last active August 16, 2019 15:12
from pyramid.config import Configurator
def hello(request):
return dict(message="Hello, world!")
def main(global_conf, **settings):
config = Configurator(settings=settings)
config.include("pyramid_jinja2")
@hassaku63
hassaku63 / keybindings.json
Created July 19, 2019 17:17
VSCode_move_focus_between_editor_and_terminal.json
// VSCodeで、エディタとターミナルを往復できるショートカットの定義
// Place your key bindings in this file to override the defaultsauto[]
[
{
"key": "ctrl+`",
"command": "workbench.action.focusActiveEditorGroup",
"when": "terminalFocus"
},
{
"key": "ctrl+`",
@1021ky
1021ky / Swagger Editorで生成されたコード.py
Created June 25, 2019 22:30
openBD APIの仕様をOpenAPIで書いたもの
# coding: utf-8
"""
openBD API
[openBDプロジェクト(カーリル・版元ドットコム)](https://openbd.jp)によって提供される書誌情報・書影を、だれでも自由に使える、高速なAPI. # noqa: E501
OpenAPI spec version: 1.0.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""