This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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": "" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"bootstrapped": true, | |
"in_process_packages": | |
[ | |
], | |
"installed_packages": | |
[ | |
"AngularJS", | |
"AutoFileName", | |
"Better Completion", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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 |
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/
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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= |
OlderNewer