Skip to content

Instantly share code, notes, and snippets.

View mrpharderwijk's full-sized avatar

Marnix Harderwijk mrpharderwijk

View GitHub Profile
@mrpharderwijk
mrpharderwijk / install-wordpress-cli.md
Last active February 20, 2019 10:03
Install wordpress backend
  1. Create a database on server

  2. Download Worpdress

wp core download --allow-root
  1. Configure Wordpress
wp core config --dbname=[dbName] --dbuser=[dbUser] --dbpass=[dbPass] --dbhost=[dbHost] --allow-root
@mrpharderwijk
mrpharderwijk / .editorconfig
Created February 20, 2019 10:08
Default project files
# Editor configuration, see http://editorconfig.org
root = true
[*]
charset = utf-8
indent_style = space
indent_size = 2
insert_final_newline = true
trim_trailing_whitespace = true
@mrpharderwijk
mrpharderwijk / MONGO-COMMANDS.md
Last active April 16, 2019 09:31
MongoDB Cheatsheet

Export to a directory

mongodump -d <database_name> -o <directory_backup>

Import all collections of a directory

mongorestore --host <host> --port <port> --db <database_name> <directory_backup>

Start mongo

mongod

@mrpharderwijk
mrpharderwijk / GLOB-PATTERNS.md
Last active April 16, 2019 09:30
Glob patterns

Glob Primer

"Globs" are the patterns you type when you do stuff like ls *.js on the command line, or put build/* in a .gitignore file.

Before parsing the path part patterns, braced sections are expanded into a set. Braced sections start with { and end with }, with any number of comma-delimited sections within. Braced sections may contain slash characters, so a{/b/c,bcd} would expand into a/b/c and abcd.

@mrpharderwijk
mrpharderwijk / index.html
Created October 18, 2022 11:33
building-a-simple-one-page-website-with-bootstrap-and-github-pages
<!DOCTYPE html>
<html lang="en">
<head>
<meta
http-equiv="Content-Type"
content="text/html; charset=utf-8"
/>
<meta
name="description"