This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace Navix | |
{ | |
using System; | |
using System.Collections.Generic; | |
using System.Threading; | |
using System.Threading.Tasks; | |
/// <summary> | |
/// Retry logic. Stolen from one of my side projects. | |
/// </summary> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20-4-11 20:27:31.3|Warn|SecurityProtocolPolicy|Disabled Tls1.2 due to remote certificate error. | |
20-4-11 20:27:31.3|Warn|Newznab|altHUB https://api.althub.co.za/api?t=tvsearch&cat=5030,5040&extended=1&apikey=(removed)&offset=0&limit=100&tvdbid=305719&tvmazeid=3080&season=2&ep=1 The request was aborted: Could not create SSL/TLS secure channel. | |
20-4-11 20:27:31.3|Info|DownloadDecisionMaker|Processing 12 releases | |
20-4-11 20:27:42.6|Error|Sabnzbd|Downloading nzb for episode 'Big.Little.Lies.S02E01.What.Have.They.Done.1080p.AMZN.WEB-DL.DDP5.1.H.264-NTb' failed (https://nzbfinder.ws/getnzb?id=eca952cd-9c80-48cd-b2d9-57bf9cd7734d.nzb&r=a6f20717b3a69698bced2803172ad9b4) | |
[v2.0.0.5344] System.Net.WebException: The request was aborted: Could not create SSL/TLS secure channel. | |
at System.Net.HttpWebRequest.GetResponse() | |
at NzbDrone.Common.Http.Dispatchers.ManagedHttpDispatcher.GetResponse(HttpRequest request, CookieContainer cookies) in C:\BuildAgent\work\5d7581516c0ee5b3\src\NzbDrone.Common\Http\Dispatchers\Managed |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 1,000,000 rows with 10 workers | |
Creating datatable | |
Filling datatable with 1000000 rows... | |
Datatable filled. | |
Starting non-indexed runs | |
[0] Performing bulk insert on Guids... | |
[2] Performing bulk insert on Guids... | |
[4] Performing bulk insert on Guids... | |
[6] Performing bulk insert on Guids... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
0030 d4 30 c0 6d bf 61 80 db 50 ca ..e...Ô0Àm¿a.ÛPÊ | |
0040 00 b7 a3 f6 73 0f 23 79 6c ae a0 28 07 b8 1b 35 .·£ös.#yl® (.¸.5 | |
0050 5c 70 36 6a 18 3f 94 79 7c 7a 28 f3 f8 f9 50 e6 \p6j.?.y|z(óøùPæ | |
0060 f1 ñ | |
0030 6c f6 48 a7 ce ec 91 4e b3 d0 ..e...löH§Îì.N³Ð | |
0040 23 9d 65 c3 35 5b af 12 e0 06 b9 ff 1f e9 29 9b #.eÃ5[¯.à.¹ÿ.é). | |
0050 6d d2 53 36 7b 55 0c 27 fb af 18 4e f6 53 31 9c mÒS6{U.'û¯.NöS1. | |
0060 ec ì |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import axios from 'axios'; | |
import { getCredentials, saveCredentials, deleteCredentials } from './credentialStore'; | |
import { API_ROOT } from './constants'; | |
axios.defaults.baseURL = API_ROOT; | |
const api = axios.create(); | |
api.interceptors.request.use(config => { | |
let creds = getCredentials(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import sys | |
import os | |
import shutil | |
import tempfile | |
import uuid | |
# python zip.py 'folder to zip' 'output file' | |
# e.g. python zip.py ./ ./build/build.zip | |
if __name__ == '__main__': |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
POLYGON((79 91, 33 45, 76 41, 53 14, 79 66, 57 34, 44 91, 72 40, 9 87, 74 15, 39 79, 19 25, 2 96, 0 4, 10 76, 9 77, 34 21, 17 73, 17 21, 83 82, 15 49, 45 98, 53 58, 82 78, 14 24, 58 43, 15 21, 18 0, 72 8, 43 80, 40 49, 3 3, 56 79, 0 22, 73 98, 23 88, 4 91, 99 90, 33 21, 71 43, 13 22, 90 86, 17 65, 62 12, 3 17, 1 9, 77 2, 41 66, 45 42, 41 74, 79 91)); 100; 1031 | |
POLYGON((73 14, 69 19, 9 83, 79 84, 80 4, 43 88, 8 39, 78 39, 80 89, 49 76, 27 13, 9 87, 53 50, 13 23, 42 83, 83 65, 50 94, 10 94, 82 60, 72 76, 12 67, 48 96, 80 91, 96 78, 39 75, 79 53, 82 14, 35 59, 5 81, 65 58, 70 55, 42 96, 20 77, 37 14, 29 83, 56 19, 17 72, 64 60, 65 12, 7 61, 54 34, 83 67, 4 30, 83 36, 58 50, 89 0, 95 13, 6 56, 24 51, 76 2, 73 14)); 100; 955 | |
POLYGON((60 69, 87 96, 42 2, 14 88, 0 69, 87 23, 33 88, 15 83, 1 38, 51 92, 20 92, 0 91, 71 82, 91 76, 16 12, 8 48, 50 69, 39 97, 90 86, 90 5, 90 57, 36 28, 32 64, 48 40, 78 36, 76 34, 47 18, 32 68, 69 96, 24 59, 11 38, 71 87, 61 38, 72 63, 49 17, 92 14, 48 45, 2 62, 55 72, 59 7, 33 50, 97 80, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
using System.Text.RegularExpressions; | |
using System.IO; | |
namespace grep | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <summary> | |
/// Maps the values of the public properties of the specified base object to the specified derived object's properties. | |
/// </summary> | |
/// <typeparam name="Tderived">The Type of the derived class.</typeparam> | |
/// <typeparam name="Tbase">The Type of the base class.</typeparam> | |
/// <param name="derivedObject">The instance of the derived class into which values are to be mapped.</param> | |
/// <param name="baseObject">The instance of the base class from whihc values are to be copied.</param> | |
public static void MapFrom<Tderived, Tbase>(this Tderived derivedObject, Tbase baseObject) | |
where Tderived : Tbase | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <summary> | |
/// Computes and returns the SHA512 hash of the specified string. | |
/// </summary> | |
/// <param name="content">The string for which the SHA512 hash is to be computed.</param> | |
/// <returns>The SHA512 hash of the specified string.</returns> | |
public static string ComputeSHA512Hash(string content) | |
{ | |
return ComputeSHA512Hash(Encoding.ASCII.GetBytes(content)); | |
} |
NewerOlder