I hereby claim:
- I am dhamidi on github.
- I am dhamidi (https://keybase.io/dhamidi) on keybase.
- I have a public key ASAcRDRzUZF29ScaAUK9d5sX1Qk1VFnYkk9LBxbfOgiW1wo
To claim this, I am signing this object:
#!/usr/bin/env bash | |
[[ -v REPL_FILES ]] || declare -a REPL_FILES=() | |
[[ -v REPL_CHECKSUM ]] || declare REPL_CHECKSUM | |
repl.install() { | |
local command | |
declare -ga PROMPT_COMMAND | |
for command in "${PROMPT_COMMAND[@]}"; do | |
if [[ "$command" == "repl.load_if_changed" ]]; then |
#!/usr/bin/env zsh | |
# zsh uses its own line editor instead of readline: zle. | |
# | |
# keys are bound to zle widgets | |
# | |
# Plan: create a widget, bind it to a key | |
# our custom zle widget for selecting a git branch using fzf | |
yank_git_branch() { | |
local branch=$(git branch | awk '{print $NF}' | fzf) |
I hereby claim:
To claim this, I am signing this object:
Flattens YAML files to make them greppable
$ yq docker-compose.yml
version 3.3
services.redis.image redis:latest
services.redis.deploy.replicas 1
services.redis.ports.0.published 6379
services.redis.ports.0.target 6379
services.redis.ports.0.mode host
<html> | |
<head> | |
<title>Music and Art</title> | |
<STYLE> | |
H1 { color: green } | |
H1 {font-family: arial; text-align: center;} | |
H2 {font-family: arial} |
<!doctype html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title><%= "$TITLE" %></title> | |
<script type="text/javascript" src="jquery.js"></script> | |
</head> | |
<body> | |
<p>It's alive!</p> | |
<ul> |
Web applications need understand what permissions are granted to a current user in two key areas.
403
when trying to access a resource outside of one's graph)Further, in many applications in the wild (for better, or worse, perhaps I need new friends and colleagues) I've seen ways implemented to nerf or flat-out disable authorisation controls. In addition to the regular graph-based authorisation flow, the concept of super users is prevelant, and dangerous.
$include /etc/inputrc | |
set bind-tty-special-chars off | |
set skip-completed-text on | |
set bell-style visible | |
"\C-x\C-e": edit-and-execute-command | |
"\C-xa\"": "\"\C-x\C-x\C-f\"" | |
"\C-xa(": "(\C-x\C-x\C-f)" |