Skip to content

Instantly share code, notes, and snippets.

View acezalba's full-sized avatar
💻
Looking for opportunities

Ace Z. Alba acezalba

💻
Looking for opportunities
View GitHub Profile
@acezalba
acezalba / instructions.md
Created July 11, 2023 03:05
Cosmetic Block the Mobile Facebook Feed

m.facebook.com##div.displayed.m:not(:nth-of-type(2)):not(:nth-of-type(3))

@acezalba
acezalba / git.sh
Last active March 24, 2020 11:19
#sh ubuntu out of the box
#GIT
#install git
sudo apt-get install git
#configure git
$ git config --global user.name "Your Name"
$ git config --global user.email [email protected]
#install curl - CLI server transfer protocol
@acezalba
acezalba / bash.sh
Created March 22, 2020 06:26
#sh #git push a local repository to Github using bash
$ git init
$ git add .
# Adds the files in the local repository and stages them for commit. To unstage a file, use 'git reset HEAD YOUR-FILE'.
$ git commit -m "First commit"
# Commits the tracked changes and prepares them to be pushed to a remote repository. To remove this commit and modify the file, use 'git reset --soft HEAD~1' and commit and add the file again.
$ git remote add origin remote repository URL
# Sets the new remote
$ git remote -v
# Verifies the new remote URL
$ git push origin master
@acezalba
acezalba / solution.js
Last active March 1, 2020 06:30
Regex Lazy Matching Template #fcc #js #regex
let text = "<h1>Winter is coming</h1>";
let myRegex = /<.*?>/; // Change this line
let result = text.match(myRegex);
// + is greedy
// ? is lazy