Skip to content

Instantly share code, notes, and snippets.

@dev-ext
dev-ext / DownloadYTVideo.js
Created June 13, 2017 17:51 — forked from yoga1290/DownloadYTVideo.js
Youtube video downloader script
// go to the youtube video page using iPhone as user-agent and run the following script:
var xhr=new XMLHttpRequest();
xhr.open("GET",location.href,true);
xhr.onload=function(){
var r=xhr.responseText;
r=r.substring(r.indexOf('url_encoded_fmt_stream_map'),r.length);
r=r.substring(r.indexOf('url=http')+4,r.length);
r=r.split('url=');
location.href=
export PATH=${PATH}:~/Android/Sdk/tools
export PATH=${PATH}:~/Android/Sdk/platform-tools
export PATH=/home/prosenjit/android-studio/gradle/gradle-3.2/bin:$PATH
## make sure permission for sdk
## sudo chmod -R 777 ~/Android
## Make sure permission for platform
## sudo chmod -R 777 /platform/android
@dev-ext
dev-ext / README.md
Created November 9, 2016 12:19 — forked from oodavid/README.md
Deploy your site with git

Deploy your site with git

This gist assumes:

  • you have a local git repo
  • with an online remote repository (github / bitbucket etc)
  • and a cloud server (Rackspace cloud / Amazon EC2 etc)
    • your (PHP) scripts are served from /var/www/html/
    • your webpages are executed by apache
  • apache's home directory is /var/www/
@dev-ext
dev-ext / Package Control.sublime-settings
Last active October 25, 2016 19:16 — forked from prosenjit-manna/Package Control.sublime-settings
Sublime Config All settings file pah packages/user/
{
"bootstrapped": true,
"in_process_packages":
[
],
"installed_packages":
[
"AngularJS",
"AutoFileName",
"Better Completion",
<?php
/*
* Converts CSV to JSON
* Example uses Google Spreadsheet CSV feed
* csvToArray function I think I found on php.net
*/
header('Content-type: application/json');
// Set your CSV feed
@dev-ext
dev-ext / 0_reuse_code.js
Created July 2, 2014 09:14
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console