Skip to content

Instantly share code, notes, and snippets.

View myersg86's full-sized avatar
🦫

Greg M myersg86

🦫
View GitHub Profile
*, h1, h2, h3, h4, h5, h6 {font-family: "Raleway"!important; line-height: normal!important;}
body, body > div { font-size: 16px; font-size: 1.6rem;}
body, body p {text-align: left;}
@myersg86
myersg86 / postgres-cheatsheet.md
Created December 16, 2018 22:22 — forked from Kartones/postgres-cheatsheet.md
PostgreSQL command line cheatsheet

PSQL

Magic words:

psql -U postgres

Some interesting flags (to see all, use -h or --help depending on your psql version):

  • -E: will describe the underlaying queries of the \ commands (cool for learning!)
  • -l: psql will list all databases and then exit (useful if the user you connect with doesn't has a default database, like at AWS RDS)
@myersg86
myersg86 / Git_Bisect.md
Created November 21, 2018 19:24 — forked from stevenyap/Git_Bisect.md
Finding bugs in Git commits using git bisect

You have a git commit in your history that is causing a bug but you do not know which commit it is.
Here's how to use git bisect to find the commit that causes the bug.

# in the git root, start the git bisect
git bisect start

# mark current commit as bad
git bisect bad
sudo add-apt-repository ppa:ansible/ansible &&
sudo add-apt-repository ppa:ultradvorka/ppa &&
sudo add-apt-repository ppa:amanusk/python-s-tui &&
sudo apt update &&
sudo apt install --install-recommends ansible hh s-tui htop
@myersg86
myersg86 / virtualbox-purge.sh
Last active October 1, 2018 15:46
[virtualbox-purge] uninstall virtualbox & purge all residual VMs and Virtual-HDs including data & settings #virtualbox #purge #uninstall #remove
#!/bin/bash
sudo apt-get remove --purge virtualbox
sudo rm -Rf ~/"VirtualBox VMs"
sudo rm ~/.config/VirtualBox/ -Rf
echo ""
echo "Virtualbox successfully purged from local machine"
echo ""
echo "for a fresh virtualbox installation, run:"
echo ""
@myersg86
myersg86 / aoe2HD-on-linux.txt
Created September 21, 2018 17:17
age of empires II hd working on linux w/ steam play
1 - Enable the Steam Beta Client: Go to Steam->Settings. In the account tab, click change in the Steam Beta Update and click on Steam Beta Update
2 - Enable Steam Play for all games: Go again to Settings and on the Steam Play Tab click "Enable Steam Play for all titles"
3 - Download/Install AoE.
4 - Rename "AoK.exe" to "Launcher.exe" in
~/.local/share/Steam/steamapps/common/Age2HD/
@myersg86
myersg86 / ansible-setup-debian.sh
Last active September 27, 2018 16:07
[ansible-setup-debian] shell script to install latest ansible from official repositories on debian-based systems
#!/bin/bash
# Configure dpkg & install apt utils
sudo dpkg --configure -a &&
sudo apt-get update &&
# Install dependencies & recommendations
sudo apt-get install --install-recommends -y apt aptitude git git-core software-properties-common dirmngr vim python-apt &&
# Install ansible
if ! grep -q "ansible/ansible" /etc/apt/sources.list /etc/apt/sources.list.d/*; then
@myersg86
myersg86 / red-canyon-build-script.sh
Created September 13, 2018 20:18
[red-canyon-weather-app] red canyon utah weather application nativefier script #redcanyon #weather #nativefier
# nativefier [options] <targetURL> [dest]
nativefier -p linux -n "Red Canyon Weather" -a x64 -i ~/Downloads/red-canyon-icon.png --full-screen https://redcanyonweather.com
@myersg86
myersg86 / ril-export.html
Created September 13, 2018 19:05
[raindrop.io import template] template for bulk link import to raindrop.io #raindrop.io #pocket
<!DOCTYPE html>
<html>
<!--So long and thanks for all the fish-->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Pocket Export</title>
</head>
<body>
<h1>TITLE</h1>
<ul>
@myersg86
myersg86 / notes+snipppets.md
Last active September 12, 2018 18:29
[hero-engine dev notes] developer notes & snippets for use in redhat hero-engine game

Notes & Snippets

hello world

inline-code

var s = "javascript.snippet";
alert(s);