Skip to content

Instantly share code, notes, and snippets.

View deepakpk009's full-sized avatar
๐Ÿ‘‹
Android & Roku Development

Deepak PK deepakpk009

๐Ÿ‘‹
Android & Roku Development
View GitHub Profile
@deepakpk009
deepakpk009 / media.json
Created November 8, 2017 14:02
sample free video urls
{
"categories": [
{
"name": "Movies",
"videos": [
{
"description": "Big Buck Bunny tells the story of a giant rabbit with a heart bigger than himself. When one sunny day three rodents rudely harass him, something snaps... and the rabbit ain't no bunny anymore! In the typical cartoon tradition he prepares the nasty rodents a comical revenge.\n\nLicensed under the Creative Commons Attribution license\nhttp://www.bigbuckbunny.org",
"sources": [
"http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4"
],
@deepakpk009
deepakpk009 / git_password.txt
Last active May 24, 2018 13:26
Git push requires username and password
Git push requires username and password always:
OR Git pull failed with repository not found message:
git remote set-url origin https://username:[email protected]/repo.git
Now if you are getting the below error while trying to push:
"Error gnutls_handshake() failed: Handshake failed"
then check for the branch permission. no need to create new ssh.
@deepakpk009
deepakpk009 / gist:a73f4e37dbc2fec8a297373be7e43f03
Created February 1, 2018 07:09
Google chrome not opening/working in ubuntu
Install chrome using the below cmd:
sudo apt-get install google-chrome-stable
then open the crome using the below cmd:
google-chrome-stable %U --password-store=basic
@deepakpk009
deepakpk009 / gist:e84d3402e149ce341f2a60dcf17d5bb4
Created April 20, 2018 09:26
npm i / npm install freezed / not working
delete package-lock.json then try again
@deepakpk009
deepakpk009 / batch_image_convert.txt
Created November 20, 2018 10:26
Batch convert png images in a folder to jpg
open terminal and cd to the folder where the png files are present and enter the below command:
find -name '*.png' -print0 | xargs -0 -r mogrify -format jpg *.png
if mogrify is not present then install it using:
sudo apt-get install imagemagick
@deepakpk009
deepakpk009 / wifi-network-list-notworking.txt
Created December 13, 2018 14:26
Wifi network listing not working in ubuntu
Restart network manager.
sudo service network-manager restart
Restart the nm applet.
killall nm-applet && nm-applet &
@deepakpk009
deepakpk009 / gist:e9964b5d30357857b3e3267feb84d5c4
Created January 2, 2019 09:46
FFMPEG video file size reduce
ffmpeg -i input.mp4 -vcodec h264 -b:v 1000k -acodec mp3 output2.mp4
ffmpeg -i input.mp4 -vcodec h264 -acodec mp2 output.mp4
@deepakpk009
deepakpk009 / gist:42987352fef0f9a352d5af7d4b06918d
Created January 18, 2019 13:07
ffmpeg conversion samples
convert .mov to .mp4
ffmpeg -i videoName.mov -vcodec h264 -acodec mp2 videoName.mp4
convert .mov to .webm
ffmpeg -i videoName.mov -c:v libvpx -crf 10 -b:v 1M -c:a libvorbis videoName.webm
convert .mov to .ogg
ffmpeg -i videoName.mov -codec:v libtheora -qscale:v 7 -codec:a libvorbis -qscale:a 5 videoName.ogg
@deepakpk009
deepakpk009 / pdf_compress.txt
Created March 5, 2019 10:44
reduce pdf size / compress pdf in ubuntu
execute below commnad in terminal:
gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/screen -dNOPAUSE -dQUIET -dBATCH -sOutputFile=output.pdf input.pdf
/screen - Lowest quality, lowest size
/ebook - Moderate quality
/printer - Good quality
/prepress - Best quality, highest size
@deepakpk009
deepakpk009 / gist:5ac411fce3b1fddb72cc193ef5c9c0ec
Created April 30, 2019 06:37
convert mov to mp4 and remove audio using ffmpeg
Convert mov to mp4:
ffmpeg -i input.mov -vcodec h264 -acodec aac -strict -2 output.mp4
Remove audio:
ffmpeg -i input.mp4 -an -vcodec copy output.mp4