Skip to content

Instantly share code, notes, and snippets.

View nhymxu's full-sized avatar

Dung Nguyen nhymxu

View GitHub Profile
@nhymxu
nhymxu / zkp2p-trusted-setup-ceremony-v2-1-hdfc_attestation.log
Created January 18, 2024 23:34
Attestation for ZKP2P Trusted Setup Ceremony V2.1 HDFC MPC Phase 2 Trusted Setup ceremony
Hey, I'm nhymxu-535617 and I have contributed to the ZKP2P Trusted Setup Ceremony V2.1 HDFC.
The following are my contribution signatures:
Circuit # 1 (zkp2p-hdfc-send-v2)
Contributor # 18
Contribution Hash: 44d208c8 387f0aa3 6467cf61 fad04b9c
9311445f dc88e370 8b80c01e 2f858f32
769bedbe f2443038 e072bc18 7da20640
d297c96a 067cef33 27ebdf16 492f263e
@nhymxu
nhymxu / zkp2p-trusted-setup-ceremony-v2_attestation.log
Created January 11, 2024 17:29
Attestation for ZKP2P Trusted Setup Ceremony V2 MPC Phase 2 Trusted Setup ceremony
Hey, I'm nhymxu-535617 and I have contributed to the ZKP2P Trusted Setup Ceremony V2.
The following are my contribution signatures:
Circuit # 1 (zkp2p-hdfc-send)
Contributor # 20
Contribution Hash: 1bd10914 31cea82d f47c3aab f042e6c1
44a72442 41f215e9 848da5b7 f5309b25
9a968a8e 68a0222e f8317f10 0adf1ce7
822e2740 efe5600f 20187ea9 2e547031
@nhymxu
nhymxu / email-wallet-trusted-setup-ceremony_attestation.log
Created November 15, 2023 16:39
Attestation for Email Wallet Trusted Setup Ceremony MPC Phase 2 Trusted Setup ceremony
Hey, I'm nhymxu-535617 and I have contributed to the Email Wallet Trusted Setup Ceremony.
The following are my contribution signatures:
Circuit # 1 (emailwallet-account-creation)
Contributor # 11
Contribution Hash: 481ce086 5e4885d9 cd6d9298 63a4a831
6fe75f08 f9aa05e5 e5af22fc e75dd38e
3f6cbb2d fc47edbf 9f913e9b b3df59c2
ec4f3837 46cb256c 1acb673d 027aa9c0
@nhymxu
nhymxu / bash-script-minimal-template.sh
Last active October 30, 2022 12:12
Minimal safe Bash script template
#!/usr/bin/env bash
set -o errexit
set -o nounset
set -o pipefail
if [[ "${TRACE-0}" == "1" ]]; then
set -o xtrace
fi
if [[ "${1-}" =~ ^-*h(elp)?$ ]]; then
@nhymxu
nhymxu / youtube-playlist-randomizer.php
Created October 4, 2021 17:19
Dead simple youtube playlist randomizer
<?php
/**
* Dead simple youtube playlist randomizer
*
* Detail here: https://dungnt.net/blog/php-youtube-playlist-randomizer
*/
date_default_timezone_set('Asia/Ho_Chi_Minh');
const API_ENDPOINT = 'https://www.googleapis.com/youtube/v3/playlistItems';
const PLAYLIST_ID = 'enter youtube playlist here';
@nhymxu
nhymxu / xenforo-1.5-insert-post-to-thread.php
Created February 11, 2020 09:27
XenForo 1.5 - Insert post to thread
<?php
define('XF_ROOT', __DIR__ . '/public_html'); // set this!
define('TIMENOW', time());
define('SESSION_BYPASS', false); // if true: logged in user info and sessions are not needed
require_once(XF_ROOT . '/library/XenForo/Autoloader.php');
XenForo_Autoloader::getInstance()->setupAutoloader(XF_ROOT . '/library');
XenForo_Application::initialize(XF_ROOT . '/library', XF_ROOT);
XenForo_Application::set('page_start_time', TIMENOW);
XenForo_Application::disablePhpErrorHandler();
@nhymxu
nhymxu / adblock-detect.html
Created October 16, 2019 08:22
js detect adblock
<!-- adblock detected -->
<script type="text/javascript">
var adblock = true;
</script>
<script type="text/javascript" src="/adframe.js"></script>
<script type="text/javascript">
if(adblock) {
alert('notice');
}
</script>
@nhymxu
nhymxu / README-python-framework-benchmark.md
Last active March 27, 2024 00:45
Flask vs Falcon vs FastAPI benchmark
gunicorn run:app --workers=9
gunicorn run:app --workers=9 --worker-class=meinheld.gmeinheld.MeinheldWorker

Macbook Pro 2015 Python 3.7

Framework Server Req/s Max latency +/- Stdev

Keybase proof

I hereby claim:

  • I am nhymxu on github.
  • I am nhymxu (https://keybase.io/nhymxu) on keybase.
  • I have a public key whose fingerprint is 6D0C 91BE C15E 2592 91E2 D3C9 029D 2BD6 0ABF 11FF

To claim this, I am signing this object:

@nhymxu
nhymxu / menu-rebuilt.php
Created April 4, 2017 04:05
Drupal 7 menu rebuilt
<?php
error_reporting(E_ALL);
define('DRUPAL_ROOT', getcwd());
require_once './includes/bootstrap.inc';
drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);
menu_rebuild();