Skip to content

Instantly share code, notes, and snippets.

View matthewhartman's full-sized avatar

Matthew Hartman matthewhartman

View GitHub Profile
@matthewhartman
matthewhartman / sublime-settings.txt
Last active May 20, 2016 10:07
My Sublime Settings
{
"bold_folder_labels": true,
"color_scheme": "Packages/Seti_UX/Seti.tmTheme",
"draw_minimap_border": true,
"font_size": 12,
"highlight_line": true,
"highlight_modified_tabs": true,
"line_padding_bottom": 1,
"line_padding_top": 1,
"save_on_focus_lost": true,
@matthewhartman
matthewhartman / conkyrc.txt
Last active January 3, 2016 00:09
My Conky Configuration - CrunchBang Linux
# Matthew's Conky Configuration - CrunchBang Linux
# DOWNLOAD AND INSTALL THE FOLLOWING:
# -- Fonts
# Open Sans (All Variants) - http://www.google.com/fonts#UsePlace:use/Collection:Open+Sans
# Raleway (All Variants) - http://www.google.com/fonts#UsePlace:use/Collection:Raleway
# -
# -- Icons
# Conky weather icons (place in root home dir eg: /home/matthew/) - https://www.dropbox.com/sh/tz5kjronomxyvpo/zky8s3lvkh
# Enjoy :)
@matthewhartman
matthewhartman / tint2.txt
Last active September 26, 2016 11:39
My Tint2 Configuration
# Tint2 config file
# Background definitions
# ID 1
rounded = 0
border_width = 0
background_color = #000000 81
border_color = #FFFFFF 40
# ID 2
@matthewhartman
matthewhartman / crunchbang-nvidia.markdown
Last active January 3, 2016 00:29
Installing Nvidia Drivers on Waldorf - Thanks Bartos :)

This is based on the Debian way and worked for me.

This usually best done from text console not your desktop.

Stop desktop after going to console with Ctrl-Alt-F1

sudo invoke-rc.d slim stop

Check your kernel to see if you have a stock or custom kernel

@matthewhartman
matthewhartman / gist:9cfc25e7e2ecb6983245
Created May 14, 2014 06:34
HTML - Basic Boilerplate
<!doctype html>
<html lang="en" id="">
<head>
<meta charset="UTF-8">
<title></title>
</head>
<body>
</body>
</html>
@matthewhartman
matthewhartman / vim-convert-html-to-lowercase
Last active August 29, 2015 14:04
VIM - Changing all HTML tags to lowercase (including attributes)
# Convert all HTML tags and attributes (excluding text) to lowercase
# Thanks to http://vim.wikia.com/wiki/Changing_all_HTML_tags_to_lowercase
:%s/<\([^>]*\)>/<\L\1>/g
@matthewhartman
matthewhartman / menu.xml
Created July 23, 2014 12:15
Openbox Menu Config
<?xml version="1.0" encoding="utf-8"?>
<openbox_menu xmlns="http://openbox.org/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://openbox.org/">
<menu id="root-menu" label="Openbox 3">
<item label="Web Browser">
<action name="Execute">
<command>
x-www-browser
</command>
</action>
</item>
@matthewhartman
matthewhartman / rc.xml
Last active September 28, 2016 02:36
HP Stream 11 - Debian 8 - Openbox Configuration
<?xml version="1.0" encoding="UTF-8"?>
<!-- Do not edit this file, it will be overwritten on install.
Copy the file to $HOME/.config/openbox/ instead. -->
<openbox_config xmlns="http://openbox.org/3.4/rc" xmlns:xi="http://www.w3.org/2001/XInclude">
<resistance>
<strength>10</strength>
<screen_edge_strength>20</screen_edge_strength>
</resistance>
<focus>
<focusNew>yes</focusNew>
@matthewhartman
matthewhartman / install-fonts.txt
Created March 1, 2015 11:27
Install TTF Fonts in Debian
cd fonts
mv *.ttf /usr/share/fonts/truetype
cd /usr/share/fonts/truetype
mkfontscale
mkfontdir
fc-cache
xset fp rehash
@matthewhartman
matthewhartman / bash_rc
Created November 11, 2015 10:08
Git Bash Script
# Handy bash script for showing your current branch
PS1='[VM] \[\033[01;32m\]\u@\h\[\033[01;34m\] \w\[\033[01;33m\]$(__git_ps1)\[\033[01;34m\] \$\[\033[00m\] '