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
@schalkburger
schalkburger / debugTimeout.js
Created August 22, 2021 14:22
Debugger Timeout Bookmarklet
javascript:var duration = prompt('Duration?');setTimeout(function() { debugger; }, duration);
@schalkburger
schalkburger / demo.cfg
Created February 26, 2021 02:04
Schalk's demo.cfg
// Schalk's demo.cfg
// https://gist.github.com/schalkburger/3553517e2db3cf094a3672d235cc50e1
// Updated: 2021-02-26 04:00:26
// --- 1. Aliases --- //
net_graph 0
alias c "clear" //Fast clear console alias
alias mm "bind kp_enter kp_enter_switch;bind kp_ins demo_goto_1x_back;bind kp_del demo_goto_1x_forward"
alias faceit "bind kp_enter kp_enter_switch_faceit;bind kp_ins demo_goto_1x_back_faceit;bind kp_del demo_goto_1x_forward_faceit"
@schalkburger
schalkburger / warmup.cfg
Created February 26, 2021 02:02
Schalk's warmup.cfg
// Schalk's warmup.cfg
// https://github.com/schalkburger/csgo-autoexec
// Updated: 2021-02-26 04:01:24
// --- 1. TRAINING SETTINGS --- //
sv_cheats 1 // allows for god mode and no clip
developer "1"
con_enable "1"
con_filter_enable "2"
@schalkburger
schalkburger / csgo-alt-tab-fps-fix.cfg
Last active February 28, 2021 14:21
CS:GO Alt + Tab FPS Fix
// This command can be used to disable, lengthen or shorten, the "sleeping" of the game engine when you are tabbed out, or CS:GO is not your current active window. Usually, when you tab out of CS:GO, the engine will "sleep" for a set amount of milliseconds (repeatedly) to reduce power and resource usage - this will lower your FPS and lag any locally hosted servers when tabbing out. Set this to 0 to completely disable the sleeping of the engine when tabbed out.
engine_no_focus_sleep 0
@schalkburger
schalkburger / clubhouse-stylus-styles.css
Created February 26, 2020 21:19
My Clubhouse Stylus Styles
body,
html {
background: #F9F9F9;
}
a {
color: #007CC2;
}
.markdown-formatted p {
function custom_body_classes($classes)
{
// the list of WordPress global browser checks
// https://codex.wordpress.org/Global_Variables#Browser_Detection_Booleans
$browsers = ['is_iphone', 'is_chrome', 'is_safari', 'is_NS4', 'is_opera', 'is_macIE', 'is_winIE', 'is_gecko', 'is_lynx', 'is_IE', 'is_edge'];
// check the globals to see if the browser is in there and return a string with the match
$classes[] = join(' ', array_filter($browsers, function ($browser) {
return $GLOBALS[$browser] ;
}));
return $classes;
@schalkburger
schalkburger / share-twitter.js
Created December 16, 2019 20:34
Share Website Twitter Bookmarklet
javascript:(function(){n=getSelection().anchorNode;t=n.nodeType===3?n.data:n.innerText;t='“'+t+'” – ';window.open(`https://twitter.com/intent/tweet?text=${encodeURIComponent(t)}${document.location.href}`)})()
@schalkburger
schalkburger / csgo_no_recoil.bat
Created November 14, 2019 00:29
CS:GO with no recoil
weapon_accuracy_nospread 1
weapon_recoil_scale 0
crosshair 0
weapon_recoil_view_punch_extra 0
@schalkburger
schalkburger / bookmarklet-debug-css.js
Created July 22, 2018 18:49
Bookmarklet - Debug CSS
javascript:(function(d,i,l){l=d.getElementById(i);if(l){l.parentNode.removeChild(l);return;}l=d.createElement('link');l.id=i;l.rel='stylesheet';l.type='text/css';l.href='//imbrianj.github.io/debugCSS/debugCSS.css';d.getElementsByTagName('head')[0].appendChild(l);}(document,'debugCSS'))
@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); })();