Skip to content

Instantly share code, notes, and snippets.

@sparkstar
sparkstar / hhkb.json
Last active June 23, 2025 07:09
DZ60 as a HHKB, firmware mode: press ESC with connect to PC
{
"version": 1,
"notes": "",
"documentation": "\"This file is a QMK Configurator export. You can import this at <https://config.qmk.fm>. It can also be used directly with QMK's source code.\n\nTo setup your QMK environment check out the tutorial: <https://docs.qmk.fm/#/newbs>\n\nYou can convert this file to a keymap.c using this command: `qmk json2c {keymap}`\n\nYou can compile this keymap using this command: `qmk compile {keymap}`\"\n",
"keyboard": "dz60",
"keymap": "hhkb",
"layout": "LAYOUT_60_hhkb",
"layers": [
[
"KC_ESC",
@sparkstar
sparkstar / filter
Last active June 8, 2025 10:55
Block shorts on video site
[Adblock Plus 2.0]
! 20250608
youtube.com##ytd-rich-section-renderer
youtube.com##ytd-thumbnail-overlay-toggle-button-renderer
youtube.com##ytd-feed-nudge-renderer
youtube.com##ytd-reel-shelf-renderer
@sparkstar
sparkstar / my-custom.json
Created May 31, 2025 08:04
my custom keyboard dz60 setting
{
"version": 1,
"notes": "",
"documentation": "\"This file is a QMK Configurator export. You can import this at <https://config.qmk.fm>. It can also be used directly with QMK's source code.\n\nTo setup your QMK environment check out the tutorial: <https://docs.qmk.fm/#/newbs>\n\nYou can convert this file to a keymap.c using this command: `qmk json2c {keymap}`\n\nYou can compile this keymap using this command: `qmk compile {keymap}`\"\n",
"keyboard": "dz60",
"keymap": "my-custom",
"layout": "LAYOUT_60_hhkb",
"layers": [
[
"KC_ESC",
@sparkstar
sparkstar / .config
Last active October 21, 2023 08:54
jammy-stable-v5.15.129
#
# Automatically generated file; DO NOT EDIT.
# Linux/arm 5.15.129 Kernel Configuration
#
CONFIG_CC_VERSION_TEXT="arm-linux-gnueabihf-gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
CONFIG_CC_IS_GCC=y
CONFIG_GCC_VERSION=110400
CONFIG_CLANG_VERSION=0
CONFIG_AS_IS_GNU=y
CONFIG_AS_VERSION=23800
@sparkstar
sparkstar / .config
Last active November 9, 2022 10:56
[odroid-u2] jammy kernel flag
# kernel jammy-v5.15.74
# -----------------------------------------------------------------------------
# ./check-config.sh
# warning: /proc/config.gz does not exist, searching other paths for kernel config ...
# info: reading kernel config from ./.config ...
#
# Generally Necessary:
# - cgroup hierarchy: cgroupv2
# Controllers:
# - cpu: available
@sparkstar
sparkstar / latest.sh
Created January 21, 2019 09:36
get latest releases version(tag) from github repository
#!/bin/sh
# get latest releases version(tag) from github repository
# $ ./latest.sh neovim/neovim
# v0.3.4
# $ ./latest.sh tus/tusd
# 0.11.0
curl --silent "https://api.github.com/repos/$1/releases/latest" | grep "tag_name" | sed -E 's/.*\:\s\"(.*)\",*/\1/'
@sparkstar
sparkstar / python_basic_script.py
Created July 25, 2014 18:01
basic template of python script from 'How to Write "Pythonic" Code'
#!/usr/bin/env python
# examples/script-template.py
def main(args):
if not args:
print "Usage: foo ARG1 [ARG2...]"
return 2
return 0
@sparkstar
sparkstar / random_image_generator.py
Last active January 16, 2023 19:19
[python] random image generator
"""
20180828 code fixed
$ pip freeze
numpy==1.15.1
Pillow==5.2.0
pkg-resources==0.0.0
"""