Skip to content

Instantly share code, notes, and snippets.

View anacunha's full-sized avatar
🦖

Ana Cunha anacunha

🦖
View GitHub Profile
@anacunha
anacunha / git.md
Last active November 17, 2022 00:55
Git

Git

Setting Git Username and Email for a Single Repository

git config user.name "Your Name"
git config user.email "[email protected]"

Amend Author

@anacunha
anacunha / tmux.md
Last active January 21, 2020 16:21

Create a new session

tmux -CC new -s <session>

List existing sessions

tmux ls

Connect to a session

tmux -CC attach -t <session>

Kill a session

function evenWord(word) {
const odds = new Set();
for(const letter of word) {
odds.has(letter) ? odds.delete(letter) : odds.add(letter);
}
return odds.size;
}
@anacunha
anacunha / maven.md
Last active October 13, 2024 01:25
Maven

Maven

Install Maven

curl -O https://dlcdn.apache.org/maven/maven-3/3.8.5/binaries/apache-maven-3.8.5-bin.tar.gz
@anacunha
anacunha / aws-cloud9.md
Last active November 6, 2021 18:14
AWS Cloud9

AWS Cloud9

Node

nvm install stable

Java

@anacunha
anacunha / python.md
Last active April 23, 2021 15:57
Python macOS

Python macOS

brew install pyenv

pyenv install 3.9.4
pyenv global 3.9.4
pyenv version

echo -e 'if command -v pyenv 1&gt;/dev/null 2&gt;&amp;1; then\n eval "$(pyenv init -)"\nfi' &gt;&gt; ~/.zshrc
@anacunha
anacunha / resize.scpt
Last active January 10, 2024 16:29
Resize window macOs
tell application "Firefox"
set bounds of front window to {300, 30, 2220, 1110}
end tell
tell application "iTerm"
set bounds of front window to {300, 30, 2220, 1110}
end tell
tell application "System Events" to tell process "Code"
tell window 1
@anacunha
anacunha / intellij.md
Created June 14, 2022 14:20
IntelliJ Shortcuts and Tips
@anacunha
anacunha / aws.md
Last active November 20, 2022 20:42
AWS