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',