Skip to content

Instantly share code, notes, and snippets.

View anacunha's full-sized avatar
🦖

Ana Cunha anacunha

🦖
View GitHub Profile
@anacunha
anacunha / aws.md
Last active November 20, 2022 20:42
AWS
@anacunha
anacunha / intellij.md
Created June 14, 2022 14:20
IntelliJ Shortcuts and Tips
@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 / 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>/dev/null 2>&1; then\n eval "$(pyenv init -)"\nfi' >> ~/.zshrc
@anacunha
anacunha / aws-cloud9.md
Last active November 6, 2021 18:14
AWS Cloud9

AWS Cloud9

Node

nvm install stable

Java

@anacunha
anacunha / maven.md
Last active March 30, 2022 23:58
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
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 / 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

@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 "name@email.com"

Amend Author