Skip to content

Instantly share code, notes, and snippets.

View albertlieyingadrian's full-sized avatar
🤠

Albert Lie 이영덕 albertlieyingadrian

🤠
View GitHub Profile
@albertlieyingadrian
albertlieyingadrian / all_github_prs
Created September 16, 2024 23:18
Listing all PRs made by a certain author on github search
https://github.com/search?q=is%3Apr+author%3Aalbertlieyingadrian&type=pullrequests&p=2
@albertlieyingadrian
albertlieyingadrian / sort_env.sh
Created August 2, 2024 15:56
Sort .env file from terminal
sort .env -o .env
@albertlieyingadrian
albertlieyingadrian / git_remove_file_from-_history
Created August 11, 2022 07:29
Git remove file from history
git filter-branch --force --index-filter 'git rm --cached --ignore-unmatch <path to the file or directory>' --prune-empty --tag-name-filter cat -- --all
@albertlieyingadrian
albertlieyingadrian / remove_only_directories.sh
Created October 11, 2020 09:11
Remove only directories
rm -r */
@albertlieyingadrian
albertlieyingadrian / update_github_repo_master.sh
Created October 2, 2020 01:24
Update github master branch for all repos
#!/bin/bash
repos=$(ls -d */)
for repo in $repos; do
echo "Repo name -> $repo"
cd $repo
git stash
git checkout master
git pull origin master
@albertlieyingadrian
albertlieyingadrian / .git-czrc
Created September 8, 2020 08:31
My git commitizen configuration
{
"message": {
"items": [
{
"name": "type",
"desc": "Select the type of change that you're committing:",
"form": "select",
"options": [
{ "name": "feat", "desc": "feat: A new feature" },
{ "name": "fix", "desc": "fix: A bug fix" },
@albertlieyingadrian
albertlieyingadrian / personal-tools.md
Last active March 21, 2024 06:56
Collection of my favourite CLIs (Command Line Interfaces)

Personal Tools

Collection of my favourite Tools and CLIs (Command Line Interfaces)

Goal

Centralized references to setup my terminal workspace (while setting up automated scripts to install all the CLIs)

CLIs

@albertlieyingadrian
albertlieyingadrian / settings.json
Created November 28, 2019 16:45
Default vscode settings.json
{
"window.zoomLevel": 0,
"terminal.integrated.rendererType": "dom",
"javascript.updateImportsOnFileMove.enabled": "always",
"[javascript]": {
// "editor.formatOnSave": true,
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[typescript]": {
"editor.formatOnSave": true,
@albertlieyingadrian
albertlieyingadrian / whatsapp_sender.sh
Created October 27, 2019 14:56
whatsapp_sender.sh
adb shell am start -a android.intent.action.VIEW -d 'https://api.whatsapp.com/send\?phone\=6281901596260\&text\=aberttest' && sleep 3 && adb shell input tap 990 1800
@albertlieyingadrian
albertlieyingadrian / Dockerfile
Created October 2, 2019 03:20
docker_simple_container
FROM ubuntu:16.04
# other commands
CMD tail -f /dev/null