Skip to content

Instantly share code, notes, and snippets.

@kaushikgopal
kaushikgopal / US Plain Keyboard.keylayout
Created February 4, 2024 23:27
US Plain custom keyboard
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE keyboard SYSTEM "file://localhost/System/Library/DTDs/KeyboardLayout.dtd">
<keyboard group="0" id="5000" name="US Plain" maxout="1">
<layouts>
<layout first="0" last="0" modifiers="48" mapSet="312" />
</layouts>
<modifierMap id="48" defaultIndex="0">
<keyMapSelect mapIndex="0">
<modifier keys="" />
</keyMapSelect>
@kaushikgopal
kaushikgopal / awk0.sh
Last active September 9, 2022 00:30
awk explainer example
# General pattern
#
# awk '
# BEGIN { a1; a2; a3; }
# <pattern> { a1; a2; a3; }
# END { a4; a6; }
# ' <filename>
# space - default file separator
# $0 - entire line
@kaushikgopal
kaushikgopal / Fleet.terminal
Created December 3, 2021 23:22
A Terminal theme inspired by the new Jetbrains Editor Fleet https://www.jetbrains.com/fleet/
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>ANSIBlackColor</key>
<data>
YnBsaXN0MDDUAQIDBAUGBwpYJHZlcnNpb25ZJGFyY2hpdmVyVCR0b3BYJG9iamVjdHMS
AAGGoF8QD05TS2V5ZWRBcmNoaXZlctEICVRyb290gAGjCwwTVSRudWxs0w0ODxARElVO
U1JHQlxOU0NvbG9yU3BhY2VWJGNsYXNzTxAnMC4xNzY0NzA1ODgyIDAuMTk2MDc4NDMx
NCAwLjI1NDkwMTk2MDgAEAGAAtIUFRYXWiRjbGFzc25hbWVYJGNsYXNzZXNXTlNDb2xv
@kaushikgopal
kaushikgopal / nord.theme
Created October 28, 2021 16:36
Taskwarrior Theme that plays nicely with Nord
# Originally adapted from https://github.com/arcticicestudio/igloo
# License: MIT
# References:
# https://taskwarrior.org/docs/themes.html
# task-color(5)
# taskrc(5)
# rule.precedence.color=deleted,completed,active,keyword.,tag.,project.,overdue,scheduled,due.today,due,blocked,blocking,recurring,tagged,uda.
@kaushikgopal
kaushikgopal / markdown.json
Created September 14, 2021 23:44
VSCode Snippets for Hugo Henry Theme
{
"Hugo Image for Henry": {
"prefix": ["img", "h-img"],
"body": [
"{{< img src=\"/images/content/${1:xxx.png}\"",
" ${3:class=${2|\"full-bleed\",\"callout\"|}}",
" ${5:align=${4|\"center\",\"left\",\"right\"|}}",
" ${7:alt=\"${6:show txt if img missing}\"} ",
" ${9:caption=\"${8:caption for image w/o link}\"} ",
" ${12:attrlink=\"${10:https://wiki/images}\"",
@kaushikgopal
kaushikgopal / private-build-plans.toml
Last active August 10, 2023 19:05
Iosevka (KG's customization for Iosevka) see https://blog.jkl.gg/build-iosevka-font-mac-os/
[buildPlans.kg] # <kg> is your plan name
family = "Iosevka KG Terminal" # Font menu family name
design = [
"cv08", "cv11", "cv19", "cv43", "cv49", "cv55", "cv62", "cv92",
# `g`, `l`, `y`, `G`, `Q`, `*`, `$` and `%`
"no-ligation"
] # Customize styles
hintParams = ["-a", "sss"] # Optional custom parameters for ttfautohint
@kaushikgopal
kaushikgopal / karabiner.edn
Last active October 13, 2023 21:15
My source Karabiner file in Goku's edn format - Now lives @ https://github.com/kaushikgopal/dotfiles/blob/master/.karabiner.edn
;; File has moved over to https://github.com/kaushikgopal/dotfiles/blob/master/.karabiner.edn
;; Feel free to raise github issues in that repo, if you have questions/comments/edits
@kaushikgopal
kaushikgopal / karabiner.json
Last active January 11, 2021 17:40
Karabiner.json generated using Goku. For source edn file see https://gist.github.com/kaushikgopal/ff7a92bbc887e59699c804b59074a126
{
"global" : {
"check_for_updates_on_startup" : true,
"show_in_menu_bar" : true,
"show_profile_name_in_menu_bar" : false
},
"profiles" : [ {
"complex_modifications" : {
"parameters" : {
"basic.simultaneous_threshold_milliseconds" : 50,
@kaushikgopal
kaushikgopal / dependencies.gradle
Last active April 20, 2019 01:10
Dependencies Gradle - think of this is as the Android developer's Gemfile
/**
* Shared file between builds so that they can all use the same dependencies and
* maven repositories.
**/
ext.deps = [:]
def versions = [:]
versions.android_gradle_plugin = '3.3.2'
versions.min_sdk = 21
versions.target_sdk = 28
@kaushikgopal
kaushikgopal / morning.fish
Created November 3, 2018 15:39
My morning ritual command. I use fishshell (previously https://gist.github.com/kaushikgopal/0a0397669fd00f96249b)
function morning
# homebrew
brew update
brew upgrade
brew outdated
brew cleanup
# sdkman
echo "Y" | sdk update