Skip to content

Instantly share code, notes, and snippets.

@dev-ext
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();
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 Jul 12, 2018
ubuntu gitkraken install from terminal
View install.sh
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
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
dev-ext / README.md
Created Nov 9, 2016 — forked from oodavid/README.md
Deploy your site with git
View README.md

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 Dec 15, 2016
Dependency Instalation for Wpautomate ubuntu 16.10
View setup.sh
#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 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,
"in_process_packages":
[
],
"installed_packages":
[
"AngularJS",
"AutoFileName",
"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
dev-ext / doc.md
Last active Nov 4, 2016
Wpautomate
View doc.md
@dev-ext
dev-ext / install.sh
Last active Oct 21, 2016
Lamp stack, sublime, appache2 configuration change, wp cli install, node install in Ubuntu 16.04
View install.sh
# 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 Aug 22, 2016
Change apache config for local development
View readme.md

Change apache config for local development

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