I hereby claim:
- I am gnh1201 on github.
- I am gnh1201 (https://keybase.io/gnh1201) on keybase.
- I have a public key ASC_O7oQ1xDbfCLM5dFB8KtkNr4Kysgd_6hCwqoEOGpkAgo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
<?php | |
// Super-simple JSON-RPC 2.0 framework for PHP | |
// MIT License | |
// Namhyeon Go <[email protected]> | |
// created: 2024-03-22 | |
// updated: 2024-03-25 | |
function jsonrpc2_encode($method, $params, $id = '') { | |
$data = array( | |
"jsonrpc" => "2.0", |
#!/usr/bin/env python3 | |
# | |
# hello.py | |
# serverless translation service gateway | |
# | |
# @author: Namhyeon Go <[email protected]> | |
# @created_on: 2024-03-15 | |
# @updated_on: 2024-03-19 | |
# |
/** | |
* Welcome to Cloudflare Workers! This is your first worker. | |
* | |
* - Run "npm run dev" in your terminal to start a development server | |
* - Open a browser tab at http://localhost:8787/ to see your worker in action | |
* - Run "npm run deploy" to publish your worker | |
* | |
* Learn more at https://developers.cloudflare.com/workers/ | |
*/ |
# Namhyeon Go <[email protected]> | |
# 2023-10-04 | |
import re | |
# Text to search (Example text using PowerShell format strings) | |
text = """ | |
&("{0}{1}{2}" -f 'Set','-Var','iable') | |
&("{0} {1} {2}" -f 'Set','-Var','iable') | |
&("This is a test {0}" -f 'arg1') |
Sep 9 20:44:08 gosomi bundle[782892]: [26a0d58f-e22c-4219-9dcd-6a04f953ced0] method=POST path=/api/v1/statuses/111036983556043247/translate format=html controller=Api::V1::Statuses::TranslationsController action=create status=500 error='NoMethodError: undefined method `model_name' for Request:Class | |
Sep 9 20:44:08 gosomi bundle[782892]: [26a0d58f-e22c-4219-9dcd-6a04f953ced0] | |
Sep 9 20:44:08 gosomi bundle[782892]: [26a0d58f-e22c-4219-9dcd-6a04f953ced0] NoMethodError (undefined method `model_name' for Request:Class | |
Sep 9 20:44:08 gosomi bundle[782892]: [26a0d58f-e22c-4219-9dcd-6a04f953ced0] | |
Sep 9 20:44:08 gosomi bundle[782892]: [26a0d58f-e22c-4219-9dcd-6a04f953ced0] app/controllers/api/v1/statuses/translations_controller.rb:14:in `create' | |
Sep 9 20:44:08 gosomi bundle[782892]: [26a0d58f-e22c-4219-9dcd-6a04f953ced0] app/controllers/concerns/localized.rb:11:in `set_locale' | |
Sep 9 20:44:08 gosomi bundle[782892]: [26a0d58f-e22c-4219-9dcd-6a04f953ced0] lib/mastodon/rack_middleware.rb:9:in `call' |
IPFS (here, referring to go-ipfs
or kubo
) already supports NAT environments, but there is a lack of documentation explaining this, leading to difficulties in configuration for many users.
Below is an configuration example for supporting NAT environments in IPFS.
{
"Addresses": {
"API": "/ip4/0.0.0.0/tcp/5001",
Let's build a remote video transcoder (FFmpeg) for Mastodon!
This post may be outdated. Please check https://github.com/gnh1201/topic-activitypub/blob/main/ffmpeg.md
Whenever there were incidents or similar events on X (formerly, Twitter), such as on July 1st, the Sidekiq queue in Mastodon would expand, resulting in latency exceeding 10 hours. However, no matter how many photos or videos were being exchanged, it seemed unreasonable in a network where text communication was the primary focus. Eventually, when I disabled all multimedia processing-related features, the latency dropped to zero.
INTERFACE=venet0 | |
NODE_ID=1 | |
HTTP_PORT=2001 | |
RAFT_PORT=2002 | |
JOIN= |
<?php | |
// Extract all environment data from PHP runtime | |
// Go Namhyeon <[email protected]> | |
echo "Extracting...<br/><br/>"; | |
$extracted_data = array(); | |
// Extracting all defined functions | |
echo "Extracting all defined functions...<br/><br/>"; |