Skip to content

Instantly share code, notes, and snippets.

View umjammer's full-sized avatar

Naohide Sano umjammer

View GitHub Profile
@umjammer
umjammer / Google App Script foreach.md
Last active November 23, 2022 19:33
[Google App Script] foreach

Google App Script foreach

Spread Sheet

function foreachSampleForSpreadSheet() {
  var sheet = SpreadsheetApp.getActiveSheet();
  var data = sheet.getDataRange().getValues();
  data.forEach(function (row, y) {
 row.forEach (function (cell, x) {
@umjammer
umjammer / epub convert horizontal to vertical.md
Last active October 20, 2023 20:09
[epub] convert horizontal to vertical

[epub] convert horizontal to vertical

edit .opf file

e.g. javanese novels

<spine page-progression-direction="rtl">

Rescue or Forensic Mac APFS Fusion Drive

USE AUTOPSY !!!

NO OTHER CHOICE

IT'S FREE AND OPEN SOURCE

install

@umjammer
umjammer / logging-hell.md
Last active March 20, 2024 20:23
[java] logging hell

Logging Hell

types

  • thin wrapper ... apache-commons-logging, slf4j
  • implementation ... log4j, logback, jul, ...

πŸ§… thin wrapper

apache-commons-logging 1.2

@umjammer
umjammer / how to move project.iml.md
Last active November 15, 2022 10:29
[intellij] how to move project.iml
@umjammer
umjammer / minecraft.json
Created April 26, 2022 09:14
[Joystick Mapper] settings for minecraft
{
"name": "Minecraft",
"tag": "Game",
"joysticks": [
{
"tag": "SIXAXIS #2",
"binds": {
"btn 0": [
"key 38"
],
@umjammer
umjammer / jcifs-ng 2.1.7 exception.md
Last active September 10, 2023 16:47
[jcifs-ng] exception
java.io.IOException: Can't assign requested address (sendto failed)
	at java.net.PlainDatagramSocketImpl.send(Native Method)
	at java.net.DatagramSocket.send(DatagramSocket.java:693)
	at jcifs.netbios.NameServiceClientImpl.send(NameServiceClientImpl.java:442)
	at jcifs.netbios.NameServiceClientImpl.getAllByName(NameServiceClientImpl.java:512)
	at jcifs.netbios.NameServiceClientImpl.getNbtAllByName(NameServiceClientImpl.java:745)
	at jcifs.netbios.NameServiceClientImpl.getNbtAllByName(NameServiceClientImpl.java:55)
	at jcifs.netbios.NameServiceClientImpl$QueryThread.run(NameServiceClientImpl.java:844)
java.io.IOException: Can't assign requested address (sendto failed)
@umjammer
umjammer / np2kai.md
Last active March 27, 2023 01:02
[emu] build np2kai sdl2 on mac

build np2kai w/ sdl2 on mac 2022-03-16

$ brew install cmake ninja sdl2 sdl2_mixer sdl2_ttf libusb     # ninja is needed ???
$ git clone https://github.com/AZO234/NP2kai.git
$ cd NP2kai
$ mkdir build
$ vi ../CMakeLists.txt
$ cmake .. -D BUILD_SDL=ON                                     # fails, but try again
 :

How to enable spotlight indexing for Google Drive again

Situation

  • after Google Drive.app update version 52.0.6.0
  • search from finder doesn't work
  • mdutil -i on /Volumes/GoogleDrive never work
    • returns Indexing and searching disabled.
  • https://apple.stackexchange.com/a/424445
    • change_gdrive_smb_port.py seems not work for version 52.0.6.0
@umjammer
umjammer / hole_wo_router_env.md
Last active October 9, 2021 16:22
TCP Hole w/o router environment

Hole w/o router env.

from Firewall Machine

$ ssh target_host -L hole_port:target_host:target_port -g