Skip to content

Instantly share code, notes, and snippets.

@adamz01h
adamz01h / installPhp.sh
Created February 4, 2025 23:45 — forked from ankit1057/installPhp.sh
Install Lampp on termux
#!/bin/bash
# Update packages
apt update
apt upgrade -y
# Install Apache and PHP
apt install php-apache -y
# Install MySQL
# at least in deb/untu
sudo apt-get install libpam-google-authenticator
# for each user
google-authenticator
@adamz01h
adamz01h / wordpress_change_db_urls.sql
Created April 20, 2023 18:13 — forked from harishkotra/wordpress_change_db_urls.sql
Change and Update WordPress URLS in Database When Site is Moved to new Host. After migrating a WordPress site to a new URL either to a live production site or a testing development server, the new URL strings in the mysql database need to be changed and updated in the various mysql database tables.
UPDATE wp_options SET option_value = replace(option_value, 'http://www.oldurl', 'http://www.newurl') WHERE option_name = 'home' OR option_name = 'siteurl';
UPDATE wp_posts SET guid = replace(guid, 'http://www.oldurl','http://www.newurl');
UPDATE wp_posts SET post_content = replace(post_content, 'http://www.oldurl', 'http://www.newurl');
UPDATE wp_postmeta SET meta_value = replace(meta_value,'http://www.oldurl','http://www.newurl');
@adamz01h
adamz01h / ubuntu_unattended_upgrades_gmail.markdown
Last active October 27, 2017 03:59 — forked from roydq/ubuntu_unattended_upgrades_gmail.markdown
Unattended upgrades on Ubuntu 14.04 with email notifications

Getting Started

Do yourself a favor and login as root to save yourself some time and headaches:

$ sudo su -

Install unattended-upgrades: