Skip to content

Instantly share code, notes, and snippets.

Avatar
🎵
The Trees and The Wild - Zaman, zaman

Yohanes Bandung Bondowoso ybbond

🎵
The Trees and The Wild - Zaman, zaman
View GitHub Profile
@ybbond
ybbond / .vimrc
Last active Jul 30, 2020
This is the very minimal Vim configuration that makes me more productive than vanilla Vim. I usually use this on server.
View .vimrc
syntax enable
syntax on
filetype plugin indent on
set number
set relativenumber
set tabstop=2
set softtabstop=2
set shiftwidth=2
@ybbond
ybbond / mutt_mbsync_multipleaccounts.md
Created Apr 28, 2020 — forked from chandraratnam/mutt_mbsync_multipleaccounts.md
Mutt + isync mbsync + gmail + multiple accounts.
View mutt_mbsync_multipleaccounts.md

Mutt + isync multiple accounts Unfinished

This is the setup that I use for mutt, I have two google domain account (read as gmail) and an institution where I work and study account. This means I have two gmail accounts and one outlook 365 account that i want to sync and read via mutt.

I want to store all my email locally as I travel a lot and will be in countries without easy internet access. For this I use mbsync (iSync). As it can handle multiple account types easily and efficently.

The setup works this way

[Remote Mail Servers] <= mbsync => [Local Mail Folders]

View keybase.md

Keybase proof

I hereby claim:

  • I am ybbond on github.
  • I am ybbond (https://keybase.io/ybbond) on keybase.
  • I have a public key ASC_0o8GrbCU4gG-w5ejjtvgMfm_TEhp6PT5xIaf3BsIygo

To claim this, I am signing this object:

@ybbond
ybbond / reader-oled.js
Last active Apr 6, 2021
Dark Mode Reader for OLED, Insight Browser
View reader-oled.js
/**
* Minified by jsDelivr using Terser v5.3.5.
* Original file: /npm/darkreader@4.9.22/darkreader.js
*
* Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
*/
!function(e,r){"object"==typeof exports&&"undefined"!=typeof module?r(exports):"function"==typeof define&&define.amd?define(["exports"],r):r((e="undefined"!=typeof globalThis?globalThis:e||self).DarkReader={})}(this,(function(e){"use strict";
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
@ybbond
ybbond / hjkl_navigation.json
Last active Jul 26, 2021
Complex modification for Karabiner Elements. H to →, J to ↓, K to ↑, L to →
View hjkl_navigation.json
{
"title": "HJKL to Arrow Navigation",
"rules": [
{
"description": "HJKL to Arrow Navigation",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "h",
@ybbond
ybbond / chbrt.m
Last active Jul 8, 2021
Change external monitor brightness and contrast programmatically via terminal
View chbrt.m
@import Darwin;
@import Foundation;
@import IOKit;
/*******
This should change the brightness level of a single external display connected to an M1 MBP or MBA relative to the current setting using DDC/CI. Reportedly does not work on M1 Mini.
Credits to @tao-j and @alin23
Gists Sources:
@ybbond
ybbond / Trigger Safari PiP.applescript
Last active Jul 13, 2021
This will trigger Safari.app Picture in Picture (PiP) without the need to "Allow JavaScript from Apple Events"
View Trigger Safari PiP.applescript
--------------------------------------------------------------------------------
# Auth: Yohanes Bandung Bondowoso
# dCre: 2021-07-11 20:18
# dMod: 2021-07-13 20:01
# Appl: System Events, PIPAgent, Safari
# Task: Toggle Picture in Picture (PiP) on and off
# Libs: None
# Osax: None
# Aojc: True
# Tags: @Applescript, @Script, @System_Events, @PictureInPicture, @PiP, @Safari
@ybbond
ybbond / Toggle Safari Mute.applescript
Last active Jul 13, 2021
This will trigger Safari.app mute or unmute without the need to "Allow JavaScript from Apple Events"
View Toggle Safari Mute.applescript
--------------------------------------------------------------------------------
# Auth: Yohanes Bandung Bondowoso
# dCre: 2021-07-11 20:52
# dMod: 2021-07-13 19:57
# Appl: System Events, Safari
# Task: Toggle Picture in Picture (PiP) on and off
# Libs: None
# Osax: None
# Aojc: None
# Tags: @Applescript, @Script, @System_Events, @Safari, @Mute
@ybbond
ybbond / capslock_to_hyper_or_esc_lazy.json
Created Jul 26, 2021
Complex modification for Karabiner Elements. Lazy means: Only send modifier Hyper Keys when other key pressed together
View capslock_to_hyper_or_esc_lazy.json
{
"title": "CapsLock to Escape or Hyper",
"rules": [
{
"description": "CapsLock to Escape or Hyper",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "caps_lock",
@ybbond
ybbond / analysis_options.yaml
Created Jul 27, 2021
For Flutter, to give more information about 'recommended approach'
View analysis_options.yaml
# Uncomment this file to turn on linter warning
# Source: https://github.com/flutter/flutter/blob/master/analysis_options.yaml
# Specify analysis options.
#
# Until there are meta linter rules, each desired lint must be explicitly enabled.
# See: https://github.com/dart-lang/linter/issues/288
#
# For a list of lints, see: http://dart-lang.github.io/linter/lints/
# See the configuration guide for more