Skip to content

Instantly share code, notes, and snippets.

View MadMaxMcKinney's full-sized avatar

Max McKinney MadMaxMcKinney

View GitHub Profile
@MadMaxMcKinney
MadMaxMcKinney / restart-xorg
Created March 23, 2017 00:50
Restart XORG Ubuntu
sudo systemctl restart lightdm
@MadMaxMcKinney
MadMaxMcKinney / ubuntuUsefulCLICommands.md
Last active March 23, 2017 15:52
Ubuntu Useful CLI Commands

View installed PPA Repository with a .sh script

#! /bin/sh 
# listppa Script to get all the PPA installed on a system ready to share for reininstall
for APT in `find /etc/apt/ -name \*.list`; do
    grep -o "^deb http://ppa.launchpad.net/[a-z0-9\-]\+/[a-z0-9\-]\+" $APT | while read ENTRY ; do
        USER=`echo $ENTRY | cut -d/ -f4`
        PPA=`echo $ENTRY | cut -d/ -f5`
 echo sudo apt-add-repository ppa:$USER/$PPA
@MadMaxMcKinney
MadMaxMcKinney / smooth-yellow-gist.css
Last active April 10, 2017 23:42
A syntax highlighting theme for use with embeded gists based off of Smooth Yellow: https://github.com/MaxMcKinney/Smooth-Yellow-Theme
.gist .pl-e, .gist .pl-en {
color: #FD971F !important;
}
.gist .pl-c1, .gist .pl-s .pl-v {
color: #B4C2D6 !important;
}
.gist .pl-s, .gist .pl-pds, .gist .pl-s .pl-pse .pl-s1, .gist .pl-sr, .gist .pl-sr .pl-cce, .gist .pl-sr .pl-sre, .gist .pl-sr .pl-sra {
color: #B4C2D6 !important;
@MadMaxMcKinney
MadMaxMcKinney / PlayerController.cs
Created May 9, 2017 19:08
A simple 2D player controller with instant movement and mouse tracking using a rigidbody for physics checks including rotation.
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class PlayerController : MonoBehaviour {
public float speed = 5f;
private Rigidbody2D rb;
#include <iostream>
#include <cstdlib>
#include <string>
using namespace std;
string formatSentence(string sentence) {
// Store the formatted sentence here
string formattedSentence;
// Add the first letter of the word to the new sentence
@MadMaxMcKinney
MadMaxMcKinney / React eslint config ".eslintrc.js"
Last active July 1, 2018 18:32
My personal config for ESLint and React
module.exports = {
"parser": "babel-eslint",
"env": {
"browser": true,
"es6": true
},
"settings": {
"ecmascript": 6,
"jsx": true
},
@MadMaxMcKinney
MadMaxMcKinney / .hyper.js
Created July 30, 2018 03:03
Hyper terminal configuration
// Future versions of Hyper may add additional config options,
// which will not automatically be merged into this file.
// See https://hyper.is#cfg for all currently supported options.
module.exports = {
config: {
// Choose either "stable" for receiving highly polished,
// or "canary" for less polished but more frequent updates
updateChannel: 'stable',
@MadMaxMcKinney
MadMaxMcKinney / .prettierrc
Created April 12, 2019 02:21
M - Prettier config
{
"endOfLine": "auto",
"semi": true,
"singleQuote": true,
"tabWidth": 4,
"trailingComma": "es5"
}
@MadMaxMcKinney
MadMaxMcKinney / email-sig.html
Created June 26, 2019 16:31
Max McKinney Email Signature
<table class="sc-jAaTju fNCBho" cellpadding="0" cellspacing="0" style="vertical-align: -webkit-baseline-middle; font-size: medium; font-family: Arial; margin-top: 24px;">
<tbody>
<tr>
<td>
<table class="sc-jAaTju fNCBho" cellpadding="0" cellspacing="0" style="vertical-align: -webkit-baseline-middle; font-size: medium; font-family: Arial;">
<tbody>
<tr>
<td width="100" style="vertical-align: middle;"><span class="sc-cHGsZl bHiaRe" style="margin-right: 20px; display: block;"><img width="80" class="sc-gisBJw kDlVKO" src="https://www.dropbox.com/s/90rcmh287gdw2wi/Max%20McKinney%20Mountain%20Black.png?raw=1" role="presentation" style="max-width: 130px;"></span></td>
<td style="vertical-align: middle;">
<h3 class="sc-hzDkRC kpsoyz" color="#000000" style="margin: 0px; font-size: 18px; color: rgb(0, 0, 0);"><span>Max</span><span>&nbsp;</span><span>McKinney</span></h3>
@MadMaxMcKinney
MadMaxMcKinney / profile.json
Created March 7, 2020 05:09
Windows 10 Terminal Profile
// To view the default settings, hold "alt" while clicking on the "Settings" button.
// For documentation on these settings, see: https://aka.ms/terminal-documentation
{
"$schema": "https://aka.ms/terminal-profiles-schema",
"defaultProfile": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}",
"profiles":