Skip to content

Instantly share code, notes, and snippets.

View xeb's full-sized avatar

Mark Kockerbeck xeb

View GitHub Profile
@xeb
xeb / gist:8746403
Created February 1, 2014 00:58
DynamicXml
public class DynamicXml : DynamicObject
{
XElement _root;
private DynamicXml(XElement root)
{
_root = root;
}
public static DynamicXml Parse(string xmlString)
{
@xeb
xeb / convert.sh
Created April 5, 2014 23:36
Covert PDF Color
convert -density 300 ReturnLabel2.pdf -fill blue -opaque black output.pdf
@xeb
xeb / gist:6a50febeb4b5e30300ec
Created September 17, 2014 05:09
ImageMagick Convert PDF to blue
convert -density 300 input.pdf -fill blue -opaque black out2.pdf
@xeb
xeb / gist:a3c4fb82c4cd864658bb
Created September 30, 2014 06:08
Force Repair Yum
rpm -Uvh --force http://mirror.centos.org/centos-5/5.10/os/x86_64/CentOS/gmp-4.1.4-10.el5.x86_64.rpm
rpm -Uvh --force http://mirror.centos.org/centos-5/5.10/os/x86_64/CentOS/readline-5.1-3.el5.x86_64.rpm
rpm -Uvh --force http://mirror.centos.org/centos-5/5.10/os/x86_64/CentOS/python-2.4.3-56.el5.x86_64.rpm
rpm -Uvh --force http://mirror.centos.org/centos-5/5.10/os/x86_64/CentOS/libxml2-2.6.26-2.1.21.el5_9.3.x86_64.rpm
rpm -Uvh --force http://mirror.centos.org/centos-5/5.10/os/x86_64/CentOS/libxml2-python-2.6.26-2.1.21.el5_9.3.x86_64.rpm
rpm -Uvh --force http://mirror.centos.org/centos-5/5.10/os/x86_64/CentOS/expat-1.95.8-11.el5_8.x86_64.rpm
rpm -Uvh --force http://mirror.centos.org/centos-5/5.10/os/x86_64/CentOS/python-elementtree-1.2.6-5.x86_64.rpm
rpm -Uvh --force http://mirror.centos.org/centos-5/5.10/os/x86_64/CentOS/sqlite-3.3.6-7.x86_64.rpm
rpm -Uvh --force http://mirror.centos.org/centos-5/5.10/os/x86_64/CentOS/python-sqlite-1.1.7-1.2.1.x86_64.rpm
rpm -Uvh --force http://mirror.centos.org/centos-5/5.10
@xeb
xeb / README.md
Last active August 29, 2015 14:07 — forked from jensgrubert/README.md
@xeb
xeb / payload.json
Created June 18, 2015 01:27
Payload
{ "event": { "userDefined": { "name": "Load Testing" } } }
curl -s checkip.dyndns.org | sed -e 's/.*Current IP Address: //' -e 's/<.*$//'
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using System.Xml;
using System.Collections;
namespace Add2Project
{
/*!
* jQuery.math v1.0
* http://epicapp.com/jquery.math
*
* Copyright (c) 2009 Mark Kockerbeck
* Dual licensed under the MIT and GPL licenses.
*/
(function($){
$.math = { version: 1.0 }
using System.Text.RegularExpressions;
//Tony ***** H19 08/24/2009
namespace App_Code
{
public class PasswordStrength
{
public string DoesPasswordMeetBusinessRules(string strPasswordToTest)
{
// Password Rules ***************************************