Skip to content

Instantly share code, notes, and snippets.

View ahampriyanshu's full-sized avatar

Priyanshu Tiwari ahampriyanshu

View GitHub Profile
@ahampriyanshu
ahampriyanshu / gui-pytube.md
Last active February 1, 2022 09:29
GUI wrapper for pytube

pytube-gui

snap

Installation

  • Note : This application depends on ffmpeg to merge audio and video of files downloaded above 720p.If you don't want to install ffmpeg then either download till 360p/720p or select audio track seperately while playing the video.

Install ffmpeg(skip if already installed)

@ahampriyanshu
ahampriyanshu / gui-spotdl.md
Last active February 1, 2022 09:28
GUI wrapper for spotdl

spotdl-gui

snap

Installation

  • Note : This application depends on ffmpeg.
@ahampriyanshu
ahampriyanshu / install.sh
Last active January 3, 2023 18:56
Bash script to install stuff in linux.
#!/bin/bash
Reset='\033[0m' # Text Reset
Black='\033[0;30m' # Black
Red='\033[0;31m' # Red
Green='\033[0;32m' # Green
Yellow='\033[0;33m' # Yellow
Blue='\033[0;34m' # Blue
Purple='\033[0;35m' # Purple
@ahampriyanshu
ahampriyanshu / deploy.sh
Last active January 15, 2022 11:43
Bash script to push changes in a MERN app
#!/bin/sh
cd ~/app-name/client
git add .
git commit -m "$1"
git push
rm -rf build
npm run build
rm -rf ../server/public
mv build ../server/public
cd ../server
@ahampriyanshu
ahampriyanshu / .vimrc
Last active May 9, 2022 18:48
my vim conf
set hidden
set noerrorbells
set tabstop=4 softtabstop=4
set shiftwidth=4
set signcolumn=yes
set expandtab
set smartindent
set number
set nowrap
set smartcase
@ahampriyanshu
ahampriyanshu / shamir.c
Last active January 15, 2022 06:53
Shamir Secret Sharing Algorithm in C
#include <stdlib.h>
#include <stdio.h>
#include <time.h>
#include <string.h>
#include <math.h>
#include <unistd.h>
const int N = 4;
const int K = 2;
const int prime = 256;