Skip to content

Instantly share code, notes, and snippets.

@echo off
rem No \ at the end of this path. If you need to copy everything from
rem the root of a drive, e.g. E:. set to e.g. set SOURCE=E:
set SOURCE=C:\CopyFromTest
start xcopy %SOURCE% F: /s /e
start xcopy %SOURCE% G: /s /e
start xcopy %SOURCE% H: /s /e
www.reddit.com##.pulse.TopButton
www.reddit.com##.XPromoPill
www.reddit.com##.NavFrame > .xpromoMinimal.DualPartInterstitial
www.reddit.com###redesign-beta-optin-btn
www.reddit.com##.premium-banner
old.reddit.com##.pulse.TopButton
old.reddit.com##.XPromoPill
old.reddit.com##.NavFrame > .xpromoMinimal.DualPartInterstitial
old.reddit.com###redesign-beta-optin-btn
@pvginkel
pvginkel / Program.cs
Created January 30, 2018 13:59
Benchmark for creating instances of value types through compiled LINQ expressions.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
using System.Threading.Tasks;
using BenchmarkDotNet.Attributes;
using BenchmarkDotNet.Running;
namespace ConsoleApp12
// The proposed syntax:
using (File.Open(this.DataSourceFileName, FileMode.Open, FileAccess.Read))
{
}
return true;
// This is the same as writing the code below. See
// https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/using-statement for
// an explanation.
13:23:47.576 [catalina-exec-7] DEBUG com.progress.O4gl.Broker - 00520: 6c 69 6b 65 20 47 65 63 6b 6f 29 20 43 68 72 6f like Gecko) Chro
13:23:47.576 [catalina-exec-7] DEBUG com.progress.O4gl.Broker - 00530: 6d 65 2f 35 32 2e 30 2e 32 37 34 33 2e 31 31 36 me/52.0.2743.116
13:23:47.576 [catalina-exec-7] DEBUG com.progress.O4gl.Broker - 00540: 20 53 61 66 61 72 69 2f 35 33 37 2e 33 36 ff 48 Safari/537.36.H
13:23:47.576 [catalina-exec-7] DEBUG com.progress.O4gl.Broker - 00550: 54 54 50 5f 41 43 43 45 50 54 5f 45 4e 43 4f 44 TTP_ACCEPT_ENCOD
13:23:47.576 [catalina-exec-7] DEBUG com.progress.O4gl.Broker - 00560: 49 4e 47 3d 67 7a 69 70 2c 20 64 65 66 6c 61 74 ING=gzip, deflat
13:23:47.576 [catalina-exec-7] DEBUG com.progress.O4gl.Broker - 00570: 65 2c 20 73 64 63 68 ff 48 54 54 50 5f 43 4f 4f e, sdch.HTTP_COO
13:23:47.576 [catalina-exec-7] DEBUG com.progress.O4gl.Broker - 00580: 4b 49 45 3d 57 65 64 67 65 53 54 6f 6b 77 65 64 KIE=WedgeSTokwed
13:23:47.576 [catalina-exec-7] DEBUG com.progress.O4gl.Broker - 00590: 6
# 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
#
# Unless required by applicable law or agreed to in writing, software
<?xml version="1.0" encoding="UTF-8" ?>
<configuration debug="false" scan="true" scanPeriod="5 seconds" >
<appender name="SIFT" class="ch.qos.logback.classic.sift.SiftingAppender">
<discriminator class="ch.qos.logback.classic.sift.JNDIBasedContextDiscriminator">
<defaultValue>unknown</defaultValue>
</discriminator>
<sift>
<appender name="FILE-${contextName}" class="ch.qos.logback.core.rolling.RollingFileAppender">
<append>true</append>
<prudent>true</prudent>
@pvginkel
pvginkel / imdb.js
Last active July 10, 2016 14:57
Mutating your IMDb lists through the JavaScript console
/*
* Below are a few tips on how you can mutate your IMDb lists using your JavaScript
* console (Ctrl+Shift+I in Chrome).
*
* To use one of the scripts, just copy the script and paste it into the JavaScript
* console.
*/
/*
* The first script gets all movies form a list. It does this by page, so you need
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Drawing.Printing;
using System.Text;
namespace PdfiumViewer
{
internal class PdfPrintDocument : PrintDocument
{
@pvginkel
pvginkel / gist:d08880d9a10e649a9ec9
Created April 8, 2015 06:45
ConcatStream example
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
class Program
{
static void Main(string[] args)