Skip to content

Instantly share code, notes, and snippets.

View punkrocker178's full-sized avatar
🎯
Focusing on angular4reddit.me

Hieu punkrocker178

🎯
Focusing on angular4reddit.me
  • Ho Chi Minh City
View GitHub Profile
@punkrocker178
punkrocker178 / git-commands.sh
Last active September 18, 2021 10:34
Git commands
# Add remote
git remote add origin https://github.com/user/repo.git
# Save git credential
git config --global credential.helper store
# Enable this to separate git credentials for different repos
git config --global credential.github.com.useHttpPath true
# Delete branch local (multiple delete):
@punkrocker178
punkrocker178 / download-img.sh
Last active November 3, 2023 05:20
Download images from resource servers such as wp-content.
#!/bin/bash
# Link to download resource as first argument
base_url=$1
# end
# Number to stop the incrementing id
end_id=$2
# starting id, will default to 1 if empty