Skip to content

Instantly share code, notes, and snippets.

View ybbond's full-sized avatar
🎵
The Trees and The Wild - Zaman, zaman

Yohanes Bandung Bondowoso ybbond

🎵
The Trees and The Wild - Zaman, zaman
View GitHub Profile
@ybbond
ybbond / mutt_mbsync_multipleaccounts.md
Created April 28, 2020 21:30 — forked from chandraratnam/mutt_mbsync_multipleaccounts.md
Mutt + isync mbsync + gmail + multiple accounts.

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]

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 / .vimrc
Last active July 30, 2020 06:54
This is the very minimal Vim configuration that makes me more productive than vanilla Vim. I usually use this on server.
syntax enable
syntax on
filetype plugin indent on
set number
set relativenumber
set tabstop=2
set softtabstop=2
set shiftwidth=2
@ybbond
ybbond / reader-oled.js
Last active April 6, 2021 14:04
Dark Mode Reader for OLED, Insight Browser
/**
* 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 / capslock_to_hyper_or_esc_lazy.json
Created July 26, 2021 06:49
Complex modification for Karabiner Elements. Lazy means: Only send modifier Hyper Keys when other key pressed together
{
"title": "CapsLock to Escape or Hyper",
"rules": [
{
"description": "CapsLock to Escape or Hyper",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "caps_lock",
@ybbond
ybbond / hjkl_navigation.json
Last active July 26, 2021 06:50
Complex modification for Karabiner Elements. H to →, J to ↓, K to ↑, L to →
{
"title": "HJKL to Arrow Navigation",
"rules": [
{
"description": "HJKL to Arrow Navigation",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "h",
@ybbond
ybbond / analysis_options.yaml
Created July 27, 2021 08:03
For Flutter, to give more information about 'recommended approach'
# 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
@ybbond
ybbond / Trigger Safari PiP.applescript
Last active September 11, 2022 02:08
This will trigger Safari.app Picture in Picture (PiP) without the need to "Allow JavaScript from Apple Events"
--------------------------------------------------------------------------------
# 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 August 21, 2023 01:07
This will trigger Safari.app mute or unmute without the need to "Allow JavaScript from Apple Events"
--------------------------------------------------------------------------------
# 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 / chbrt.m
Last active April 17, 2024 22:17
Change external monitor brightness and contrast programmatically via terminal
@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: