Rewrite Express Engine Urls

<IfModule mod_rewrite.c>

# Enable Rewrite Engine
# ------------------------------
RewriteEngine On
RewriteBase /

# Redirect index.php Requests
# ------------------------------
RewriteCond %{THE_REQUEST} ^GET.*index\.php [NC]
RewriteCond %{THE_REQUEST} !/system/.*
RewriteRule (.*?)index\.php/*(.*) /$1$2 [R=301,L]

# Standard ExpressionEngine Rewrite
# ------------------------------
RewriteCond $1 !\.(css|js|gif|jpe?g|png) [NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php/$1 [L]

Read More!

Execute bash script from URL on Linux command line

source <(curl -s
bash <(curl -s

Install with curl as well pass arguments

curl -s | bash -s arg1 arg2
Flag "-s" makes shell read from stdin.
bash <(wget -qO-
wget -O -| bash
Read More!

Install firmware Linux Debian Buster or Stretch

Go to link

extract zip

open terminal in folder or cd into directory of firmware tar

sudo dpkg -i *.deb

basically, what this does is fills in the rest of the name in place of the * character. You may encounter an error saying dependencies not met, if you see this then you can run

sudo apt-get install -f
Read More!

Things to do after installing Linux Debian Buster or Stretch

Keep Debian up to date
sudo apt-get update && sudo apt-get upgrade && sudo apt-get dist-upgrade && sudo apt-get autoremove
su -
apt-get install sudo
adduser "USERNAME" sudo
apt-get update
apt-get upgrade
install dash to dock extension

Configure non-free repositories

Open /etc/apt/sources.list using Nano text editor:

sudo nano /etc/apt/sources.list

//Add contrib non-free after main
deb buster-updates main non-free contrib

sudo apt update
sudo apt upgrade
sudo reboot
sudo nano /etc/default/grub
sudo update-grub

[display-posts id=”36″]

Read More!

Need Help With Code?