Skip to content

Instantly share code, notes, and snippets.

View toku-sa-n's full-sized avatar
🈳

Hiroki Tokunaga toku-sa-n

🈳
View GitHub Profile
@toku-sa-n
toku-sa-n / main.py
Last active December 30, 2022 02:11
A Krita script to lock all leaf layers
from krita import Krita
def lock_leaves(node):
children = node.childNodes()
if children:
node.setLocked(False)
for child in children:
lock_leaves(child)

Keybase proof

I hereby claim:

  • I am toku-sa-n on github.
  • I am toku_san (https://keybase.io/toku_san) on keybase.
  • I have a public key ASDSN4WZK8-VmXoUsZV_vlxuDlK351rznFZmafLHUvwMQAo

To claim this, I am signing this object:

@toku-sa-n
toku-sa-n / appMain.hs
Created November 16, 2021 05:04
app/Main.hs
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE TemplateHaskell #-}
module Main
( main
) where
import qualified Codec.Picture as Pic
import Codec.Picture.Extra (crop)
@toku-sa-n
toku-sa-n / stdin
Last active July 27, 2021 12:21
WINEDEBUG=warn+all WINEARCH=win32 WINEPREFIX=~/.wine32 ./wine ~/game/Zakuzakuactors.Ver1.34/Game.exe 2>log
002c:warn:virtual:free_ranges_insert_view range 0x220000 - 0x240000 is already mapped
002c:err:heap:HEAP_GetPtr Invalid heap 00000000!
002c:warn:file:NtCreateFile L"\\??\\C:\\windows\\wininit.ini" not found (c0000034)
002c:warn:file:CreateFileW Unable to create file L"C:\\windows\\wininit.ini" (status c0000034)
002c:warn:profile:PROFILE_Open profile file L"C:\\windows\\wininit.ini" not found
002c:warn:file:NtCreateFile L"\\??\\C:\\windows\\system32\\dllcache\\" not found (c0000034)
0034:warn:virtual:free_ranges_insert_view range 0x220000 - 0x240000 is already mapped
0034:err:heap:HEAP_GetPtr Invalid heap 00000000!
0034:warn:file:NtCreateFile L"\\??\\C:\\windows\\system32\\winemenubuilder.exe.manifest" not found (c0000034)
003c:warn:virtual:free_ranges_insert_view range 0x220000 - 0x240000 is already mapped
@toku-sa-n
toku-sa-n / main.md
Last active May 28, 2021 08:58
生ポインタのメモ

Rustの生ポインタ

参照規則

あるオブジェクトに対する,存在しうる参照は以下の通り.

  • 複数の不変参照
  • 唯一の可変参照

同じオブジェクトに対する不変参照と可変参照が同時に存在したり,複数の可変参照が同時に存在したりすることはあってはならない.

@toku-sa-n
toku-sa-n / stdin
Created November 5, 2020 07:42
stdin
23492@1604562004.358104:usb_port_claim bus 0, port 1
23492@1604562004.358131:usb_port_attach bus 0, port 1, devspeed full+high, portspeed full+high+super
23492@1604562004.358134:usb_xhci_port_link port 5, pls 7
23492@1604562004.358136:usb_xhci_port_notify port 5, bits 0x20000
23492@1604562004.407597:usb_xhci_reset === RESET ===
23492@1604562004.407613:usb_xhci_slot_disable slotid 1
23492@1604562004.407615:usb_xhci_slot_disable slotid 2
23492@1604562004.407616:usb_xhci_slot_disable slotid 3
23492@1604562004.407618:usb_xhci_slot_disable slotid 4
23492@1604562004.407619:usb_xhci_slot_disable slotid 5
@toku-sa-n
toku-sa-n / stdin
Created September 29, 2020 02:55
stdin
installing nightly-2020-09-29
testing...
RESULT: nightly-2020-09-29, ===> Yes
installing nightly-2020-09-27
testing...
RESULT: nightly-2020-09-27, ===> No
installing nightly-2020-09-29
testing...
@toku-sa-n
toku-sa-n / stdin
Created September 29, 2020 02:54
stdin
installing nightly-2020-09-29
testing...
RESULT: nightly-2020-09-29, ===> No
installing nightly-2020-09-29
testing...
RESULT: nightly-2020-09-29, ===> No
ERROR: the end of the range (nightly-2020-09-29) does not reproduce the regression
@toku-sa-n
toku-sa-n / stdin
Created September 24, 2020 03:12
stdin
checking nightly-2020-09-23 from the currently installed default nightly toolchain as the last failure
installing nightly-2020-09-23
testing...
RESULT: nightly-2020-09-23, ===> Yes
installing nightly-2020-09-21
testing...
RESULT: nightly-2020-09-21, ===> No
installing nightly-2020-09-23
@toku-sa-n
toku-sa-n / stdin
Created September 24, 2020 03:05
stdin
nightly manifest 2020-09-22: 32 B / 40 B [==========>--] 80.00 % 100.27 KB/s 0s nightly manifest 2020-09-22: 40 B / 40 B [===============] 100.00 % 119.28 KB/s nightly manifest 2020-09-23: 32 B / 40 B [===========>---] 80.00 % 3.99 MB/s 0s nightly manifest 2020-09-23: 40 B / 40 B [=================] 100.00 % 1.94 MB/s