$mod
refers to the modifier key (alt by default)
startx i3
start i3 from command line$mod + <Enter>
open a terminal$mod + d
open dmenu (text based program launcher)
[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 |
// 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 commit tree | |
git log --graph --pretty=oneline --abbrev-commit | |
#view bad tree object | |
git cat-file -p <tree-object-ID> |
body{ | |
background-color: lightcoral | |
} | |
button{ | |
height: 25px; | |
min-width: 75px; | |
} |
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 |
# 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 |
# 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 |
# 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 |