Skip to content

Instantly share code, notes, and snippets.

View kazken3's full-sized avatar
🍙

Kentaro Kazuhama kazken3

🍙
View GitHub Profile
$ python3
Python 3.10.6 (main, Aug 30 2022, 05:11:14) [Clang 13.0.0 (clang-1300.0.29.30)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import antigravity
>>>
@kazken3
kazken3 / error.log
Created September 3, 2022 02:11
review 5.5.0 error
kazken@chisato:~/zapppaaan/vol13$ review-pdfmaker config.yml
⚠ WARN File credit.tex is not found.
⚠ WARN File backcover.tex is not found.
ℹ INFO compiling ota_one_jammy.tex
⚠ WARN thinkpadx13gen2a-zapppaaan.re: footnote ID anker is not referred.
⚠ WARN wf1000xm4.re: footnote ID other-codec is not referred.
ℹ INFO compiling thinkpadx13gen2a-zapppaaan.tex
ℹ INFO compiling 16TB-HDDx2.tex
ℹ INFO compiling wf1000xm4.tex
ℹ INFO compiling sonogo.tex
@kazken3
kazken3 / scratch.go
Created June 4, 2020 14:47
json by float
package main
import (
"encoding/json"
)
type Test struct {
Id string `json:"id"`
Specs []Spec `json:"spec"`
}
@kazken3
kazken3 / syslog
Created July 20, 2019 07:05
M5StickV syslog
Jul 20 16:01:48 vignette kernel: [29512.783371] usb 3-1: new full-speed USB device number 3 using xhci_hcd
Jul 20 16:01:49 vignette kernel: [29512.970225] usb 3-1: New USB device found, idVendor=0403, idProduct=6001
Jul 20 16:01:49 vignette kernel: [29512.970232] usb 3-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Jul 20 16:01:49 vignette kernel: [29512.970242] usb 3-1: Product: M5Stack Intf
Jul 20 16:01:49 vignette kernel: [29512.970247] usb 3-1: Manufacturer: Kongou Hikari
Jul 20 16:01:49 vignette kernel: [29512.970251] usb 3-1: SerialNumber: 81523A5C44
Jul 20 16:01:49 vignette kernel: [29512.972333] ftdi_sio 3-1:1.0: FTDI USB Serial Device converter detected
Jul 20 16:01:49 vignette kernel: [29512.972432] usb 3-1: Detected FT232BM
Jul 20 16:01:49 vignette kernel: [29512.977309] usb 3-1: FTDI USB Serial Device converter now attached to ttyUSB0
Jul 20 16:01:49 vignette mtp-probe: checking bus 3, device 3: "/sys/devices/pci0000:00/0000:00:1c.3/0000:05:00.0/usb3/3-1"
@kazken3
kazken3 / syslog
Created June 19, 2019 13:50
usb fan
Jun 19 22:47:18 vignette kernel: [ 282.727109] usb 3-1: new low-speed USB device number 6 using xhci_hcd
Jun 19 22:47:18 vignette kernel: [ 282.907862] usb 3-1: New USB device found, idVendor=0c45, idProduct=7160
Jun 19 22:47:18 vignette kernel: [ 282.907870] usb 3-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
Jun 19 22:47:18 vignette kernel: [ 282.907876] usb 3-1: Product: XY LED FAN
Jun 19 22:47:18 vignette kernel: [ 282.907880] usb 3-1: Manufacturer: XY-SUN
Jun 19 22:47:18 vignette kernel: [ 282.919122] input: XY-SUN XY LED FAN as /devices/pci0000:00/0000:00:1c.3/0000:05:00.0/usb3/3-1/3-1:1.0/0003:0C45:7160.0005/input/input17
Jun 19 22:47:18 vignette kernel: [ 282.919343] hid-generic 0003:0C45:7160.0005: input,hidraw0: USB HID v1.00 Device [XY-SUN XY LED FAN ] on usb-0000:05:00.0-1/input0
Jun 19 22:47:18 vignette mtp-probe: checking bus 3, device 6: "/sys/devices/pci0000:00/0000:00:1c.3/0000:05:00.0/usb3/3-1"
Jun 19 22:47:18 vignette mtp-probe: bus: 3, device: 6 was not an MTP dev
@kazken3
kazken3 / 0_solokeys_session_lock.md
Last active May 7, 2019 13:17 — forked from jhass/1-Yubikey_session_lock.md
Lock (Gnome) session when removeing solokeys key

Setup

  1. Make rescue method for solokeys broken.(Recommend)
  2. Copy 70-solokeys-access.rules to /etc/udev/rules.d.
  3. Reload udev: sudo udevadm control --reload-rules && sudo udevadm trigger
  4. Exec sudo apt install pamu2fcfg libpam-u2f
  5. Exec mkdir ~/.config/Yubico && pamu2fcfg > ~/.config/Yubico/u2f_keys then push solokeys.
  6. Add pam method /etc/pam.d/sudo , /etc/pam.d/gdm-password and so on.
  7. Copy gnome_lock_all_sessions to /usr/local/bin.
  8. Mark gnome_lock_all_sessions as executable: chmod +x /usr/local/bin/gnome_lock_all_sessions
$ work/samples/bin/x86_64/linux/release/deviceQuery
work/samples/bin/x86_64/linux/release/deviceQuery Starting...
CUDA Device Query (Runtime API) version (CUDART static linking)
Detected 1 CUDA Capable device(s)
Device 0: "GeForce RTX 2060"
CUDA Driver Version / Runtime Version 10.1 / 10.1
CUDA Capability Major/Minor version number: 7.5
#!/bin/sh
OUTPNG=`date +%s`.png
ffmpeg -ss 70 -i $1 $OUTPNG >/dev/null 2>&1
./pushbullet-bash/pushbullet push "Sony SO-02G" file $OUTPNG >/dev/null 2>&1
rm $OUTPNG
exit
[
{
"types": [
"GR"
],
"reserve_titles": [
"水曜どうでしょう"
]
},
{
なごり牛
注文を待つ君の横で
僕は時計を気にしてる
季節はずれの雪が降ってる
「東京で食べる牛めしはこれが最後ね」と
さみしそうに 君がつぶやく
つゆだくすぎた どんぶりをみて
今 並が来て 君は玉子を溶いた
去年よりずっと 七味をかけた