Skip to content

Instantly share code, notes, and snippets.

View mombrea's full-sized avatar

Matt Mombrea mombrea

View GitHub Profile
@mombrea
mombrea / SelectListExtensionMethods.cs
Last active January 21, 2018 21:44 — forked from nickalbrecht/SelectListExtensionMethods.cs
SelectListItem Extension Methods for DropDowns in MVC, Updated comments for better intellisense
public static class SelectListExtensionMethods
{
//// simple Enum for demonstration in the examples
//enum Colors {
// Red = 1,
// Green = 2,
// Blue = 3
//}
//// Simple Class for demonstration in the examples
@mombrea
mombrea / .gitignore
Last active April 4, 2016 21:35 — forked from salcode/.gitignore
.gitignore file for WordPress - Bare Minimum Git
# -----------------------------------------------------------------
# .gitignore for WordPress
# Bare Minimum Git
# http://ironco.de/bare-minimum-git/
# ver 20150227
#
# This file is tailored for a WordPress project
# using the default directory structure
#
# This file specifies intentionally untracked files to ignore
#!/bin/bash
#Copyright 11.11.13 Michell Gailing <gailing.michell@gmail.com>
#It's Licensed under DWWWI 'Do whatever you want with it!'
wget http://www.okean.com/chinacidr.txt
sed -i '1,4d' chinacidr.txt
sed -i 's/ China//g' chinacidr.txt
ipset create china hash:net
while read line; do ipset add china $line; done < chinacidr.txt
iptables -I INPUT -m set --match-set china src -j DROP
rm chinacidr.txt