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
backend = "glx" | |
glx-no-stencil = true | |
glx-no-rebind-pixmap = true | |
xrender-sync-fence = true | |
vsync = true | |
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
configuration { | |
terminal: "alacritty"; | |
modes: "combi,keys"; | |
display-window: "window"; | |
display-drun: "run"; | |
display-windowcd: "windowcd"; | |
display-run: "run"; | |
display-ssh: "ssh"; |
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
// ==UserScript== | |
// @name Trakt to ČSFD | |
// @version 1.2 | |
// @description Search current title on ČSFD | |
// @match *://trakt.tv/* | |
// @author David Kosorin | |
// @source https://gist.github.com/kosorin/7773d66b2a390c87012297da2daf2e46 | |
// @namespace https://trakt.tv/ | |
// ==/UserScript== |
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
// https://github.com/force-net/Crc32.NET with Span<T> support | |
using System; | |
internal static class Crc32 | |
{ | |
public const uint CheckHash = 0x2144DF1Cu; | |
public const int HashLength = sizeof(uint); |
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
<Project Sdk="Microsoft.NET.Sdk"> | |
<PropertyGroup> | |
<OutputType>Exe</OutputType> | |
<TargetFramework>net5.0</TargetFramework> | |
<Nullable>enable</Nullable> | |
</PropertyGroup> | |
<ItemGroup> | |
<PackageReference Include="HtmlAgilityPack" Version="1.11.30" /> |
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
public class TcpSocket : IDisposable | |
{ | |
private readonly ProtocolProcessor _protocolProcessor = new ProtocolProcessor(); | |
private readonly Socket _socket; | |
private readonly AutoResetEvent _connectEvent = new AutoResetEvent(false); | |
private readonly SocketAsyncEventArgs _receiveToken; | |
private readonly IObjectPool<SocketAsyncEventArgs> _sendTokenPool; | |
public TcpSocket(InternetEndPoint remoteEndPoint) |
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
// ==UserScript== | |
// @name SerialZone.cz PLUS | |
// @namespace https://www.serialzone.cz/ | |
// @version 3.1.1 | |
// @author David Kosorin | |
// @match https://www.serialzone.cz/* | |
// @grant none | |
// ==/UserScript== | |
try { |
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
// ==UserScript== | |
// @name Temnota Plus | |
// @namespace http://temnota.cz | |
// @include http://temnota.cz/* | |
// @include http://www.temnota.cz/* | |
// @version 7.1.1 | |
// @grant none | |
// @require https://code.jquery.com/jquery-3.2.1.min.js | |
// @require https://cdn.jsdelivr.net/npm/js-cookie@2/src/js.cookie.min.js | |
// ==/UserScript== |
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
public static class TimeConstants | |
{ | |
public const int MillisecondsPerSecond = 1000; | |
public const int MillisecondsPerMinute = MillisecondsPerSecond * SecondsPerMinute; | |
public const int MillisecondsPerHour = MillisecondsPerMinute * MinutesPerHour; | |
public const int MillisecondsPerDay = MillisecondsPerHour * HoursPerDay; | |
public const int MillisecondsPerWeek = MillisecondsPerDay * DaysPerWeek; | |
public const int SecondsPerMinute = 60; | |
public const int SecondsPerHour = SecondsPerMinute * MinutesPerHour; |
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.Linq; | |
using System.Linq.Expressions; | |
using System.Reflection; | |
public static class ObjectActivatorFactory | |
{ | |
public static Func<TObject> Create<TObject>() | |
{ | |
return CreateAs<TObject>(typeof(TObject)); |
NewerOlder