Skip to content

Instantly share code, notes, and snippets.

Guillaume Indigo744

  • France
View GitHub Profile
@Indigo744
Indigo744 / HueBridgeDiscovery.cs
Created Dec 10, 2019
Some Hue Bridge Discovery approaches using the Q42.HueApi
View HueBridgeDiscovery.cs
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 Jun 20, 2020 — forked from georg-jung/ProcessAsyncHelper.cs
The right way to run external process in .NET (async version)
View ProcessAsyncHelper.cs
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 Sep 25, 2019
C# BCRYPT.Net cost calculator
View BcryptNetCostCalculator.cs
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 Jul 22, 2019
NodeJS BCRYPT cost calculator
View bcrypt_cost_calculator.js
/**
* 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 Jun 18, 2020
PHP Argon2 benchmark
View argon2_benchmark.php
<?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
View bcrypt_cost_calculator.php
<?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 Feb 19, 2018 — forked from christianseel/LanguageMatch
LanguageMatch MODX Snippet – Redirects the visitor based on it's browser language
View LanguageMatch
<?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
List all meaningful contributors to Spreadsheet_Excel_Writer and OLE packages
View Spreadsheet_Excel_Writer and OLE contributors
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
List all meaningful PHPOffice/PhpExcel contributors
View 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
List all meaningful PHPOffice/PhpSpreadsheet contributors
View 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 -- | [ ] |
You can’t perform that action at this time.