Skip to content

Instantly share code, notes, and snippets.

View DeadlySurgeon's full-sized avatar
💉

The Surgeon DeadlySurgeon

💉
View GitHub Profile
@DeadlySurgeon
DeadlySurgeon / .env
Last active December 5, 2023 15:51
Settings Example
DATABASE_TABLE=example
DATABASE_DSN=example:[email protected]/example
DATABASE_DRIVER=mysql
PING_LOCATIONS=one,two,three

Strbuf

A small lib to help process and keep a small history of the past STDOUT/STDERR to show off, as well as a line parser to help ease the work needed to get functions called if lines appear in STDOUT/STDERR.

License

Copyright 2022 The Deadly Surgeon

Licensed under the Apache License, Version 2.0 (the "License"); you may not use these files except in compliance with the License. You may obtain a copy of the License at

/*
* robotNav.js
*
* The green key is located in a slightly more
* complicated room. You'll need to get the robot
* past these obstacles.
*/
function startLevel(map) {
// Hint: you can press R or 5 to "rest" and not move the
@DeadlySurgeon
DeadlySurgeon / README.md
Last active April 15, 2020 02:03
Mac SUDO Touchbar

Sudo Touchbar

Done on macOS 10.15.3
This outlines basic instructions on how to make it so that when you run a sudo command, it asks for the touchbar. The only annoying part of this is that it pops up a window instead of just staying in the terminal.

sudo File

WARNING: If you fuck up this file, you probably won't be able to execute sudo.

So, these lines will need to be at the top of the /etc/pam.d/sudo file.