Skip to content

Instantly share code, notes, and snippets.

@nunof07
nunof07 / setup.sql
Created Apr 5, 2019
Create WordPress admin account through SQL
View setup.sql
INSERT INTO `wp_users` (`user_login`, `user_pass`, `user_nicename`, `user_email`, `user_status`) VALUES ('your login', MD5('your password'), 'your name', 'your@email.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');
@nunof07
nunof07 / custom.txt
Last active Jun 3, 2018
Phaser 3 export format for "Free texture packer"
View custom.txt
{
"textures": [
{
"image": "{{config.imageName}}",
"format": "{{config.format}}",
"size": {
"w": {{config.imageWidth}},
"h": {{config.imageHeight}}
},
"scale": {{config.scale}},
@nunof07
nunof07 / example.ts
Last active May 3, 2021
TypeScript final and frozen class decorators
View example.ts
import { final } from './final.ts';
import { frozen } from './frozen.ts';
@final
@frozen
export class Example {
}
export class ExampleSub extends Example {
}