Skip to content

Instantly share code, notes, and snippets.

View paveljurca's full-sized avatar
🎯
Focusing

Pavel paveljurca

🎯
Focusing
View GitHub Profile
@gsherman
gsherman / web.config
Created January 24, 2011 18:35
example of a web config that uses the URL rewrite module to block potentially dangerous querystring. works on IIS7 and classic asp.
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<!--
Block potentially dangerous querystrings.
Requires the IIS7 URL Rewrite Module, available from: http://www.iis.net/download/urlrewrite
-->
<rewrite>
<rules>
@errriclee
errriclee / drop
Created February 18, 2011 02:14
pick
#!/bin/sh
run cp -v {} .
@chrisjacob
chrisjacob / README.md
Created February 18, 2011 03:44
Setup GitHub Pages "gh-pages" branch and "master" branch as subfolders of a parent project folder ("grandmaster").

Intro

Description: Setup GitHub Pages "gh-pages" branch and "master" branch as subfolders of a parent project folder ("grandmaster").

Author: Chris Jacob @_chrisjacob

Tutorial (Gist): https://gist.github.com/833223

The Result

127.0.0.1:5000
Start Time: Tue Apr 12 2011 15:17:16 GMT-0700 (PDT)
t=1302646636185 [st= 0] +SOCKET_ALIVE [dt=5108]
--> source_dependency = {"id":575,"type":4}
t=1302646636185 [st= 0] +TCP_CONNECT [dt= 0]
--> address_list = ["127.0.0.1:5000"]
t=1302646636185 [st= 0] TCP_CONNECT_ATTEMPT [dt= 0]
--> address = "127.0.0.1:5000"
127.0.0.1:5000
Start Time: Wed Apr 13 2011 01:51:13 GMT+0300 (EEST)
(P) t=1302648673017 [st= 0] +SOCKET_ALIVE [dt=62501]
--> source_dependency = {"id":67944,"type":4}
(P) t=1302648673017 [st= 0] +TCP_CONNECT [dt= 1]
--> address_list = ["127.0.0.1:5000"]
(P) t=1302648673017 [st= 0] TCP_CONNECT_ATTEMPT [dt= 1]
--> address = "127.0.0.1:5000"
@efroese
efroese / MailmanGroupManager.java
Created April 27, 2011 15:40
get email on sakai
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
@viliampucik
viliampucik / dns-2.pl
Created June 5, 2011 19:55
Example of using POE::Component::Client::DNS
#!/usr/bin/env perl
use strict;
use warnings;
use POE;
use POE::Component::Client::DNS;
my @ips = qw( 127.0.0.1 10.0.0.1 192.168.0.1 192.168.1.1 1.2.3.4
8.8.4.4 8.8.8.8 208.67.220.220 208.67.222.222 );
@nathansmith
nathansmith / web-design-development-learning-resources.md
Last active October 12, 2024 17:08
Resources for learning web design & front-end development
@mlhaufe
mlhaufe / ShellBrowse.vbs
Last active November 8, 2024 19:36
VBScript File Browser
Option Explicit
' Flags for the options parameter
Const BIF_returnonlyfsdirs = &H0001
Const BIF_dontgobelowdomain = &H0002
Const BIF_statustext = &H0004
Const BIF_returnfsancestors = &H0008
Const BIF_editbox = &H0010
Const BIF_validate = &H0020
Const BIF_browseforcomputer = &H1000
@jsomers
jsomers / pe-215.rb
Created July 13, 2011 22:17
Solution to Project Euler problem #215
=begin
Most of the work here is in generating a sort of matrix of mutually
compatible "p-bricksets," or single-row arrangements of bricks. There are
something like 3,300 of these total.
Once you have that matrix - what in the code I call the "compatimap" - all you
do is exhaustively "expand" each p-brickset ten times (for the ten rows).
It helps to imagine the space of possible walls as a tree in which nodes are