Skip to content

Instantly share code, notes, and snippets.

View david-kariuki's full-sized avatar
👨‍💼
Engineering

David Kariuki (DK) david-kariuki

👨‍💼
Engineering
View GitHub Profile
@david-kariuki
david-kariuki / github_desktop_ubuntu.sh
Created September 16, 2023 20:00 — forked from berkorbay/github_desktop_ubuntu.md
To install Github Desktop for Ubuntu
## Follow this link for further updates to Github Desktop for Ubuntu https://github.com/shiftkey/desktop/releases/latest
# UPDATE (2022-11-07): Thanks to Sxvxgee's message, the updated code is as follows
sudo wget https://github.com/shiftkey/desktop/releases/download/release-3.1.1-linux1/GitHubDesktop-linux-3.1.1-linux1.deb
### Uncomment below line if you have not installed gdebi-core before
# sudo apt-get install gdebi-core
sudo gdebi GitHubDesktop-linux-3.1.1-linux1.deb
# UPDATE (2021-10-18): Thanks to Amin Yahyaabadi's message, the updated code is as follows
@david-kariuki
david-kariuki / git-delete-branches-older-than-period
Last active February 23, 2023 11:39
This is an automated bash script to delete git branches older than some specific time period. The default set time is 3 months, but you can pass the period in months as a first parameter while running the shell script. The script will by default exclude master and main and development branch. You can add more
#!/bin/sh
:'
This is an automated bash script to delete git branches older than some specific time period.
The default set time is 3 months, but you can pass the period in months as a first parameter while running the shell script
'
declare -i numberOfMonths=3 # Declare the default period in months
declare blackListedBranches # Blacklisted branches
clear=clear # Command to clear terminal
ECHO='echo ' # Custom echo