Skip to content

Instantly share code, notes, and snippets.

@andrewhenke
andrewhenke / wp-config.php
Created March 10, 2023 15:20 — forked from MikeNGarrett/wp-config.php
All those damned wp-config constants you can never remember.
<?php
// PHP memory limit for this site
define( 'WP_MEMORY_LIMIT', '128M' );
define( 'WP_MAX_MEMORY_LIMIT', '256M' ); // Increase admin-side memory limit.
// Database
define( 'WP_ALLOW_REPAIR', true ); // Allow WordPress to automatically repair your database.
define( 'DO_NOT_UPGRADE_GLOBAL_TABLES', true ); // Don't make database upgrades on global tables (like users)
// Explicitely setting url

Keybase proof

I hereby claim:

  • I am andrewhenke on github.
  • I am andrewhenke (https://keybase.io/andrewhenke) on keybase.
  • I have a public key ASBZA-o73RWqfi7SrvK5Kqh5ghfZ7kH1AYjGWpakpfb2yAo

To claim this, I am signing this object:

@andrewhenke
andrewhenke / initdb.sh
Last active July 3, 2021 20:35
Mattermost MySQL database & user interactive setup tool.
#!/bin/bash
set -euo pipefail
clear
echo "Thank you for using the automatic database & user initialization tool"
echo "This script is developed by Andrew Henke - https://andrewhenke.com"
clear
sudo apt-get install mysql-server &>/dev/null
#Install Screen
@andrewhenke
andrewhenke / importaliases.sh
Last active May 14, 2024 14:26
Script to auto-import and configure the bash aliases given at https://andrewhenke.com/bash-aliases-to-make-your-life-easier/
#!/bin/bash
FILE="$HOME/.bash_aliases"
if [ -f "$FILE" ]; then
echo "Bash Aliases file detected - backing up"
mv "$FILE" "${FILE}.bak"
echo "Backup created: ${FILE}.bak"
else
echo "Bash Aliases file does not exist, proceeding"
@andrewhenke
andrewhenke / .bash_aliases
Last active May 14, 2024 13:49
Bash Aliases for Linux OS's
## To make sure that your .bash_aliases file is loaded by bash, make sure that you have the following code in your ~/.bashrc file:
# if [ -e $HOME/.bash_aliases ]; then
# source $HOME/.bash_aliases
# fi
#
# If you don't have the above code snippet in your .bashrc file, add it to the file, save it, and then run the command "source ~/.bashrc"
#All the standard automatic color formatting of the typical commands - these are in your .bashrc file by default.
alias ls='ls --color=auto'
alias dir='dir --color=auto'
@andrewhenke
andrewhenke / GoogleDorking.md
Created April 30, 2020 19:12 — forked from sundowndev/GoogleDorking.md
Google dork cheatsheet

Google dork cheatsheet

Search filters

Filter Description Example
allintext Searches for occurrences of all the keywords given. allintext:"keyword"
intext Searches for the occurrences of keywords all at once or one at a time. intext:"keyword"
inurl Searches for a URL matching one of the keywords. inurl:"keyword"
allinurl Searches for a URL matching all the keywords in the query. allinurl:"keyword"
intitle Searches for occurrences of keywords in title all or one. intitle:"keyword"