Skip to content

Instantly share code, notes, and snippets.

View rafa-thayto's full-sized avatar
☯️
living one day at a time

Rafael Thayto rafa-thayto

☯️
living one day at a time
View GitHub Profile
@jexchan
jexchan / multiple_ssh_setting.md
Created April 10, 2012 15:00
Multiple SSH keys for different github accounts

Multiple SSH Keys settings for different github account

create different public key

create different ssh key according the article Mac Set-Up Git

$ ssh-keygen -t rsa -C "your_email@youremail.com"
@MohamedAlaa
MohamedAlaa / tmux-cheatsheet.markdown
Last active July 20, 2026 03:27
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@chuckwagoncomputing
chuckwagoncomputing / gist:4234127
Last active April 25, 2026 03:24 — forked from matthew-french/gist:4234076
pbcopy ssh public key to your clipboard
#pbcopy < ~/.ssh/id_rsa.pub
#or
cat ~/.ssh/id_rsa.pub | pbcopy
@Bekbolatov
Bekbolatov / tmux.md
Last active August 27, 2025 10:57
Clean tmux cheat-sheet

Clean tmux cheat-sheet

By resources

sessions

list-sessions        ls         -- List sessions managed by server
new-session          new        -- Create a new session
@n3dst4
n3dst4 / renaming.markdown
Last active January 13, 2025 16:46
How to rename Visual Studio solutions and projects

How to rename solutions and projects in Visual Studio

  1. Don't.

How to rename solutions and projects that were created in Visual Studio

  1. Close Visual Studio and don't open it again until I tell you. Visual Studio is not competent at renaming things.
  2. Assuming you're using git, clean the working folder to remove anything that's not in version control (this will help the search-and-replace step because it won't have to go through a bunch of generated files)

git clean -fdx

@rafa-thayto
rafa-thayto / .gitconfig
Last active February 24, 2022 01:03
.gitconfig alias
[alias]
a = add
co = checkout
sw = switch
ci = commit
st = status
br = branch
ps = push
ac = "!git add . && git commit -m"
fp = "!git fetch && git pull && git push"
@judaew
judaew / keychron_k2.adoc
Last active April 28, 2026 01:05
Keychron K2 Manual

Keychron K2 Manual

Connect Bluetooth

On the side of the keyboard, switch the toggle to Bluetooth. Press fn+1 3 seconds and pair with device named Keychron K2.

  • fn+1 connect to 1st device

  • fn+2 connect to 2nd device

  • fn+3 connect to 3rd device

@fdaciuk
fdaciuk / How to use async await without try-catch block.md
Last active September 25, 2024 23:55
How to use async/await without try/catch block

How to use async/await without try/catch block

We can use something like this:

async function resolveToNumber () {
  const promise = Promise.resolve(1)
  const [error, result] = await to(promise)
  console.log(error, result) // [null, 1] -> Here we have the result, and error will be null
}
@fdaciuk
fdaciuk / Live Node.js + TS com Programação Funcional.md
Last active January 29, 2025 18:17
Live Node.js + TS com Programação Funcional
@pjobson
pjobson / setup_cypress_wsl2.md
Last active May 29, 2025 18:10
Setting Up Cypress on Ubuntu WSL2