Skip to content

Instantly share code, notes, and snippets.

View kondanta's full-sized avatar

Taylan Dogan kondanta

View GitHub Profile
@kondanta
kondanta / karabiner.json
Created October 23, 2019 08:23
macOS karabiner custom keyboard shortcut to open iTerm
"rules": [
{
"description": "Open iterm2",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "return_or_enter",
"modifiers": {
"mandatory": [
@kondanta
kondanta / afind.sh
Created August 8, 2019 14:34
Finding instances on aws with "Name" tag.
#!/bin/sh
aws --region "$1" ec2 describe-instances --query 'Reservations[].Instances[?Tags[?Key == `Name` && contains(Value, `'"$2"'`)][]][].{ip:PublicIpAddress, type:InstanceType, name:[Tags[?Key==`Name`].Value][0][0]}' | jq
@kondanta
kondanta / rustup-install.md
Last active June 5, 2019 13:14 — forked from akorobov/rustup-install.md
Installing rustup in different location

To install rustup in different directory (i.e. /opt):

  1. install rustup in custom directory pointed to by RUSTUP_HOME envvar:
curl https://sh.rustup.rs -sSf | RUSTUP_HOME=/home/kondanta/tools/rust/rustup CARGO_HOME=/home/kondanta/tools/rust/cargo sh -s -- -y
  1. select default tool chain