Skip to content

Instantly share code, notes, and snippets.

View xmelsky's full-sized avatar
:octocat:
Git calm, commit and push

Dmitry Hmel xmelsky

:octocat:
Git calm, commit and push
View GitHub Profile
@xmelsky
xmelsky / README.md
Last active June 1, 2020 07:59
Animated weather icons React

DarkSky icons for React and OpenWeather API

import axios from "axios";
function getIcons() {
return axios
.get("https://young-cliffs-64944.herokuapp.com/icons")
.then(res => {
return res.data.data;
});
}
@xmelsky
xmelsky / gist:988fb0d348e20e2f5df104272e51cd80
Created October 23, 2020 19:04 — forked from ericandrewlewis/gist:95239573dc97c0e86714
Setting up a WordPress site on AWS

Setting up a WordPress site on AWS

This tutorial walks through setting up AWS infrastructure for WordPress, starting at creating an AWS account. We'll manually provision a single EC2 instance (i.e an AWS virtual machine) to run WordPress using Nginx, PHP-FPM, and MySQL.

This tutorial assumes you're relatively comfortable on the command line and editing system configuration files. It is intended for folks who want a high-level of control and understanding of their infrastructure. It will take about half an hour if you don't Google away at some point.

If you experience any difficulties or have any feedback, leave a comment. 🐬

Coming soon: I'll write another tutorial on a high availability setup for WordPress on AWS, including load-balancing multiple application servers in an auto-scaling group and utilizing RDS.

@xmelsky
xmelsky / express-server-side-rendering.md
Created May 1, 2021 19:13 — forked from joepie91/express-server-side-rendering.md
Rendering pages server-side with Express (and Pug)

Terminology

  • View: Also called a "template", a file that contains markup (like HTML) and optionally additional instructions on how to generate snippets of HTML, such as text interpolation, loops, conditionals, includes, and so on.
  • View engine: Also called a "template library" or "templater", ie. a library that implements view functionality, and potentially also a custom language for specifying it (like Pug does).
  • HTML templater: A template library that's designed specifically for generating HTML. It understands document structure and thus can provide useful advanced tools like mixins, as well as more secure output escaping (since it can determine the right escaping approach from the context in which a value is used), but it also means that the templater is not useful for anything other than HTML.
  • String-based templater: A template library that implements templating logic, but that has no understanding of the content it is generating - it simply concatenates together strings, potenti
@xmelsky
xmelsky / BitLockerSmartCardYubiKey.md
Created February 2, 2024 22:31 — forked from Boggin/BitLockerSmartCardYubiKey.md
Use YubiKey Smart Card for BitLocker on W10

Use YubiKey Smart Card for BitLocker on W10

Create certificate

The certificate will be an Encrypting File System (EFS) self-signed smart card certificate.

  • Control Panel > User Accounts > Manage your file encryption certificates
    Create new and store locally

YubiKey Manager