Skip to content

Instantly share code, notes, and snippets.

View ermik's full-sized avatar
🍫
Where no one has gone before

Ermolay Romanov ermik

🍫
Where no one has gone before
View GitHub Profile
@jaredatch
jaredatch / wpforms-input-masks.md
Last active September 9, 2024 09:12
WPForms Input Masks

Basic Masks

Basic input masks use symbols to create the mask.

  • 9: Numeric
  • a: Alphabetical
  • A: Alphabetical (forces uppercase)
  • *: Alphanumeric
  • &: Alphanumeric (forces uppercase)
@gricard
gricard / webpack4upgrade.md
Last active February 29, 2024 20:23
Just some notes about my attempt to upgrade to webpack 4

If you enjoyed reading this, I'm intending to do more blogging like this over here: https://cdgd.tech

This is not a complaint about Webpack or v4 in any way. This is just a record of my process trying it out so I could provide feedback to the webpack team

Hmm... I don't see any docs for 4.0 on https://webpack.js.org. I guess I'll just wing it. All I need to do is npm i -D webpack@next, right?

+ [email protected]
// Copyright © 2019 Ooma Inc. All rights reserved.
import Foundation
import RIBs
import RxSwift
// MARK: - Plugin
public protocol Plugin: AnyObject {
associatedtype Component = Dependency
@ermik
ermik / GKScene+Frameworks.swift
Created June 14, 2019 00:25
GKScene extension for framework-local GameplayKit scene assets
/// Adds a convenience initializer for loading scenes from framework targets.
public extension GKScene {
/// Loads the bundle-specific SpriteKit scene file, creating a GKScene object containing the SpriteKit scene and associated GameplayKit objects.
/// - Parameters:
/// - filename: The name of a scene file in the given bundle.
/// - bundle: The bundle containing the scene file.
///
/// - Returns: A new GameplayKit scene.
///
@fideloper
fideloper / mount_aws_nvme_ephemeral.sh
Last active March 27, 2025 12:34
Find, format, and mount an AWS Ephemeral NVMe disk within ec2 in user data
#!/usr/bin/env bash
###
## This mounts a (single) ephemral NVMe drive in an EC2 server.
## It's meant to be run once, within user-data
## For EBS drives (non-ephemeral storage), see: https://gist.github.com/jalaziz/c22c8464cb602bc2b8d0a339b013a9c4
#