Skip to content

Instantly share code, notes, and snippets.

View john2x's full-sized avatar

John Louis Del Rosario john2x

View GitHub Profile
john2x /
Last active February 5, 2024 20:46
Mount a Fujifilm formatted SD Card on macOS 14.2 Sonoma


When you format your SDCard using your Fujifilm camera, it uses NTFS. Sometimes macOS can automatically mount the SDCard when inserted, but sometimes it doesn't.

This has been tested using the following devices:

  1. Fujifilm X-T3 on Ver.5.10 firmware
  2. macOS 14.2.1 Sonoma on M2 Max Macbook Pro
  3. SanDisk Extreme Pro 64GB

Keybase proof

I hereby claim:

  • I am john2x on github.
  • I am john2x ( on keybase.
  • I have a public key ASCY-Xaf7jXGFun16lwCT2cOacnua4JMadfA1rtR4r_tZgo

To claim this, I am signing this object:

john2x /
Last active January 20, 2023 03:18 — forked from nlamirault/gist:38cfc46682eaeb28709e
usage="usage: $(basename "$0") [-hn] ACCOUNT
Check an offlineimap account's mail directory for new messages and trigger notification
-h show this help text
ACCOUNT the offlineimap account name"
class Container(object):
def __init__(self, items):
self.items = items # items is a list or tuple
def __len__(self):
return len(self.items)
def __getitem__(self, i):
return self.items[i]
john2x /
Last active April 23, 2024 13:18
Clojure Destructuring Tutorial and Cheat Sheet

Clojure Destructuring Tutorial and Cheat Sheet

(Related blog post)

Simply put, destructuring in Clojure is a way extract values from a datastructure and bind them to symbols, without having to explicitly traverse the datstructure. It allows for elegant and concise Clojure code.

Vectors and Sequences

john2x / uwsgi-emperor
Last active May 19, 2016 23:41
uWSGI Emperor init script (Ubuntu 12.04)
# Provides: uwsgi-emperor
# Required-Start: $all
# Required-Stop: $all
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: starts the uwsgi emperor app server
# Description: starts uwsgi app server using start-stop-daemon


(prefix == Ctrl+f)



(vim movement keys)
prefix h

prefix j

john2x / flatui.vim
Last active December 21, 2015 16:59
" flatui.vim - Vim color scheme
" ----------------------------------------------------------
" Author: John Louis Del Rosario (
" Version: 0.1
" License: Creative Commons Attribution-NonCommercial
" 3.0 Unported License (see
" ----------------------------------------------------------
" Setup ----------------------------------------------------{{{
" Reset syntax highlighting
" Vim color file flatui2
" generated by VimTax
set background=light
hi clear
if exists("syntax_on")
syntax reset
set t_Co=256
let colors_name = "flatui2"