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=
@dev-ext
dev-ext / install.sh
Last active July 12, 2018 04:08
ubuntu gitkraken install from terminal
wget https://release.gitkraken.com/linux/gitkraken-amd64.deb
sudo dpkg -i --force-depends gitkraken-amd64.deb
sudo apt-get install -f
rm -f gitkraken-amd64.deb
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 / setup.sh
Last active December 15, 2016 04:37
Dependency Instalation for Wpautomate ubuntu 16.10
#http://www.tecmint.com/install-lamp-on-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
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",
@dev-ext
dev-ext / phpcs.sublime.settings
Last active November 4, 2016 17:11
Installing phpcs
{
"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
dev-ext / doc.md
Last active November 4, 2016 18:17
Wpautomate
@dev-ext
dev-ext / install.sh
Last active October 21, 2016 21:44
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 https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar
chmod +x wp-cli.phar
@dev-ext
dev-ext / readme.md
Last active August 22, 2016 17:56
Change apache config for local development

Change apache config for local development

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