Skip to content

Instantly share code, notes, and snippets.

View llebkered's full-sized avatar

llebkered

  • Melbourne, Australia
View GitHub Profile
@llebkered
llebkered / mysql-admin.txt
Last active October 21, 2020 00:24
Create WordPress admin using MySQL
INSERT INTO `wp_users` (`user_login`, `user_pass`, `user_nicename`, `user_email`, `user_status`)
VALUES ('newadmin', MD5('pass123'), 'firstname lastname', 'email@example.com', '0');
INSERT INTO `wp_usermeta` (`umeta_id`, `user_id`, `meta_key`, `meta_value`)
VALUES (NULL, (Select max(id) FROM wp_users), 'wp_capabilities', 'a:1:{s:13:"administrator";s:1:"1";}');
INSERT INTO `wp_usermeta` (`umeta_id`, `user_id`, `meta_key`, `meta_value`)
VALUES (NULL, (Select max(id) FROM wp_users), 'wp_user_level', '10');
@llebkered
llebkered / README-Template.md
Created January 18, 2020 03:27 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@llebkered
llebkered / navigation.js
Created October 5, 2019 06:19
Underscores Navigation JS with click away
/**
* File navigation.js.
*
* Handles toggling the navigation menu for small screens and enables TAB key
* navigation support for dropdown menus.
*/
(function() {
var container, button, menu, links, i, len;
container = document.getElementById("site-navigation");
@llebkered
llebkered / docker-compose.yml
Created May 20, 2019 07:26
Docker compose file for PHP 5.5 applications. Includes PHP, MySQL, PHPmyAdmin and PHP Composer
version: "3"
services:
#php web server
webphp:
image: edersondev/php5.5.9
ports:
- "80:80"
volumes:
- .:/var/www/html
# database