Skip to content

Instantly share code, notes, and snippets.

@kkus
kkus / cat.py
Created January 18, 2013 01:41
cat and parent cat
catChain(catParent.id, catParent.Name, catParent.Parent, catId+catString)
@kkus
kkus / PollerController.cs
Created November 21, 2012 19:55 — forked from anonymous/gist:4127233
forked from anonymous
Controller
public class PollerController : AsyncController
{
public List<System.Threading.Tasks.Task> tasks = new List<System.Threading.Tasks.Task>();
public HttpResponseBase r { get; set; }
public void Launch()
{
Writer(Response);
@kkus
kkus / p4merge.bat
Created October 23, 2012 19:40
Batch File for P4 Merge in VS 2010 and TFS
@ECHO OFF
COPY /Y NUL %4
START /WAIT /D "C:\Program Files (x86)\Perforce" p4merge.exe %1 %2 %3 %4
@kkus
kkus / error.txt
Created October 18, 2012 02:40
South Park Full Episode error
exception 'Crabapple_Entertainment\Data_Providers\ARCv2\Exceptions\Invalid_Response' with message 'Invalid response value "{"summary":{"status":500,"error":{"description":"No replica set members available for query with { \"mode\" : \"primary\"}"},"host":"platform-jboss-173.811.mtvi.com","started":"2012-10-18T02:39:47.183Z","executionTime":1,"params":{"q":{"select":{"mtvi:id":1},"vars":{},"where":{"seasonsBySeries":["27964d3c-ecfd-11e0-aca6-0026b9414f30"]},"start":0,"rows":25,"omitNumFound":true,"debug":{}},"dateFormat":"UTC","stage":"live","filterSchedules":true},"scheduleTTL":null}}"' in /u/docroot/southparkstudios.com/packages/crabapple_entertainment/classes/data_providers/arcv2/responses/response.php:48 Stack trace: #0 /u/docroot/southparkstudios.com/packages/crabapple_entertainment/classes/data_providers/arcv2/arcv2.php(312): Crabapple_Entertainment\Data_Providers\ARCv2\Responses\Response::createFromJSONObject(Object(stdClass)) #1 /u/docroot/southparkstudios.com/packages/crabapple_entertainment/classes/d
@kkus
kkus / hello.cs
Created September 12, 2012 09:41
Introduction to methods and such in C Sharp
using System;
class Hello {
public const string StrHelloMessage = "Hello, ";
static void Main() {
string strUserName;
strUserName = Console.ReadLine();
Console.WriteLine ( StrHelloMessage + strUserName );
}
}
@kkus
kkus / HelloMethods.cs
Created September 9, 2012 22:00
This method illustrates a simple, working method in C# as by Rob Miles in the C# Yellow Book.
using System;
namespace mvcDeux.Models
{
public class HelloWorld
{
static void doit()
{
Console.WriteLine("Hello, Methods!");
}
@kkus
kkus / pee.txt
Created July 30, 2012 20:59
Please let them pee
from http://www.craigslist.org/about/best/wdc/71850323.html
best of craigslist
Share this:
Email
Digg
delicious
Facebook
@kkus
kkus / AssemblyInfo.cs
Created July 25, 2012 13:28
AssemblyInfo on an asp.net mvc 4 application
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Metcalfe")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
@kkus
kkus / password.html
Created June 11, 2012 20:47
Password policy
Passwords must meet complexity requirements determines whether password complexity is enforced. If this setting is enabled, user passwords must meet the following requirements:
The password is at least 7 characters long.
The password contains characters from at least 3 of the following 4 categories:
English uppercase characters (A - Z)
English lowercase characters (a - z)
Base 10 digits (0 - 9)
Non-alphanumeric (for example: !, $, #, or %)
The password does not contain three or more characters from the user's account name.
If the account name is less than three characters long, this check is not performed because the rate at which passwords would be rejected is too high. When checking against the user's full name, several characters are treated as delimiters that separate the name into individual tokens: commas, periods, dashes/hyphens, underscores, spaces, pound-signs, and tabs. For each token that is three or more characters long, that token is searched for in the password; if it is present, the password ch
@kkus
kkus / findings.js
Created June 2, 2012 05:03
the bookmarklet of findings and how it changes over time
javascript:e=document.createElement('script');e.setAttribute('type','text/javascript');e.setAttribute('src','//findings.com/bookmarklet/loader');document.body.appendChild(e);void(0);