Skip to content

Instantly share code, notes, and snippets.

View zlfn's full-sized avatar
🏘️
I want to go home

Kiroo (Chanung) zlfn

🏘️
I want to go home
View GitHub Profile
@zlfn
zlfn / sol_kms.py
Created February 5, 2025 06:13
Google KMS Solana Signing
from cryptography.hazmat.backends import default_backend
from cryptography.hazmat.primitives import serialization
from google.cloud import kms
from solana.rpc.api import Client
from solders.system_program import TransferParams, transfer
from solders.signature import Signature
from solders.message import Message
from solders.transaction import Transaction
from solders.pubkey import Pubkey
@zlfn
zlfn / eth_kms.py
Created February 5, 2025 01:43
Google KMS EVM Signing
import base64
import sha3
import asn1
from cryptography.hazmat.primitives.asymmetric import ec
from eth_typing import ChecksumAddress
from eth_account._utils.legacy_transactions import (
serializable_unsigned_transaction_from_dict,
encode_transaction,
)
;--------------------------------------------------------
; File Created by SDCC : free open source ISO C Compiler
; Version 4.4.0 #14620 (Linux)
;--------------------------------------------------------
.module out
.optsdcc -msm83
;--------------------------------------------------------
; Public variables in this module
;--------------------------------------------------------
;--------------------------------------------------------
; File Created by SDCC : free open source ISO C Compiler
; Version 4.4.0 #14620 (Linux)
;--------------------------------------------------------
.module out
.optsdcc -msm83
;--------------------------------------------------------
; Public variables in this module
;--------------------------------------------------------
;--------------------------------------------------------
; File Created by SDCC : free open source ISO C Compiler
; Version 4.4.0 #14620 (Linux)
;--------------------------------------------------------
.module out
.optsdcc -msm83
;--------------------------------------------------------
; Public variables in this module
;--------------------------------------------------------
@zlfn
zlfn / rand-text.c
Created September 16, 2024 17:52
C output of rand-text
/* Provide Declarations */
#include <stdint.h>
#ifndef __cplusplus
typedef unsigned char bool;
#endif
#ifdef _MSC_VER
#define __noreturn __declspec(noreturn)
#else
#define __noreturn __attribute__((noreturn))
@zlfn
zlfn / filltest.c
Last active September 16, 2024 17:53
C output of filltest
/* Provide Declarations */
#include <stdint.h>
#ifndef __cplusplus
typedef unsigned char bool;
#endif
#ifdef _MSC_VER
#define __noreturn __declspec(noreturn)
#else
#define __noreturn __attribute__((noreturn))
@zlfn
zlfn / warp.js
Last active February 5, 2025 06:32
Gather Town warp script
function getPlayer(name) {
for (player in game.players) {
if (game.players[player].name == name) {
return game.players[player]
}
}
}
function teleport (dx, dy) {
x = game.getMyPlayer().x
@zlfn
zlfn / Blog.cpp
Last active October 30, 2021 15:37
Hello, Blog!
#include <stdio.h>
int main()
{
printf("Hello, Blog!\n");
}
🌞 Morning 14 commits β–ˆβ–Šβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ 8.9%
πŸŒ† Daytime 39 commits β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ 24.8%
πŸŒƒ Evening 69 commits β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ 43.9%
πŸŒ™ Night 35 commits β–ˆβ–ˆβ–ˆβ–ˆβ–‹β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ 22.3%