Skip to content

Instantly share code, notes, and snippets.

View xenialaq's full-sized avatar

Alex xenialaq

View GitHub Profile
@xenialaq
xenialaq / wp.sh
Created August 19, 2021 06:58 — forked from bgallagh3r/wp.sh
Wordpress: Bash Install Script -- Downloads latest WP version, updates wp-config with user supplied DB name, username and password, creates and CHMOD's uploads dir, copies all the files into the root dir you run the script from, then deletes itself!
#!/bin/bash -e
clear
echo "============================================"
echo "WordPress Install Script"
echo "============================================"
echo "Database Name: "
read -e dbname
echo "Database User: "
read -e dbuser
echo "Database Password: "
@xenialaq
xenialaq / install-nginx-mariadb-phpfpm-on-ubuntu-20.04.md
Created August 19, 2021 06:50 — forked from nd3w/install-nginx-mariadb-phpfpm-on-ubuntu-20.04.md
How to Install Nginx, MariaDB, PHP-FPM on Ubuntu 20.04

How to Install Nginx, MariaDB, PHP-FPM on Ubuntu 20.04

This is a way to install and set up Nginx, MariaDB and PHP-FPM on Ubuntu 20.04.

NOTE: This has been prepared for ease of use in mind, not security, mostly in development machine. Please do not use these instructions to setup on a public server environment. Use other proper manuals instead.

$ sudo apt update

Nginx

@xenialaq
xenialaq / gist:3b5a8bfbcad8cd7ad319123ca18ead47
Created October 20, 2020 17:04
Stubby's uci config for OpenWrt with RPI running as a wlan client
config stubby 'global'
option manual '0'
option trigger 'wwan'
# option triggerdelay '2'
list dns_transport 'GETDNS_TRANSPORT_TLS'
option tls_authentication '1'
option tls_query_padding_blocksize '256'
# option tls_connection_retries '2'
# option tls_backoff_time '3600'
# option timeout '5000'
@xenialaq
xenialaq / essential_packages.sh
Last active December 27, 2016 06:54
Fedora Setup (Fedora Mate 25)
#!/bin/bash
sudo dnf install -y @development-tools && \
sudo dnf install -y \
git curl nano gedit vim kdiff3 \
chromium fcitx cloc gtkhash p7zip gparted baobab gimp pinta \
meshlab python-nose \
okular \
redshift redshift-gtk \
java-1.8.0-openjdk nginx \
@xenialaq
xenialaq / essential_packages.sh
Last active November 12, 2017 01:11
Ubuntu Setup (Ubuntu MATE 17.10)
#!/bin/bash
sudo apt-get install -y \
build-essential git curl nano gedit vim kdiff3 ubuntu-make octave \
chromium-browser fcitx cloc gtkhash p7zip gparted baobab gimp pinta uncrustify \
imagemagick meshlab python-nose \
muon okular python3-pyqt4 pavucontrol pulseaudio-equalizer \
redshift redshift-gtk \
openjdk-8-jdk nginx \
xdotool tidy python-gpgme autoconf libqt5opengl5 \