Skip to content

Instantly share code, notes, and snippets.

View matthewhartman's full-sized avatar

Matthew Hartman matthewhartman

View GitHub Profile
@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 / 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 / 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 / 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 / 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 / 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,