Skip to content

Instantly share code, notes, and snippets.

@Indigo744
Indigo744 / HueBridgeDiscovery.cs
Created December 10, 2019 12:28
Some Hue Bridge Discovery approaches using the Q42.HueApi
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using Q42.HueApi;
/// <summary>
/// Some Hue Bridge Discovery approaches using the Q42.HueApi
@Indigo744
Indigo744 / ProcessAsyncHelper.cs
Last active September 1, 2024 18:35 — 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 / BcryptNetCostCalculator.cs
Created September 25, 2019 19:51
C# BCRYPT.Net cost calculator
namespace BcryptPerformanceTestCSharpDotNet
{
using System;
using System.Diagnostics;
using BCrypt.Net;
/// <summary>
/// C# BCRYPT.Net cost calculator
/// You will need BCrypt.Net-Next Nugget: https://www.nuget.org/packages/BCrypt.Net-Next/
/// </summary>
@Indigo744
Indigo744 / bcrypt_cost_calculator.js
Last active July 22, 2019 17:37
NodeJS BCRYPT cost calculator
/**
* Password BCRYPT Hash Cost Calculator for NodeJS
*
* Just upload this script to your server and run it.
*
* You should choose a cost that will take at least 100ms (500ms preferably)
*
* Uses bcrypt.js from https://github.com/dcodeIO/bcrypt.js
*/
const { performance } = require('perf_hooks');
@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
@Indigo744
Indigo744 / bcrypt_cost_calculator.php
Last active November 19, 2023 07:23 — forked from Antnee/password_hash_cost_calculator.php
PHP BCRYPT cost calculator
<?php
/**
* Password BCRYPT Hash Cost Calculator
*
* Just upload this script to your server and run it, either through CLI or by calling it in your browser.
*
* You should choose a cost that will take at least 100ms
*/
// Upper time limit to check
@Indigo744
Indigo744 / LanguageMatch
Created February 19, 2018 15:27 — forked from christianseel/LanguageMatch
LanguageMatch MODX Snippet – Redirects the visitor based on it's browser language
<?php
/**
* LanguageMatch
* Based on https://gist.github.com/christianseel/504302ce8ddfcde009c0
* Original code by http://stackoverflow.com/a/3771447
*
* Udated by Indigo74 for prefix/suffix and default context
*/
define('CONTEXT_PREFIX', 'web-');
@Indigo744
Indigo744 / Spreadsheet_Excel_Writer and OLE contributors
Created May 30, 2017 15:59
List all meaningful contributors to Spreadsheet_Excel_Writer and OLE packages
Spreadsheet_Excel_Writer package - https://pear.php.net/package/Spreadsheet_Excel_Writer
+---------------------------+--------------+-------------------------------------+------------------------------+----------------------------------------------------+----------------------------------+-----+
| Name | Github login | User page | Public email | Why | Github contribution | OK |
+---------------------------+--------------+-------------------------------------+------------------------------+----------------------------------------------------+----------------------------------+-----+
| Carsten Schmitz | | https://pear.php.net/user/cschmitz | | Listed as Lead in Pear | | [ ] |
| Alexey Kopytko | sanmai | https://pear.php.net/user/sanmai |
@Indigo744
Indigo744 / PhpExcel contributors
Created May 30, 2017 15:55
List all meaningful PHPOffice/PhpExcel contributors
PHPOffice/PhpExcel contributors with at least 10 additions to the repository
+------------------+--------------------------------+-------------------------------------+-----+
| Github user name | User page | Github contribution | OK |
+------------------+--------------------------------+-------------------------------------+-----+
| Progi1984 | https://github.com/Progi1984 | 50 commits / 54643 ++ / 52159 -- | [ ] |
| Slamdunk | https://github.com/Slamdunk | 11 commits / 127 ++ / 88 -- | [ ] |
| ddeboer | https://github.com/ddeboer | 1 commits / 10 ++ / 10 -- | [ ] |
| kea | https://github.com/kea | 1 commits / 65 ++ / 2 -- | [ ] |
@Indigo744
Indigo744 / PhpSpreadsheet contributors
Created May 30, 2017 15:53
List all meaningful PHPOffice/PhpSpreadsheet contributors
PHPOffice/PhpSpreadsheet contributors with at least 10 additions to the repository
+------------------+-----------------------------------+-------------------------------------+-----+
| Github user name | User page | Github contribution | OK |
+------------------+-----------------------------------+-------------------------------------+-----+
| tomaszsita | https://github.com/tomaszsita | 1 commits / 18 ++ / 4 -- | [ ] |
| titanrat | https://github.com/titanrat | 4 commits / 3935 ++ / 2983 -- | [ ] |
| z38 | https://github.com/z38 | 1 commits / 42 ++ / 42 -- | [ ] |
| frans-beech-it | https://github.com/frans-beech-it | 1 commits / 1082 ++ / 1065 -- | [ ] |