Skip to content

Instantly share code, notes, and snippets.

:octocat:
Finalizing

Juyal Ahmed tojibon

Block or report user

Report or block tojibon

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@tojibon
tojibon / install.md
Created Jan 7, 2018
Install WordPress via WP-CLI
View install.md
# Download and Configure WordPress   
wp core download   
wp core config --dbhost=host.db --dbname=prefix_db --dbuser=username --dbpass=password   

# Configure wp-config.php   
chmod 644 wp-config.php   
wp core install --url=yourwebsite.com --title="Your Blog Title" --admin_name=wordpress_admin --admin_password=4Long&Strong1 --admin_email=you@example.com   

# Enable File Uploading   
@tojibon
tojibon / ControllerTrait.php.md
Last active Nov 14, 2017
CakePHP 3.5.x vs Croogo 3.0.x Can't activate Croogo/Core theme fix
View ControllerTrait.php.md

Find Line Around - 51:

if (is_callable($callable)) {
    return call_user_func_array($callable, $request->params['pass']);
}

Replace:

if (is_callable($callable) && $request->params['action'] === 'activate' && is_array($request->params['pass'])) {
    return call_user_func_array($callable, [join('/',  $request->params['pass'])]);
View install_docker.sh
#!/bin/bash
apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
apt-add-repository 'deb https://apt.dockerproject.org/repo ubuntu-xenial main'
apt-get update
apt-get install -y docker-engine
systemctl enable docker
usermod -aG docker ubuntu
curl -o /usr/local/bin/docker-compose -L "https://github.com/docker/compose/releases/download/1.11.2/docker-compose-$(uname -s)-$(uname -m)"
chmod +x /usr/local/bin/docker-compose
docker-compose -v
@tojibon
tojibon / readme.md
Created Sep 27, 2017
WordPress ubuntu plugin Installation failed: Could not create directory.
View readme.md

Open terminal and move to your WordPress root and execute below commands:

sudo chown -R www-data:www-data ./
sudo find ./ -type d -exec chmod 755  {} \;
sudo find ./ -type f -exec chmod 644  {} \;
View google.html
<!doctype html>
<html itemscope="" itemtype="http://schema.org/WebPage" lang="en">
<head>
<meta content="IE=edge" http-equiv="X-UA-Compatible">
<meta content="text/html; charset=UTF-8" http-equiv="content-type">
<meta content="Search the world's information, including webpages, images, videos and more. Google has many special features to help you find exactly what you're looking for."
name="description">
<meta content="noodp" name="robots">
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
<meta content="/images/branding/googleg/1x/googleg_standard_color_128dp.png" itemprop="image">
@tojibon
tojibon / install.md
Last active May 9, 2019
Installing Croogo 3.0.0-alpha.3 with CakePHP 3.x
View install.md
composer create-project croogo/app croogoapp 3.0.x-dev 
cd croogoapp
bin/cake Croogo/Install.install admin admin
bin/cake server

sudo chmod -R 0777 ./tmp/cache/queries/
sudo chmod -R 0777 ./tmp/cache/persistent/
@tojibon
tojibon / install.md
Last active Mar 20, 2019
Some common installation task for Linux after installing OS
View install.md
sudo apt-get install -y build-essential
sudo apt-get install curl -y
sudo apt-get install libpng-dev libjpeg-dev -y
sudo apt-get install pngquant -y
sudo apt-get install git -y
sudo apt-get install openssh-server -y
sudo apt-get install unrar -y
# Fix local issue: https://askubuntu.com/questions/162391/how-do-i-fix-my-locale-issue
@tojibon
tojibon / install.md
Created Mar 14, 2017
Upgrade Node.js via NPM
View install.md
sudo npm cache clean -f   
sudo npm install -g n   
sudo n stable   
sudo n 0.8.21   
node -v   
@tojibon
tojibon / readme.md
Last active Nov 21, 2018
CakePHP 3.x and Croogo 3.x Creating a Custom Plugin
View readme.md

Creating Plugins For Croogo

sudo bin/cake bake plugin Apps

You will be asked to choose a location of the plugin. Select outermost Plugin/ folder.
Creates proper directory structure for new plugin
Adds entry in config/bootstrap.php file to load newly created plugin It is recommended that you delete entry of newly baked plugin from config/bootstrap.php file as you will be able to enable-disable plugin from UI. The line will look something like:

@tojibon
tojibon / install.md
Created Dec 15, 2016
Installing Spring STS or Eclipse IDE on Linux Mint 18 "Sarah"
View install.md
  1. Download https://spring.io/tools latests
  2. Rename the extracted bundle as "springsource"
  3. sudo mv springsource /opt
  4. sudo chown -R root:root /opt/springsource
  5. sudo chmod -R +r /opt/springsource
  6. sudo cp /opt/springsource/sts-3.8.2.RELEASE/icon.xpm /usr/share/pixmaps/sts.xpm [Your version can be different]
  7. sudo touch /usr/share/applications/sts.desktop<<EOF [Desktop Entry] Encoding=UTF-8 Name=Spring IDE
You can’t perform that action at this time.