Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Pulathisi Bhathiya Bandara gullz

🏠
Working from home
View GitHub Profile
@gullz
gullz / script-mgit.sh
Created Jul 5, 2019
Add directories into git repos recursively, many git repos.
View script-mgit.sh
#! /bin/bash
#!/usr/bin/expect -f
level=0
path=""
createRepo()
{
repo_name=$1
test -z $repo_name && echo "Repo name required." 1>&2 && exit 1
@gullz
gullz / script.sh
Created Jul 5, 2019
Add directories in to git repo one directory at a time.
View script.sh
#! /bin/bash
navigateDir()
{
files=`ls`
for dir in $files
do
checkDir $dir
done
}
@gullz
gullz / Share.sh
Last active May 13, 2019
Sharing internet in ubuntu
View Share.sh
# -------------------------------------------
# Valid only for ubuntu 18.04
# Open /etc/sysctl.conf
#
# Uncomment the line or copy
#
#
# net.ipv4.ip_forward=1
#
# Reload using sudo sysctl -p /etc/sysctl.conf
@gullz
gullz / List.sh
Created May 9, 2019
Listing android package details
View List.sh
cmd package list packages -f # List all packages with respective to there paths
pm dump package-name # Show the system state of a package
dumpsys
@gullz
gullz / create.sh
Created Jan 9, 2018
Creating a git repository from command line - Linux
View create.sh
#! /bin/bash
# -------------------------------------------------------------------------- #
# This is a linux shell script, used to create 'github' repository from
# command line.
# Each git server providers provide different APIs for creating repositories
# though, the repository manipulation through git client is same.
# Note: This can be done in windows also but requires curl.
# --------------------------------------------------------------------------- #