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 / 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 / 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 / gist:e84d3402e149ce341f2a60dcf17d5bb4
Created April 20, 2018 09:26
npm i / npm install freezed / not working
delete package-lock.json then try again
@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 / 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 / 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"
],
var mediaJSON = { "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" ],
"subtitle" : "By Blender Foundation",
"thumb" : "images/BigBuckBunny.jpg",
"title" : "Big Buck Bunny"
},
{ "description" : "The first Blender Open Movie from 2006",
"sources" : [ "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/ElephantsDream.mp4" ],
@deepakpk009
deepakpk009 / Connectivity.java
Created September 24, 2017 10:31 — forked from emil2k/Connectivity.java
Android utility class for checking device's network connectivity and speed.
package com.emil.android.util;
import android.content.Context;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
import android.telephony.TelephonyManager;
/**
* Check device's network connectivity and speed
* @author emil http://stackoverflow.com/users/220710/emil
@deepakpk009
deepakpk009 / git-checkout-dependency-error.txt
Last active September 15, 2017 07:33
Error:Project :app declares a dependency from configuration 'compile' to configuration 'default'
Error:Project :app declares a dependency from configuration 'compile' to configuration 'default'
which is not declared in the descriptor for project :<project-name>.
this happens when you have submodules in your project,
to fix this clone using recursive git command:
git clone --recursive https://github.com/developer-id/project.git
now go to the submodule folder and check the git repo version by:
@deepakpk009
deepakpk009 / amazon-ec2-ftp.md
Created September 3, 2017 07:12 — forked from gunjanpatel/amazon-ec2-ftp.md
amazon ec2 LAMP and FTP installation and setup