Skip to content

Instantly share code, notes, and snippets.

@RA80533
RA80533 / nlsh.py
Created May 8, 2024 01:20 — forked from dpoulopoulos/nlsh.py
OpenAI natural language shell example.
prompt = """
Input: Print the current directory
Output: pwd
Input: List files
Output: ls -l
Input: Change directory to /tmp
Output: cd /tmp
-- This example will configure an anchor to display the first private aura that
-- gets applied to the player.
--
-- Multiple calls for the same aura index can be made. This will in effect
-- create multiple distinct displays for the same aura index.
local AuraFrame1 = CreateFrame("Frame", UIParent);
AuraFrame1:SetPoint("CENTER");
AuraFrame1:SetSize(48, 48);
@RA80533
RA80533 / schema.sql
Created February 20, 2024 21:10 — forked from Gbps/schema.sql
CREATE DATABASE jpworgen;
CREATE TABLE IF NOT EXISTS jpworgen.ActiveItems
(
UpdateTime DateTime('UTC') CODEC (DoubleDelta),
ScanTime DateTime('UTC'),
RealmId UInt16,
Namespace LowCardinality(String),
Faction Enum8('Alliance' = 0, 'Horde' = 1),
AuctionId UInt32,

Improved .sr-only

Theorically bulletproof CSS class for visually hide anything and keep it accessible to ATs.

A Pen by ffoodd on CodePen.

License.

@RA80533
RA80533 / sed cheatsheet
Created May 2, 2023 14:09 — forked from ssstonebraker/sed cheatsheet
Sed Cheatsheet
FILE SPACING:
# double space a file
sed G
# double space a file which already has blank lines in it. Output file
# should contain no more than one blank line between lines of text.
sed '/^$/d;G'
@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',
# .zprofile
PATH="${HOME}/.local/bin:${PATH}"
function () {
local BREW_PREFIX="${HOME}/.local/opt/homebrew"
alias brew="${BREW_PREFIX}/bin/brew"
function () {
@RA80533
RA80533 / tsconfig.jsonc
Created June 8, 2021 05:00
Least permissive configuration
{}
.vscode-body pre,
.vscode-body code {
font-family: Menlo, Monaco, 'Courier New', monospace;
}
@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, '../..');