Skip to content

Instantly share code, notes, and snippets.

@Indigo744
Indigo744 / ProcessAsyncHelper.cs
Last active July 26, 2023 10:09 — forked from georg-jung/ProcessAsyncHelper.cs
The right way to run external process in .NET (async version)
using System.Collections.Generic;
using System.Diagnostics;
using System.Text;
using System.Threading.Tasks;
/// <summary>
/// Process helper with asynchronous interface
/// - Based on https://gist.github.com/georg-jung/3a8703946075d56423e418ea76212745
/// - And on https://stackoverflow.com/questions/470256/process-waitforexit-asynchronously
/// </summary>
@Indigo744
Indigo744 / argon2_benchmark.php
Last active June 18, 2020 13:59
PHP Argon2 benchmark
<?php
/**
* Password Argon2 Hash Benchmark
* Argon2 is available since PHP 7.2
*
* Just upload this script to your server and run it, either through CLI or by calling it in your browser.
*
* See Argon2 specs https://password-hashing.net/argon2-specs.pdf chapter 9 Recommended Parameters
*/
// Upper time limit to check
@cemerson
cemerson / export-layers-with-layer-names-20170622.jsx
Created June 22, 2017 17:56
Adobe Illustrator CC - Export Layers to PNGs
#target Illustrator
// script.name = exportLayersAsCSS_PNGs.jsx;
// script.description = mimics the Save for Web, export images as CSS Layers (images only);
// script.requirements = an open document; tested with CS5 on Windows.
// script.parent = carlos canto // 05/24/13; All rights reseved
// script.elegant = false;
/**
@Vestride
Vestride / encoding-video.md
Last active April 24, 2024 09:59
Encoding video for the web

Encoding Video

Installing

Install FFmpeg with homebrew. You'll need to install it with a couple flags for webm and the AAC audio codec.

brew install ffmpeg --with-libvpx --with-libvorbis --with-fdk-aac --with-opus