Skip to content

Instantly share code, notes, and snippets.

@deeftah
deeftah / wp-auto-login.php
Created November 22, 2021 15:42 — forked from jacks0n/wp-auto-login.php
Automatically login to WordPress, with a given user and optionally whitelist IPs. Add this to the bottom of wp-config.php, or your theme functions.php. To automatically login, visit the admin login page (/wp-login.php or /wp-admin/).
/**
* Automatically logs in a visitor when accessing the admin login area (/wp-login.php)
*
* @author Jackson Cooper <jackson@jacksonc.com>
* @copyright Copyright (c) 2014, Jackson Cooper
* @license MIT
*
* Whitelist IPs: add IPs to whitelist in $ip_whitelist. If it is empty, it will allow all IPs.
* Username: Specify the username to login as with the "user" GET parameter (eg. ?user=admin).
* If the "user" get parameter is not set, $default_user_login will be used. If set
@deeftah
deeftah / private_fork.md
Created August 10, 2021 09:15 — forked from 0xjac/private_fork.md
Create a private fork of a public repository

The repository for the assignment is public and Github does not allow the creation of private forks for public repositories.

The correct way of creating a private frok by duplicating the repo is documented here.

For this assignment the commands are:

  1. Create a bare clone of the repository. (This is temporary and will be removed so just do it wherever.)

git clone --bare git@github.com:usi-systems/easytrace.git

# installation
sudo apt-get install clamav clamav-daemon
sudo yum install clamav
# build the database
sudo freshclam
# Scan the home to find virus, make sound when found
sudo clamscan -r /home/user --bell