Skip to content

Instantly share code, notes, and snippets.

Avatar
🗿

Chinmay Dalal p00f

🗿
  • Universe
View GitHub Profile
@sogaiu
sogaiu / tree-sitter-glossary.md
Last active Jul 13, 2021
tree-sitter term glossary draft
View tree-sitter-glossary.md
@ugursogukpinar
ugursogukpinar / sway-config
Last active Oct 31, 2021
wf-recorder for swaywm
View sway-config
set $screenrecorder `bash $HOME/scripts/toggle-screen-recorder.sh`
bindsym --to-code $mod+Shift+R exec $screenrecorder
@sogaiu
sogaiu / tree-sitter-api-notes.md
Last active Nov 10, 2020
tree-sitter query api notes
View tree-sitter-api-notes.md
  • current docs
    • query consists of one or more patterns
    • each pattern is an s-expression that matches nodes in a tree
    • expression consists of pair of parens containing:
      • node's type
      • optionally series of other s-expressions matching node's children
    • prefix a child pattern with a field name followed by a colon
    • match anonymous nodes by expressing name between double quotes
    • captures enable association of names with specific nodes in a pattern
      • capture names are written after the nodes they refer to
@bjesus
bjesus / config.json
Last active Jan 16, 2022
Weather widget for waybar
View config.json
"custom/weather": {
"format": "{}",
"tooltip": true,
"interval": 3600,
"exec": "waybar-wttr.py",
"return-type": "json"
},
View iterators.rs
pub trait IteratorExt: Iterator + Sized {
fn our_flatten(self) -> Flatten<Self>
where
Self::Item: IntoIterator;
}
impl<T> IteratorExt for T
where
T: Iterator,
{
fn our_flatten(self) -> Flatten<Self>
@johnny13
johnny13 / dircolors
Last active Sep 8, 2021
my dark background friendly dir colors
View dircolors
#############################################################################
# Below are the color init strings for the basic file types. A color init
# string consists of one or more of the following numeric codes:
#
# -------------- [ ATTRIBUTES ] --------------
# 00=none 01=bold 04=underscore 05=blink 07=reverse 08=concealed
# Text color codes:
# 30=black 31=red 32=green 33=yellow 34=blue 35=magenta 36=cyan 37=white
# Background color codes:
# 40=black 41=red 42=green 43=yellow 44=blue 45=magenta 46=cyan 47=white
@fijimunkii
fijimunkii / gist:54089bce9af6a68fd75536496cba6030
Created Apr 16, 2016 — forked from andrewlkho/gist:7373190
How to use authentication subkeys in gpg for SSH public key authentication
View gist:54089bce9af6a68fd75536496cba6030

GPG subkeys marked with the "authenticate" capability can be used for public key authentication with SSH. This is done using gpg-agent which, using the --enable-ssh-support option, can implement the agent protocol used by SSH.

Requirements

A working gpg2 setup is required. It may be possible to use gpg 1.4 but with gpg-agent compiled from gpg2. If you are using OS X 10.9 (Mavericks) then you may find the instructions [here][1] useful.