Skip to content

Instantly share code, notes, and snippets.

View johnnymillergh's full-sized avatar
💪
Coding & Building

Johnny Miller johnnymillergh

💪
Coding & Building
View GitHub Profile
@johnnymillergh
johnnymillergh / index.html
Created September 9, 2023 06:17
Music Station
<span>Johnny Miller</span>
<style type="text/css">
span {
font-weight: bold;
background: -webkit-linear-gradient(0deg, #205598, #4098dc, #58afbc, #df92ab, #ce5e6f, #d14280, #5d3073);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
</style>
@johnnymillergh
johnnymillergh / README.md
Last active May 1, 2024 00:35
Johnny's GitHub Public Profile Gist

Use output_action: gist to push output to a GitHub gist instead. It is required to provide a gist id to committer_gist option to make it work.

💡 This feature will use token instead of committer_token to push changes, so gists scope must be granted to the original token first

Example: push output to a gist

metrics:
@johnnymillergh
johnnymillergh / README.md
Last active October 30, 2022 09:46
Postman Scripts

Postman Scripts

Johnny Miller, Sun Oct 30 16:36:03 CST 2022

A Postman Scripts Collection like pre-request JavaScript script, tests script, Handlebars.js script.

" IdeaVim Wiki https://github.com/JetBrains/ideavim/wiki
" Find more examples here: https://jb.gg/share-ideavimrc
" The Essential IdeaVim Remaps https://towardsdatascience.com/the-essential-ideavim-remaps-291d4cd3971b
let mapleader=" "
""" Common settings
set showmode
set scrolloff=5
" Do incremental searching.
@johnnymillergh
johnnymillergh / folding.xml
Last active February 6, 2023 09:40
JetBrains Grep Console Configuration
<GrepConsoleItems>
<option name="items">
<GrepExpressionGroup>
<option name="grepExpressionItems">
<list>
<GrepExpressionItem>
<option name="action" />
<option name="caseInsensitive" value="false" />
<option name="clearConsole" value="false" />
<option name="continueMatching" value="false" />
@johnnymillergh
johnnymillergh / macOS Keyboard to Windows Key Mappings.ahk
Last active February 5, 2022 04:13
AutoHotkey Scripts (deprecated)
;-----------------------------------------
; macOS Keyboard to Windows Key Mappings
;=========================================
; --------------------------------------------------------------
; NOTES
; --------------------------------------------------------------
; ! = ALT/options
; ^ = CTRL
; + = SHIFT
@johnnymillergh
johnnymillergh / index.md
Last active June 19, 2023 04:40
Raspberry Pi OS Initialization

Raspberry Pi OS Initialization

These steps were validated on Raspberry Pi 4B. (Thu 6 Oct 15:05:21 HKT 2022)

         _,met$$$$$gg.           pi@raspberrypi4b
      ,g$$$$$$$$$$$$$$$P.        OS: Debian 11 bullseye
    ,g$$P""       """Y$$.".      Kernel: aarch64 Linux 5.15.61-v8+
   ,$$P'              `$$$.      Uptime: 20m
 ',$$P ,ggs. `$$b: Packages: 1427
@johnnymillergh
johnnymillergh / docker-compose-redis-cluster.yml
Created September 16, 2021 03:08
Redis cluster on docker
version: "3.8"
services:
redis-node-1:
container_name: ${REDIS_NODE_1_CONTAINER_NAME}
image:
bitnami/redis-cluster:${REDIS_CLUSTER_TAG}
ports:
- "6379:6379"
@johnnymillergh
johnnymillergh / auto-run-windows-for-compressed-zip.cmd
Last active September 13, 2021 07:16
Windows CMD Batch Script
@ECHO OFF
@REM ############################## auto-run ############################
@REM # Author: 钟俊, date: 2021-09-13 11:14:14.337 #
@REM # Copyright (c) 钟俊 #
@REM # Capability: Windows 10 Pro (20H2) #
@REM # Purpose: #
@REM # 1. Integrate easy and simple deployment, #
@REM # 2. Improve the efficiency of publishing frontend project (zip).#
@REM ####################################################################
@johnnymillergh
johnnymillergh / index.md
Last active April 20, 2021 01:24
Regular Expression Collection

Regular Expression Collection

Password with 3 types of character: alphabet, number, and special character.

const passwordRegExp = /^(?=.*([a-zA-Z].*))(?=.*[\d].*)(?=.*[!@#$%^&*\-+].*)[a-zA-Z\d!@#$%^&*\-+]{12,20}$/