Skip to content

Instantly share code, notes, and snippets.

View montchr's full-sized avatar
🎢

chris montgomery montchr

🎢
View GitHub Profile
@montchr
montchr / README.md
Last active February 8, 2022 18:59
BlueConic Bookmarklets

BlueConic Bookmarklets

Installation

Firefox

  1. Right-click the bookmarks bar
  2. In the URL field, paste the "Content" snippet
  3. Name the bookmark whatever you like
@montchr
montchr / README.md
Last active February 22, 2022 18:13
git-cliff configuration for work flows

Run the following command from any location within a repo, replacing the value of BASE_BRANCH with the base branch for your feature branch if necessary:

BASE_BRANCH="main" && git-cliff -r $(git rev-parse --show-toplevel) -- "$BASE_BRANCH..HEAD"

On macOS, you can easily copy the output of this command directly to your clipboard by piping it into pbcopy:

BASE_BRANCH="main" && git-cliff -r $(git rev-parse --show-toplevel) -- "$BASE_BRANCH..HEAD" | pbcopy
@montchr
montchr / ANSI.md
Created April 28, 2022 15:23 — forked from fnky/ANSI.md
ANSI Escape Codes

ANSI Escape Sequences

Standard escape codes are prefixed with Escape:

  • Ctrl-Key: ^[
  • Octal: \033
  • Unicode: \u001b
  • Hexadecimal: \x1B
  • Decimal: 27
#!/usr/bin/php -d open_basedir=/usr/syno/bin/ddns
<?php
if ($argc !== 5) {
echo 'badparam';
exit();
}
// Entered into DSM (Control Panel > External Access > DDNS)
$username = (string) $argv[1]; // Resource ID
{
"nodes": {
"agenix": {
"inputs": {
"nixpkgs": "nixpkgs"
},
"locked": {
"lastModified": 1652747504,
"narHash": "sha256-0FnoUBia9EYeDlg/XcPf043Tl/5RneSUaZ6IMsBYreY=",
"owner": "montchr",
# SPDX-FileCopyrightText: 2022-2023 Temple University
# SPDX-License-Identifier: GPL-3.0-or-later
{
inputs,
cell,
}: let
inherit (inputs) devenv nixpkgs std;
inherit (inputs.cells) logan-center media wordpress;
l = inputs.nixpkgs.lib // builtins;
prj = logan-center.meta.project;
@montchr
montchr / surfingkeys.config.js
Created February 18, 2023 03:21
surfingkeys configuration
// Compatibility Prefix
const {
Clipboard,
Front,
Hints,
Normal,
RUNTIME,
Visual,
aceVimMap,
addSearchAlias,
@montchr
montchr / BedrockTinkerwellDriver.php
Created April 12, 2023 19:11
Bedrock/Acorn Tinkerwell Driver
<?php
// @phpstan-ignore-file
use Illuminate\Support\Collection;
class BedrockTinkerwellDriver extends TinkerwellDriver
{
public function canBootstrap($projectPath)
{
@montchr
montchr / 1-first-run.log
Last active July 28, 2023 14:10
bud non-deterministic build
╭ logan-center [d3f153f7ee89d8e5] ./public
│ │ [stylelint]
│ │ resources/styles/app.css
│ │ 1:1 ✖ Unknown rule media-query-no-invalid media-query-no-invalid
│ │
│ │ 1 problem (1 error, 0 warnings)
│ app