Skip to content

Instantly share code, notes, and snippets.

Avatar

Curtis Ault curtisault

  • Corvus Insurance
  • San Antonio, TX
View GitHub Profile
View Helpful LINQ Query References.cs
// for the sake of simplicity:
// all List objects are "items"
// all object references are "object"
// All distinct items in a list
items.GroupBy(x => new {x.fields, x.to, x.group, x.by}).Select(s => s.First()).ToList()
View Handy Git Commands.sh
# view commit tree
git log --graph --pretty=oneline --abbrev-commit
#view bad tree object
git cat-file -p <tree-object-ID>
View Cheat Sheet.md

i3 Window Manager Cheat Sheet

$mod refers to the modifier key (alt by default)

Basic

  • startx i3 start i3 from command line
  • $mod + <Enter> open a terminal
  • $mod + d open dmenu (text based program launcher)

Restart/Exit

@curtisault
curtisault / interface.css
Last active Nov 15, 2017
Paperclips Game CSS
View interface.css
body{
background-color: lightcoral
}
button{
height: 25px;
min-width: 75px;
}
View Format Drive.txt
This is to fix a drive with multiple partitions on Windows:
1. Open an elevated command prompt/powershell
2. Run diskpart
3. list disk
4. Note the disk number that corresponds to your USB drive (it should be obvious going by size)
5. select disk X where X is the number from step 4
6. list partition - There should be two, numbered 0 and 1, each about 7 GB
7. select partition 0
8. delete partition
@curtisault
curtisault / work mysql config.txt
Last active Apr 18, 2017
MySQL Work Configuration (my.ini)
View work mysql config.txt
# MySQL Server Instance Configuration File
# ----------------------------------------------------------------------
# Generated by the MySQL Server Instance Configuration Wizard
#
#
# Installation Instructions
# ----------------------------------------------------------------------
#
# On Linux you can copy this file to /etc/my.cnf to set global options,
# mysql-data-dir/my.cnf to set server-specific options
@curtisault
curtisault / gist:666fa5990f26e35c9de7
Created May 22, 2015
Will's Dev Boxstarter Script
View gist:666fa5990f26e35c9de7
# Invoke using following syntax into IE:
# http://boxstarter.org/package/url?[raw link to this gist]
try {
# Boxstarter options
$Boxstarter.RebootOk=$true
$Boxstarter.NoPassword=$false # Is this a machine with no logon password?
$Boxstarter.AutoLogin=$true
# Set Windows variables
Enable-RemoteDesktop
@curtisault
curtisault / gist:61d4f901c913dda95b2a
Last active Aug 29, 2015
Boxstarter Home Machine
View gist:61d4f901c913dda95b2a
# Invoke using following syntax into IE:
# http://boxstarter.org/package/url?https://gist.githubusercontent.com/curtisault/61d4f901c913dda95b2a/raw/0b810baae9cb9097753e82fe86aa036fb021f65c/gistfile1.txt
try {
# Boxstarter options
$Boxstarter.RebootOk=$true
$Boxstarter.NoPassword=$false # Is this a machine with no logon password?
$Boxstarter.AutoLogin=$true