Skip to content

Instantly share code, notes, and snippets.

@Taloth
Taloth / mono-close-wait-repro.cs
Last active June 29, 2019 23:21
MonoCloseWaitRepro
$ mcs mono-close-wait-repro.cs
$ mono mono-close-wait-repro.exe
Starting test
Requesting: http://httpbin.org/delay/2
Failed without Response: The operation has timed out.
Requesting: http://httpbin.org/delay/2
Failed without Response: The operation has timed out.
Requesting: http://httpbin.org/delay/2
Failed without Response: The operation has timed out.
Requesting: http://httpbin.org/delay/2
@Taloth
Taloth / housekeeping.sh
Created February 15, 2018 20:02
housekeeping.sh
#!/usr/bash
# Change ths url and api key.
serverUrl="http://localhost:8989"
apiKey=11b362365b7644
/usr/bin/curl -i -H "Accept: application/json" -H "Content-Type: application/json" -H "X-Api-Key: $apiKey" -X POST -d '{"name":"Housekeeping"}' $serverUrl/api/command
@Taloth
Taloth / caps.xml
Last active May 13, 2017 19:43
Nyaa torznab caps draft
<caps>
<server version="1.0" title="{{ config.SITE_NAME }}" strapline="..." url="{{ url_for('home', _external=True) }}" image="..." />
<limits max="60" default="25" />
<registration available="no" open="no" />
<searching>
<search available="yes" supportedParams="q" />
<tv-search available="no" />
<movie-search available="no" />
<audio-search available="no" />
@Taloth
Taloth / filecopy-test.cs
Last active April 3, 2017 19:32
mono copy/move test app
using System;
using System.IO;
public class Program
{
public static int Main(params string[] args)
{
try
{
if (args.Length != 3)