Skip to content

Instantly share code, notes, and snippets.

View curtisault's full-sized avatar

Curtis Ault curtisault

  • San Antonio, TX
View GitHub Profile
@curtisault
curtisault / gist:61d4f901c913dda95b2a
Last active August 29, 2015 14:21
Boxstarter Home Machine
# 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
@curtisault
curtisault / gist:666fa5990f26e35c9de7
Created May 22, 2015 19:15
Will's Dev Boxstarter Script
# 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 / work mysql config.txt
Last active April 18, 2017 15:42
MySQL Work Configuration (my.ini)
# 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
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 / interface.css
Last active November 15, 2017 19:08
Paperclips Game CSS
body{
background-color: lightcoral
}
button{
height: 25px;
min-width: 75px;
}

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

# view commit tree
git log --graph --pretty=oneline --abbrev-commit
#view bad tree object
git cat-file -p <tree-object-ID>
// 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()
@curtisault
curtisault / Terminal Presentation
Last active December 29, 2022 16:48
A conversation on useful and helpful terminal commands
[Helpful Terminal Repo](https://github.com/curtisault/helpful-terminal)
# Unix Philosophy
The Unix philosophy emphasizes building simple, compact, clear, modular, and extensible code that can be easily maintained and repurposed by developers other than its creators.
The Unix philosophy favors composability as opposed to monolithic design.
---
## Fun