Skip to content

Instantly share code, notes, and snippets.

View akordowski's full-sized avatar

Artur Kordowski akordowski

  • Hamburg, Germany
  • 13:06 (UTC +01:00)
View GitHub Profile
@jamiephan
jamiephan / README.md
Last active February 28, 2025 12:02
A script to automatically add ALL items to your account in quixel

Script to add all items from quixel

As quixel is being removed, all items are free to aquire. This script is to automate the process to add items to your account (As of writing, a total of 18874 items)

Note: This script only tested in the latest version of Chrome.

How to use

  1. Copy the script from below (run.js)
  2. Login into https://quixel.com
@aivascu
aivascu / CombinatorialNames.cs
Created June 16, 2021 23:25
Combinatorial names generator
public class CombinatorialNames : IEnumerable<FullName>
{
private readonly IEnumerable<FullName> names;
public CombinatorialNames(IEnumerable<string> firstNames, IEnumerable<string> lastNames)
{
names =
from firstName in firstNames
from lastName in lastNames
select new FullName(firstName, lastName);
@hmans
hmans / .editorconfig
Created August 13, 2020 10:04
Unity ♥️ Git
root = true
[*]
end_of_line = lf
insert_final_newline = true
charset = utf-8
indent_style = tab
indent_size = 4
trim_trailing_whitespace = true
@pingec
pingec / DumpHttpRequests.cs
Created November 14, 2017 20:35
C# Simple http server to dump requests to console (HttpListener)
using System;
using System.Collections.Generic;
using System.IO;
using System.Net;
using System.Text;
namespace DumpHttpRequests
{
internal class Program
{
@StephenRedd
StephenRedd / dotnet-bump.ps1
Last active June 13, 2023 11:43
Powershell script for incrementing .Net Core *.csproj assembly versions
<#
.SYNOPSIS
Increment .NET *.csproj file version.
.DESCRIPTION
Script will increment either the minor or patch version for all projects under /src.
.PARAMETER mode
Specify 'minor' or 'patch'
@dotnetchris
dotnetchris / EnsureModelStateIsValid.cs
Last active June 27, 2019 09:09
AspNetCore.Mvc action filter for ensuring validation of both model state and all action parameters as a precondition to a MVC action
/// <summary>
/// This action filter ensures ModelState.IsValid is true as a precondition to entry into the MVC action
/// </summary>
/// <remarks>
/// This class also validates all action parameters unlike the default behavior of ModelState.IsValid
/// </remarks>
/// <see cref="https://blog.markvincze.com/how-to-validate-action-parameters-with-dataannotation-attributes/" />
public class EnsureModelStateIsValid : ActionFilterAttribute
{
private static readonly ConcurrentDictionary<MethodInfo, ParameterInfo[]> MethodCache
@jmarolf
jmarolf / editorconfig.md
Last active February 21, 2025 16:56
List of all options and how they may be implemented in editorconfig

Advanced

editorconfig name possible values
dotnet_sort_system_directives_first true , false

Indentation Options

editorconfig name possible values
csharp_indent_block_contents true , false
csharp_indent_braces true , false
@bastman
bastman / docker-cleanup-resources.md
Created March 31, 2016 05:55
docker cleanup guide: containers, images, volumes, networks

Docker - How to cleanup (unused) resources

Once in a while, you may need to cleanup resources (containers, volumes, images, networks) ...

delete volumes

// see: https://github.com/chadoe/docker-cleanup-volumes

$ docker volume rm $(docker volume ls -qf dangling=true)

$ docker volume ls -qf dangling=true | xargs -r docker volume rm

@FeodorFitsner
FeodorFitsner / nunit3-runners.cmd
Last active December 1, 2015 01:16
Overriding NUnit runners with 3.0
set NUNIT3_HOME=C:\Tools\NUnit3
appveyor DownloadFile https://github.com/nunit/nunit/releases/download/3.0.0-beta-3/nunit-3.0.0-beta-3.zip
7z x -o%NUNIT3_HOME% nunit-3.0.0-beta-3.zip > NUL
move %NUNIT3_HOME%\bin\nunit3-console.exe %NUNIT3_HOME%\bin\nunit-console.exe
set PATH=%NUNIT3_HOME%\bin;%PATH%
@frntn
frntn / gist:f25726df962fc29c6dde
Last active July 14, 2024 15:15
azure-cli cheatsheet
azure
account
list [options] #List the imported subscriptions
show [options] [subscriptionNameOrId] #Show details about a subscription
set [options] <subscriptionNameOrId> #Set the current subscription
clear [options] #Remove a subscription or environment, or clear all of the stored account and environment info
import [options] <file> #Import a publishsettings file or certificate for your account
download [options] #Launch a browser to download your publishsettings file
env... #Commands to manage your account environment