Skip to content

Instantly share code, notes, and snippets.

💫
Continuously Learning

dekauliya deka108

💫
Continuously Learning
Block or report user

Report or block deka108

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@deka108
deka108 / create_new_github_repo.sh
Created Jan 24, 2019
Create New GitHub Repo from CLI
View create_new_github_repo.sh
#!/usr/bin/env bash
# Read usr inputs
read -p "Enter repo name (eg: USERNAME/REPO_NAME or ORG_NAME/REPO_NAME): " GITHUB_REPO && [[ -n $GITHUB_REPO ]] || {
echo "Error: REPO_NAME must exist!" >&2; exit 1;
}
read -p "Is the new repo an organization repo (y/N)?: " IS_ORG && [[ $IS_ORG == [yYNn] ]] || {
echo "IS_ORG must be either y (yes) or n (no)!" >&2; exit 1;
}
@deka108
deka108 / github_release_asset_api.sh
Last active Jan 24, 2019
Download and Uploading Latest Release Assets
View github_release_asset_api.sh
#!/usr/bin/env bash
# First, store your PERSONAL GITHUB TOKEN as secret file somewhere.
# You can generate your personal github token here: https://github.com/settings/tokens. Check the
# "Full control of private repositories" scope.
# In the example below, token is stored as a json file "github_token.json" under secrets directory in the form of:
# { "token": "PERSONAL_GITHUB_TOKEN" }
# Check Secrets
[[ -f secrets/github_token.json ]] || { echo "Error: github token is unavailable!" >&2; exit 1; }
@deka108
deka108 / .tmux.conf
Last active Jun 9, 2018
My Simple Tmux Configuration
View .tmux.conf
# split panes using | and -
bind \ split-window -h
bind - split-window -v
unbind '"'
unbind %
# switch panes using Alt-arrow without prefix
bind -n M-Left select-pane -L
bind -n M-Right select-pane -R
bind -n M-Up select-pane -U
You can’t perform that action at this time.