Skip to content

Instantly share code, notes, and snippets.

View yuriescl's full-sized avatar

Yuri Escalianti yuriescl

  • Connectly.ai
  • Brazil
View GitHub Profile
@yuriescl
yuriescl / github-ssh-agent-forward.sh
Created February 5, 2021 13:08
GitHub SSH agent forward
# Scenario 1:
# Your repo is at https://github.com/myuser/myrepo
# You have your SSH key added to GitHub.
# You want to use git commands in a server but don't wanna copy your private key to the server.
# first we test our SSH pubkey auth to GitHub, it should print something like:
# Hi user! You've successfully authenticated, but GitHub does not provide shell access.
ssh -T git@github.com
# then, we authenticate and forward the agent
### Keybase proof
I hereby claim:
* I am yuriescl on github.
* I am yuriescl (https://keybase.io/yuriescl) on keybase.
* I have a public key ASBv4o1lTPx5SDivh-EIaPOrLDY95YriRAMxv_skaBto5Qo
To claim this, I am signing this object:
@yuriescl
yuriescl / i3-focus-title.sh
Last active December 7, 2017 15:04
Focus i3 container by title or title_format (matches using similarity score)
#!/usr/bin/env python3
'''
Focus i3 container by title or title_format (matches using similarity score)
Example:
i3-focus-title.sh title
If you want to execute "focus child" after focusing the container by the title,
you can choose how many times "focus child" will be executed by passing