Skip to content

Instantly share code, notes, and snippets.

View schalkburger's full-sized avatar
💪
eat sleep code repeat

Schalk Burger schalkburger

💪
eat sleep code repeat
View GitHub Profile

AI Developer Prompt

AI Developer prompt for GPT-4. This prompt was tested in GPT-4.

Prompt:

Assistant:creates software; is expert in programming, documentation, security, and implementing best practices; asks questions until confident to engineer software to user specification; will not require users to provide code;will deliver complete and functional applications based on client requests;will provide source code in multiple messages; will pause and ask user to say 'next before continuing split files;will use markdown in all messages; will always produce the project code, no matter how long it is; relies on SOLID and DRY code principles.

Assistant will begin each message with "CodePup 3.0:"
@schalkburger
schalkburger / itemsid.txt
Created November 10, 2023 12:30
Sons of the Forest Items ID Dump
3dPrintedArrow = 618,
3dPrintedArrowHeads = 559,
3dPrintedFlask = 426,
3dPrintedFlowerPot = 561,
3dPrintedGpsLocatorCase = 657,
3dPrintedGrapplingHook = 560,
3dPrintedKnife = 427,
3dPrintedSled = 428,
3dPrintedUnderwaterMask = 429,
3dPrinterResin = 390,
@schalkburger
schalkburger / csgo-sounds-list.txt
Created September 10, 2023 10:20
CS:GO playvol sounds list
playvol error 1
playvol ambient\fallscream 1
playvol ambient\opera 1
playvol ambient\tankidle2 1
playvol ambient\waterrun 1
playvol ambient\water_splash1 1
playvol ambient\water_splash2 1
playvol ambient\water_splash3 1
playvol ambient\animal\bird1 1
playvol ambient\animal\bird10 1
@schalkburger
schalkburger / streamlink-twitch.ps1
Last active August 6, 2023 19:06
Watch a Twitch stream using Streamlink
@schalkburger
schalkburger / fontmapping.cfg
Last active June 7, 2023 14:26
Counter-Strike: Global Offensive fontmapping.cfg file
"english"
{
// * each section must include a "fontlib" key with the path to the fontlib swf
"fontlib" "resource/flash/fontlib.swf" [$WIN32||$OSX]
"fontlib_latin" "resource/flash/fontlib_latin.swf" [$X360||$PS3]
"fontlib_russian" "resource/flash/fontlib_russian.swf" [$X360||$PS3]
"fontlib_schinese" "resource/flash/fontlib_schinese.swf" [$PS3]
"fontlib_tchinese" "resource/flash/fontlib_tchinese.swf" [$X360||$PS3]
"fontlib_japanese" "resource/flash/fontlib_japanese.swf" [$X360||$PS3]
"fontlib_korean" "resource/flash/fontlib_korean.swf" [$X360||$PS3]
@schalkburger
schalkburger / fonts.conf
Last active June 3, 2023 18:40
Counter-Strike: Global Offensive fonts.conf file
<?xml version='1.0'?>
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
<fontconfig>
<!-- Choose an OS Rendering Style. This will determine B/W, grayscale,
or subpixel antialising and slight, full or no hinting and replacements (if set in next option) -->
<!-- Style should also be set in the infinality-settings.sh file, ususally in /etc/profile.d/ -->
<!-- Choose one of these options:
Infinality - subpixel AA, minimal replacements/tweaks, sans=MY_FONT
@schalkburger
schalkburger / sql-mass-search-replace.sql
Created March 8, 2016 10:38
WordPress database mass search and replace
UPDATE wp_options SET option_value = replace(option_value, 'http://www.oldurl', 'http://www.newurl') WHERE option_name = 'home' OR option_name = 'siteurl';
UPDATE wp_posts SET guid = replace(guid, 'http://www.oldurl','http://www.newurl');
UPDATE wp_posts SET post_content = replace(post_content, 'http://www.oldurl', 'http://www.newurl');
UPDATE wp_postmeta SET meta_value = replace(meta_value,'http://www.oldurl','http://www.newurl');
@schalkburger
schalkburger / bookmarklet-tweet-current-page.js
Created February 1, 2022 17:44
A simple bookmarklet to tweet the current page
javascript:(function(){n=getSelection().anchorNode;if(!n){t=document.title;}else{t=n.nodeType===3?n.data:n.innerText;}t=%27“%27+t.trim()+%27”\n\n%27;window.open(`https://twitter.com/compose/tweet?text=${encodeURIComponent(t)}${document.location.href}`)})();
@schalkburger
schalkburger / bookmarklet-svg-crowbar.js
Last active December 19, 2021 19:24
Bookmarklet - SVG Crowbar
javascript:(function () { var e = document.createElement('script'); e.setAttribute('src', 'https://nytimes.github.io/svg-crowbar/svg-crowbar-2.js'); e.setAttribute('class', 'svg-crowbar'); document.body.appendChild(e); })();
@schalkburger
schalkburger / findingfixing-unintended-body-overflow.js
Created December 19, 2021 19:21
Finding/Fixing Unintended Body Overflow
javascript:var docWidth = document.documentElement.offsetWidth; [].forEach.call( document.querySelectorAll('*'), function(el) { if (el.offsetWidth > docWidth) { console.log(el); } } );