Skip to content

Instantly share code, notes, and snippets.

View meklarian's full-sized avatar

Paul Shinn meklarian

View GitHub Profile
@meklarian
meklarian / GAME_MASTER_v0_1.protobuf
Created July 27, 2016 14:15 — forked from anonymous/GAME_MASTER_v0_1.protobuf
Pokemon Go decoded GAME_MASTER protobuf file v0.1
Result: 1
Items {
TemplateId: "BADGE_BATTLE_ATTACK_WON"
Badge {
BadgeType: BADGE_BATTLE_ATTACK_WON
BadgeRanks: 4
Targets: "\nd\350\007"
}
}
Items {
System.Threading.Thread.Sleep(4000);
if (1 != ((new System.Random().Next()) % 3)) { throw new System.Exception(); }

replace empty lines before a brace

match:

^(?([^\r\n])\s)*\r?\n(?<stuff>(?([^\r\n])\s)*\})\r?\n

replace:

${stuff}\n
@meklarian
meklarian / GraphicsSetPointHelper.cs
Last active August 29, 2015 14:01
quick & dirty SetPoint() for System.Drawing.Graphics
public static class GraphicsSetPointHelper
{
public static void SetPoint(this Graphics g, Brush b, float x, float y)
{
g.FillRectangle(b, x, y, 1, 1);
}
}
01net.com:443 - VULNERABLE
1001freefonts.com:443 - VULNERABLE
123contactform.com:443 - VULNERABLE
123rf.com:443 - VULNERABLE
18qt.com:443 - VULNERABLE
1fichier.com:443 - VULNERABLE
24tv.ua:443 - VULNERABLE
444.hu:443 - VULNERABLE
518.com.tw:443 - VULNERABLE
55188.com:443 - VULNERABLE
[AttributeUsage(System.AttributeTargets.All, AllowMultiple = true, Inherited = true)]
public class ಠ_ಠAttribute : Attribute
{
public ILog Log { get; set; }
public ಠ_ಠAttribute()
{
Log.Info("This code is bad and you should feel bad");
}
}
@meklarian
meklarian / gist:5725123
Created June 6, 2013 21:27
ReadWriteVerifyTest - big file naive remaining space error checking test
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using System.Windows.Forms;
namespace ReadWriteVerifyTest
{
@meklarian
meklarian / NeverForget.sql
Created May 8, 2013 02:04
Never Forget: don't ever use = to check for NULL in MSSQL
-- SURPRISE, 0!
IF NULL = NULL
PRINT 1
ELSE
PRINT 0
GO
-- 1
IF NULL IS NULL
PRINT 1
ELSE
// jQuery Context Menu Plugin
//
// Version 1.01
//
// Cory S.N. LaViska
// A Beautiful Site (http://abeautifulsite.net/)
//
// More info: http://abeautifulsite.net/2008/09/jquery-context-menu-plugin/
// http://labs.abeautifulsite.net/projects/js/jquery/contextMenu/demo/
//
<script language="JavaScript" type="text/javascript">
// Comcast Cable Communications, LLC Proprietary. Copyright 2012.
// Intended use is to display browser notifications for critical and time sensitive alerts.
var SYS_URL='/e8f6b078-0f35-11de-85c5-efc5ef23aa1f/aupm/notify.do';
// var image_url='http://servicealerts.comcast.net:8080/images/mt';
var image_url='http://xfinity.comcast.net/constantguard/BotAssistance/notice/images';
var headertext1='<strong>Comcast Courtesy Notice</strong>';
var textline1='You have reached 90% of your <b>monthly data usage allowance</b>.';
var textline2='Please sign in for more information and to remove this alert.';
var acknowledgebutton='<a href=\"#\" onClick="document.location.href=\''+SYS_URL+'?dispatch=redirect&redirectName=login&paramName=bmUid\'" title="Sign in to acknowledge" style="color: #FFFFFF;"><img alt="Sign in to acknowledge" src="'+image_url+'/mt_signin.png"/></a>';