Skip to content

Instantly share code, notes, and snippets.

View m3mnoch's full-sized avatar

Christopher D. Chapman m3mnoch

View GitHub Profile
#!/bin/bash
# Check if the script is run as root
if [ "$(id -u)" -ne 0 ]; then
echo "This script must be run as root." >&2
exit 1
fi
# Prompt for the username
read -p "Enter the username for the new user: " username
did:3:bafyreidnhh3q45llvqytdeml3xxmn7wl2hm6rzgz4yfixq44url6yky3hi
@m3mnoch
m3mnoch / gamestate.ts
Created August 19, 2018 14:45
quick dcl state machine example
export default interface IState {
onUpdate(deltaTime: number): void;
onEnter(param?: any): void;
onExit(): void;
}
export namespace GameStateMachine {
const sceneStates: { [id: string]: IState } = {};
let myCurrentState: IState;
@m3mnoch
m3mnoch / gist:1ffbf5cb30c70615934ee9250777e68d
Created October 31, 2017 15:54
blockstack verification
Verifying my Blockstack ID is secured with the address 12eYtN79igotNuNznvdHNaQuSBdNZ5dkrq https://explorer.blockstack.org/address/12eYtN79igotNuNznvdHNaQuSBdNZ5dkrq
### Keybase proof
I hereby claim:
* I am m3mnoch on github.
* I am m3mnoch (https://keybase.io/m3mnoch) on keybase.
* I have a public key whose fingerprint is E80C 9C24 8674 0494 734E 8B1A D2CA DEA6 FC73 2252
To claim this, I am signing this object:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title></title>
<style type="text/css">
body {background-color: #474747;}
h1 {font: 70px Tahoma, Helvetica, Arial, Sans-Serif;color: #222;text-shadow: 0px 2px 3px #555;position: absolute;top: 40%;left: 50%;margin-right: -50%;transform: translate(-50%, -50%) }
</style>
<script>
A baby can heal broken hearts. -Tyler Perry
A birth-date is a reminder to celebrate the life as well as to update the life. -Amit Kalantri
A bit of luck a lot of perseverance and sustained fortitude we can overcome any impediment that life may present to us. -Archibald Gumiro
A borrower who doesn't returns is a beggar. -Amit Kalantri
A certain way to have financial security in life is not enough savings, but enough ability. -Amit Kalantri
A champion is someone ho gets up, een when he can't -Jack Dempsey
A charming girl gets more proposals than a beautiful girl. -Amit Kalantri
A childhood filled with adventures, happiness and unabated love. If only I could remember ... -Lynda Fisher
A civilization must be judged by its standards not by its expenditure. -Amit Kalantri
A clown on a throne is still a clown. A king in rags is still a king. -C. JoyBell C.
Verifying that +m3mnoch is my Bitcoin username. You can send me #bitcoin here: https://onename.io/m3mnoch
@m3mnoch
m3mnoch / Preferences.sublime-settings
Last active August 29, 2015 14:05
Sublime Text User Preferences
{
"always_show_minimap_viewport": true,
"auto_complete": false,
"auto_match_enabled": false,
"color_scheme": "Packages/Color Scheme - Default/Solarized (Light).tmTheme",
"copy_with_empty_selection": false,
"create_window_at_startup": true,
"default_line_ending": "unix",
"enable_tab_scrolling": false,
"find_selected_text": true,

Keybase proof

I hereby claim:

  • I am m3mnoch on github.
  • I am m3mnoch (https://keybase.io/m3mnoch) on keybase.
  • I have a public key whose fingerprint is 4538 0912 F258 2D66 1839 EA18 D9B1 EB56 FD9A AA92

To claim this, I am signing this object: