Skip to content

Instantly share code, notes, and snippets.

C6B0240DE0000000000000000000000000000000000000000000000070208FC
53B0240DE00000000000000000000000000000000000000000000000BADAD24
9AB0240DE00000000000000000000000000000000000000000000000C64EAD0
C6B0240DE00000000000000000000000000000000000000000000001354A094
53B0240DE000000000000000000000000000000000000000000000015D05178
9AB0240DE0000000000000000000000000000000000000000000000183242B8
C6B2E40DE00000000000000000000000000000000000000000000001F9903D0
9AB0240DE000000000000000000000000000000000000000000000022D089EC
C6B0240DE000000000000000000000000000000000000000000000025840C18
53B0240DE0000000000000000000000000000000000000000000000292BA9C0
<?xml version="1.0" encoding="UTF-8"?>
<NmtShosaiResponse>
<responseHeader>
<rtnCd>0</rtnCd>
<rtnDatetime>2023-08-31T23:17:43.101+09:00</rtnDatetime>
</responseHeader>
<NmtShosaiInput>
<okjNo>397516262231</okjNo>
<terminalId>2c67d1c94bf76df3c1637e50af0770cdb021e3f139Nt7nTH</terminalId>
<terminalType>01</terminalType>
@halka
halka / terminal.sh
Last active May 15, 2023 14:10
Post from MacOS Terminal to Bluesky
# require install `coreutils`
# run command from terminal `brew install coreutils`
# usage
# chmod +x ./terminal.sh
# ./terminal.sh Hello!!!!!!!!!!!!!!!!
HANDLE='YOUR_HANDLE'
DID_URL="https://bsky.social/xrpc/com.atproto.identity.resolveHandle"
export DID=$(curl -G -s \
--data-urlencode "handle=$HANDLE" \
@halka
halka / hello_bs_from_mac.sh
Last active May 3, 2023 11:14
Hello Bluesky From MacOS
#!/bin/bash
# Original: https://gist.github.com/pojntfx/72403066a96593c1ba8fd5df2b531f2d
# This script resolves a DID, retrieves an API key, fetches a user's feed,
# and posts a "Hello, world" message to the user's feed.
# INSTALL coreutils for using gdate. MacOS's `date` is not support nano seconds as `%3N`
# brew install coreutils
# Resolve DID for handle
HANDLE='your_handle_name'
DID_URL="https://bsky.social/xrpc/com.atproto.identity.resolveHandle"
// header
//gray
<svg viewBox="0 0 22 22" aria-label="Verified account" role="img" class="r-4qtqp9 r-yyyyoo r-1xvli5t r-f9ja8p r-og9te1 r-bnwqim r-1plcrui r-lrvibr" data-testid="icon-verified"><g><path clip-rule="evenodd" d="M12.05 2.056c-.568-.608-1.532-.608-2.1 0l-1.393 1.49c-.284.303-.685.47-1.1.455L5.42 3.932c-.832-.028-1.514.654-1.486 1.486l.069 2.039c.014.415-.152.816-.456 1.1l-1.49 1.392c-.608.568-.608 1.533 0 2.101l1.49 1.393c.304.284.47.684.456 1.1l-.07 2.038c-.027.832.655 1.514 1.487 1.486l2.038-.069c.415-.014.816.152 1.1.455l1.392 1.49c.569.609 1.533.609 2.102 0l1.393-1.49c.283-.303.684-.47 1.099-.455l2.038.069c.832.028 1.515-.654 1.486-1.486L18 14.542c-.015-.415.152-.815.455-1.099l1.49-1.393c.608-.568.608-1.533 0-2.101l-1.49-1.393c-.303-.283-.47-.684-.455-1.1l.068-2.038c.029-.832-.654-1.514-1.486-1.486l-2.038.07c-.415.013-.816-.153-1.1-.456zm-5.817 9.367l3.429 3.428 5.683-6.206-1.347-1.247-4.4 4.795-2.072-2.072z" fill="#829aab" fill-rule="evenodd"></path></g></svg>
//gold
<svg viewBox="0 0 22 22"

Keybase proof

I hereby claim:

  • I am halka on github.
  • I am halka_one (https://keybase.io/halka_one) on keybase.
  • I have a public key ASC0MOJidmTbMuPkIxd9XEhTsEaRBDFuOFkkGPp-uTXQTgo

To claim this, I am signing this object:

@halka
halka / cat-m-ngss.py
Created December 18, 2021 16:22
Location(GNSS) by CAT-M Module(U128)
import machine
import re
import time
from m5stack import *
from m5ui import *
from uiflow import *
lcd.setRotation(3)
setScreenColor(0x000000)
lcd.font(lcd.FONT_Default)
@halka
halka / awb_bookmarklet.js
Created December 14, 2021 07:45
Search AWB
data:text/html,<script>var awb = prompt('Input AWB'); awb.replace('-',''); location.href='https://rapidtrack.trackload.com/cgi-bin/rapidtrk.cgi?MAWB='+awb;</script>
from m5stack import *
from m5ui import *
from uiflow import *
import wifiCfg
import urequests
import time
import unit
import ujson
setScreenColor(0x000000)
@halka
halka / fuzzbuzz.php
Created February 6, 2020 06:46
fizzbuzz
<?
for($i = 1; $i<=100; $i++){
if($i % 15 === 0 ) echo "FizzBuzz";
elseif($i % 3 === 0) echo "Fizz";
elseif($i % 5 === 0) echo "Buzz";
else echo $i;
}