Skip to content

arun0808rana/utils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 

Repository files navigation

Utils

Name URL Type
Git Cloner https://github.com/arun0808rana/git-cloner Server + Script
Ubuntu-pkgs https://github.com/arun0808rana/ubuntu-pkgs Server
VS Code Bindings https://github.com/arun0808rana/vs-code-bindings VS Code
Google Search Navigator https://github.com/arun0808rana/Google-Navigator ViolentMonkey Script
Youtube Navigator https://github.com/arun0808rana/Youtube-Navigator ViolentMonkey Script
Yellow Functions https://github.com/arun0808rana/yellow-functions VS Code Theme
Personal Servers https://github.com/arun0808rana/personal_servers Server
AirBnb Guidelines https://github.com/airbnb/javascript Repo
Post Format Instructions https://github.com/arun0808rana/post_format_instructions Nodejs Script

Components

Name URL
Slider https://codepen.io/tuesta/pen/QoMqBY

Bash Bash Bash

Youtube-dl Aria2c

Concurrent downloads via external client.

youtube-dl -f 140 --restrict-filenames --external-downloader aria2c --external-downloader-args "-c -j 16 -s 16 -x 16 -k 1M" -ciw "___________________________________"

Github asset downloader using bash

This command assigns the URL to the package_url variable using command substitution, similar to the previous command. Then, it uses curl with the -LO options to download the file specified by the URL.

Make sure to replace https://api.github.com/repos/owner/repo/releases/latest with the actual API URL for the GitHub release assets. Additionally, ensure that the pattern "linux_amd64.deb" matches the desired .deb file you want to download.

Upon executing this command, the .deb package file will be downloaded to the current directory using curl.

package_url=$(curl -sL https://api.github.com/repos/owner/repo/releases/latest | grep -oP '(?<="browser_download_url": ")[^"]*' | grep "linux_amd64\.deb" | sed 's/\&amp;/\&/g') && curl -LO "$package_url"

bashrc stupidity

Github cli

You can download the deb version of the gh cli using curl. Notice this downloads the amd64 version specifically. Replace amd64 with your architecture name. But make sure it is provided by gh assets.

package_url=$(curl -sL https://api.github.com/repos/cli/cli/releases/latest | grep -oP '(?<="browser_download_url": ")[^"]*' | grep "amd64\.deb" | sed 's/\&amp;/\&/g') && curl -LO "$package_url" && sudo dpkg -i "$(basename "$package_url")"

OR

Download gh cli from gh cli assets

Below gito alias creates a remote repo and pushes main to remote on gihtub.

You need authorization although. gh cli will do this for you.

# aliases list
# after pasting this shit enter . ~/.bashrc
# in terminal
alias 'gito'='gh repo create "${PWD##*/}" --public --source=. --remote=origin && git add . && git commit -m "init" && git branch -M main && git push -u origin main'	

function open() {
    #do things with parameters like $1 such
    codedirpath=/home/dev/Desktop/pro/"$1"
    code $codedirpath
}

function clone(){
	clonePath=/home/dev/Desktop/pro/clones
	#extracting repo name from git url
	basename=$(basename $1)
	repoName=${basename%.*}
	cdingPath=$clonePath/$repoName
	
	git -C /$clonePath clone $1
	cd $cdingPath
}

VS Code Themes

image

image

image

image

image

image

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published