Skip to content

Instantly share code, notes, and snippets.

@kaushikgopal
kaushikgopal / awk0.sh
Last active Sep 9, 2022
awk explainer example
View awk0.sh
# 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 Dec 3, 2021
A Terminal theme inspired by the new Jetbrains Editor Fleet https://www.jetbrains.com/fleet/
View Fleet.terminal
<?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 Oct 28, 2021
Taskwarrior Theme that plays nicely with Nord
View nord.theme
# 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 Sep 14, 2021
VSCode Snippets for Hugo Henry Theme
View markdown.json
{
"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}\"",
View private-build-plans.toml
[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 Oct 31, 2022
My source Karabiner file in Goku's edn format
View karabiner.edn
{
;; :!Ca is keycode :a and prefix a with !C
;; C | left_command
;; T | left_control
;; O | left_option
;; S | left_shift
;; F | fn
;; Q | right_command
;; W | right_control
@kaushikgopal
kaushikgopal / karabiner.json
Last active Jan 11, 2021
Karabiner.json generated using Goku. For source edn file see https://gist.github.com/kaushikgopal/ff7a92bbc887e59699c804b59074a126
View karabiner.json
{
"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 Apr 20, 2019
Dependencies Gradle - think of this is as the Android developer's Gemfile
View dependencies.gradle
/**
* 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
View morning.fish
function morning
# homebrew
brew update
brew upgrade
brew outdated
brew cleanup
# sdkman
echo "Y" | sdk update
View keybase.md

Keybase proof

I hereby claim:

  • I am kaushikgopal on github.
  • I am kaushikgopal (https://keybase.io/kaushikgopal) on keybase.
  • I have a public key ASDR8pa7M7GjmOJwED8ae0Cmr7Uyuk13EJDW0fs7kG8TlQo

To claim this, I am signing this object: