Tiny utility to download file from GitHub

gget

I needed a way to download file from GitHub without going to its raw version and I made this tiny program.

If there is a way to do it with a cURL, good but I didn't want to search for it online.

Install

Requirements:

  • Go installed
go install github.com/tsivinsky/gget@latest

If you don't have Go installed, you can install binary from latest release on github.com/tsivinsky/gget/releases

Usage

By default, gget will print file content to standard output.

If you want to use file as an output, you can add -o flag

gget https://github.com/tsivinsky/gget/blob/master/main.go -o gget.go
Owner
Daniil Tsivinsky
In love with code and video games
Daniil Tsivinsky
Similar Resources

Moviefetch: a simple program to search and download for movies from websites like 1337x and then stream them

MovieFetch Disclaimer I am NOT responisble for any legal issues or other you enc

Dec 2, 2022

gproxy is a tiny service/library for creating lets-encrypt/acme secured gRPC and http reverse proxies

gproxy is a tiny service/library for creating lets-encrypt/acme secured gRPC and http reverse proxies

gproxy is a reverse proxy service AND library for creating flexible, expression-based, lets-encrypt/acme secured gRPC/http reverse proxies GProxy as a

Sep 11, 2022

A tiny command line DNS client with support for UDP, DoT, DoH, and DoQ.

A tiny command line DNS client with support for UDP, DoT, DoH, and DoQ.

q A tiny command line DNS client with support for UDP, DoT, DoH, and DoQ. Usage q command line DNS client (https://github.com/natesales/q) Usage: q

Jan 4, 2023

Tiny packet forwarder for golang

Tiny Packet Forwarder Usually, I use iptables on Linux to do forward. i encounter some problems sometime, for example: RDP disconnect immediately afte

Dec 15, 2022

A tiny calculator with RPN, written on golang

A tiny calculator with RPN, written on golang This is my first project on golang, so it is not as serious project as a lang skills practice. Anyway lo

Dec 15, 2021

A tiny client and server for tinysql

Tiny Client/Server a tiny client and server for tinysql. Start // start server

Dec 21, 2021

DeepCopy a portable app that allows you to copy all forms of specified file types from your entire file system of the computer

DeepCopy a portable app that allows you to copy all forms of specified file types from your entire file system of the computer

Dec 20, 2021

Generates file.key file for IPFS Private Network.

ipfs-keygen Generates file.key file for IPFS Private Network. Installation go get -u github.com/reixmor/ipfs-keygen/ipfs-keygen Usage ipfs-keygen ~/

Jan 18, 2022

Simple utility to set the WSL2 subnet to a specific range

WSL subnet utility This is a small Go utility to set the WSL2 host and subnet. It achieves this by: deleting the existing WSL network creating a new o

Oct 22, 2022
Comments
  • [feature] get several files at once

    [feature] get several files at once

    specify glob and download all matching files

    this example will download tabs.lua and git.lua files

    gget https://github.com/tsivinsky/dotfiles/blob/master/neovim/.config/nvim/lua/daniil/{tabs|git}.lua
    

    and this one will download all files ending in .lua in daniil directory

    gget https://github.com/tsivinsky/dotfiles/blob/master/neovim/.config/nvim/lua/daniil/*.lua
    
  • get specified lines of file

    get specified lines of file

    GitHub uses hash in urls for lines, so user should be able to get code from specified lines only

    example url https://github.com/tsivinsky/dotfiles/blob/master/config/nvim/init.lua#L117-L120

Related tags
Automatically compress podcasts to tiny file sizes for bandwidth constrained devices like cellular.
Automatically compress podcasts to tiny file sizes for bandwidth constrained devices like cellular.

tinycast Automatically compress podcasts to tiny file sizes for bandwidth constrained connections like cellular or satellite.

Sep 18, 2022
Capdns is a network capture utility designed specifically for DNS traffic. This utility is based on tcpdump.
Capdns is a network capture utility designed specifically for DNS traffic. This utility is based on tcpdump.

Capdns is a network capture utility designed specifically for DNS traffic. This utility is based on tcpdump. Some of its features include: Unde

Feb 26, 2022
Dec 13, 2022
gh is GitHub on the command line. It brings pull requests, issues, and other GitHub concepts to the terminal next to where you are already working with git and your code
gh is GitHub on the command line. It brings pull requests, issues, and other GitHub concepts to the terminal next to where you are already working with git and your code

gh is GitHub on the command line. It brings pull requests, issues, and other GitHub concepts to the terminal next to where you are already working with git and your code

Jan 24, 2022
A C/S Tool to Download Torrent Remotely and Retrieve Files Back Over HTTP at Full Speed without ISP Torrent Limitation.

remote-torrent Download Torrent Remotely and Retrieve Files Over HTTP at Full Speed without ISP Torrent Limitation. This repository is an extension to

Sep 30, 2022
A download manager package for Go

grab Downloading the internet, one goroutine at a time! $ go get github.com/cavaliercoder/grab Grab is a Go package for downloading files from the in

Jan 1, 2023
Concurrent download manager built in Go
Concurrent download manager built in Go

Golang Download Manager - Weekend Project A concurrent download manager written in pure Go without any dependency. I wrote this code for my YouTube vi

Sep 29, 2022
Download movie from YTS
Download movie from YTS

Torrent-Box Download movie form YTS without visiting to YTS built top on anacrolix/torrent lib. Motivation Most of the times, We are lazy people; to s

Nov 14, 2022
A quick and dirty but useful tool to download each text/html page from the wayback machine for a specific domain and search for keywords within the saved content

wayback-keyword-search A quick and dirty but useful tool to download each text/html page from the wayback machine for a specific domain and search for

Dec 2, 2022
🍔 Product-storage service, work on gRPC. Client sends the URL to download products, and requests the result.

?? Product-storage service, work on gRPC. Client sends the URL to download products, and requests the result. The server transfer request to a third-party resource for .csv-file uploading and saves the products to own database.

Dec 16, 2021