Skip to content

Instantly share code, notes, and snippets.

View gullz's full-sized avatar
🏠
Working from home

Pulathisi Bhathiya Bandara gullz

🏠
Working from home
View GitHub Profile
@gullz
gullz / script-mgit.sh
Created July 5, 2019 07:33
Add directories into git repos recursively, many git repos.
#! /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 July 5, 2019 07:31
Add directories in to git repo one directory at a time.
#! /bin/bash
navigateDir()
{
files=`ls`
for dir in $files
do
checkDir $dir
done
}
@gullz
gullz / Share.sh
Last active May 13, 2019 04:15
Sharing internet in ubuntu
# -------------------------------------------
# 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 11:02
Listing android package details
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 January 9, 2018 16:38
Creating a git repository from command line - Linux
#! /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.
# --------------------------------------------------------------------------- #