Skip to content

Instantly share code, notes, and snippets.

dev-ext / DownloadYTVideo.js
Created Jun 13, 2017 — forked from yoga1290/DownloadYTVideo.js
Youtube video downloader script
View DownloadYTVideo.js
// go to the youtube video page using iPhone as user-agent and run the following script:
var xhr=new XMLHttpRequest();"GET",location.href,true);
var r=xhr.responseText;
dev-ext /
Last active Jul 12, 2018
ubuntu gitkraken install from terminal
sudo dpkg -i --force-depends gitkraken-amd64.deb
sudo apt-get install -f
rm -f gitkraken-amd64.deb
View Ionic 2 - Android setup for Ubuntu 16.04
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 /
Created Nov 9, 2016 — forked from oodavid/
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 /
Last active Dec 15, 2016
Dependency Instalation for Wpautomate ubuntu 16.10
sudo apt install apache2
sudo systemctl status apache2.service
sudo netstat -tlpn
sudo a2enmod ssl
sudo a2ensite default-ssl.conf
sudo systemctl restart apache2.service
sudo netstat -tlpn
sudo systemctl enable apache2
sudo apt search php7.0
dev-ext / Package Control.sublime-settings
Last active Oct 25, 2016 — forked from prosenjit-manna/Package Control.sublime-settings
Sublime Config All settings file pah packages/user/
View Package Control.sublime-settings
"bootstrapped": true,
"Better Completion",
View phpcs.sublime.settings
"phpcs_executable_path": "/usr/local/bin/phpcs",
"php_cs_fixer_executable_path": "/usr/local/bin/php-cs-fixer",
"phpcbf_executable_path": "/usr/local/bin/phpcbf",
"phpmd_executable_path": "/usr/local/bin/phpmd",
"phpcs_additional_args": {
"--standard": "WordPress",
"-n": ""
dev-ext /
Last active Nov 4, 2016
dev-ext /
Last active Oct 21, 2016
Lamp stack, sublime, appache2 configuration change, wp cli install, node install in Ubuntu 16.04
# Install lamp sack all dependency for wpautomate
sudo apt-get update
sudo apt-get install -y apache2
sudo apache2ctl configtest
sudo apt-get install -y mysql-server
sudo apt-get install -y php libapache2-mod-php php-mcrypt php-mysql
sudo apt-get install -y phpmyadmin
sudo systemctl status apache2
curl -O
chmod +x wp-cli.phar
dev-ext /
Last active Aug 22, 2016
Change apache config for local development

Change apache config for local development

  • Change default htdocs folder
  • Add vertual host
  • HTTPS on
  • Change default usergroup