Skip to content

Instantly share code, notes, and snippets.

gist(1) -- upload code to https://gist.github.com
=================================================
## Synopsis
The gist gem provides a `gist` command that you can use from your terminal to
upload content to https://gist.github.com/.
## Installation
#! /usr/bin/env bash
# Populate the current shell with environment variables sourced from the .env
# file in the current working directory.
#
# This script is designed to take advantage of how Yarn assigns the INIT_CWD
# environment variable based on where a package.json script is called from in a
# workspace-enabled project.
#
# EXAMPLE USAGE:
#! /usr/bin/env bash
read -d '\0' HEREDOC << 'EOF'
usage: compare.sh <flag>
<flag> [1> <path>] [2> <path>]
EOF
echo "${HEREDOC}"
readonly FLAG="UHVscCBGaWN0aW9u"
/// <reference path="jest-chain" />
/// <reference path="jest-extended" />
import { main } from "./index";
describe(`${main.name}()`, () => {
const value = 1337 as const;
it(`resolves to ${value} (1)`, async () => {
await expect(main())
@RA80533
RA80533 / jest-chain+1.1.5.patch
Created November 12, 2020 20:30
Patch for jest-chain which fixes several outstanding issues including Promise support and error propagation
diff --git a/node_modules/jest-chain/dist/chain.js b/node_modules/jest-chain/dist/chain.js
index 4a7b85b..cf756ba 100644
--- a/node_modules/jest-chain/dist/chain.js
+++ b/node_modules/jest-chain/dist/chain.js
@@ -17,18 +17,20 @@ class JestAssertionError extends Error {
}
-const chainMatchers = (matchers, originalMatchers = matchers) => {
+const chainMatchers = (matchers, originalMatchers = matchers, value = undefined) => {
@RA80533
RA80533 / parcel-bundler+1.12.4.patch
Created November 12, 2020 20:36
Patch for parcel-bundler which fixes several outstanding issues
diff --git a/node_modules/parcel-bundler/src/Resolver.js b/node_modules/parcel-bundler/src/Resolver.js
index 825e45d..471cd26 100755
--- a/node_modules/parcel-bundler/src/Resolver.js
+++ b/node_modules/parcel-bundler/src/Resolver.js
@@ -175,6 +175,10 @@ class Resolver {
let parts = getModuleParts(filename);
let root = path.parse(dir).root;
+ if (parts[0] === 'core-js') {
+ dir = path.resolve(require.main.children[0].path, '../..');
.vscode-body pre,
.vscode-body code {
font-family: Menlo, Monaco, 'Courier New', monospace;
}
@RA80533
RA80533 / tsconfig.jsonc
Created June 8, 2021 05:00
Least permissive configuration
{}
# .zprofile
PATH="${HOME}/.local/bin:${PATH}"
function () {
local BREW_PREFIX="${HOME}/.local/opt/homebrew"
alias brew="${BREW_PREFIX}/bin/brew"
function () {
@RA80533
RA80533 / example_usage.pp
Created November 8, 2022 21:55 — forked from yakatz/example_usage.pp
Manage System Git Config with Puppet
class myweb::sites::wiki_example_com {
wiki_base = '/var/www/sites/wiki.example.com'
include ::profile::gitconfig
profile::gitconfig::safe_directory {"${wiki_base}/code/mediawiki-1.35-LTS":}
vcsrepo { "${wiki_base}/code/mediawiki-1.35-LTS/":
ensure => latest,
provider => git,
source => 'git@gitlab.example.com:wiki/mediawiki-1.35-LTS.git',