Skip to content

Instantly share code, notes, and snippets.

View rdkr's full-sized avatar

Neel Radhakrishnan rdkr

View GitHub Profile
### Keybase proof
I hereby claim:
* I am rdkr on github.
* I am rdkr (https://keybase.io/rdkr) on keybase.
* I have a public key whose fingerprint is BBC1 514B 34CF B0F1 0231 280F 2FC3 6F0E F788 7127
To claim this, I am signing this object:
@rdkr
rdkr / user-init.sh
Last active November 25, 2018 15:21
#!/usr/bin/env sh
adduser --disabled-password --gecos "" neel
echo 'neel ALL=(ALL) NOPASSWD:ALL' | sudo EDITOR='tee -a' visudo
sudo -u neel mkdir -p /home/neel/.ssh
sudo -u neel curl https://github.com/rdkr.keys -o /home/neel/.ssh/authorized_keys
@rdkr
rdkr / brew.sh
Last active July 25, 2020 00:48
brew install \
bash \
zsh \
make \
openssh \
git \
coreutils \
findutils \
gnu-sed \
gnu-tar \
## font
https://github.com/tonsky/FiraCode/wiki/VS-Code-Instructions
## global config
{
"editor.fontFamily": "Fira Code",
"editor.fontLigatures": true,
"editor.fontSize": 13,
// exec the joining config
exec autoexec_servers.cfg
////// crosshair http://csgocrosshairs.com/teams
cl_crosshair_drawoutline 0
cl_crosshairalpha 999
cl_crosshaircolor 1
cl_crosshairdot 0
cl_crosshairgap -1
cl_crosshairgap_useweaponvalue 0
@rdkr
rdkr / delete-default-vpcs.sh
Created June 17, 2020 12:05
copied from a different gist and slightly modified
for region in $(aws ec2 describe-regions --region eu-west-1 | jq -r .Regions[].RegionName); do
echo "* Region ${region}"
# get default vpc
vpc=$(aws ec2 --region ${region} \
describe-vpcs --filter Name=isDefault,Values=true \
| jq -r .Vpcs[0].VpcId)
if [ "${vpc}" = "null" ]; then
echo "No default vpc found"
// ==UserScript==
// @name clean-gitlab-sidebar
// @namespace http://tampermonkey.net/
// @version 0.1
// @description only show some things in gitlab sidebar, and expand the rest
// @author [email protected]
// @match https://<GITLAB_URL>/*
// ==/UserScript==
(function() {