Skip to content

Instantly share code, notes, and snippets.

View ebenali's full-sized avatar

Elias Benali ebenali

  • us-west-1
  • 00:51 (UTC -07:00)
View GitHub Profile
@AfroThundr3007730
AfroThundr3007730 / add-dod-certs.sh
Last active April 16, 2025 02:30
Import DoD root certificates into linux CA store
#!/bin/bash
# Imports DoD root certificates into Linux CA store
# Version 0.4.1 updated 20241216 by AfroThundr
# SPDX-License-Identifier: GPL-3.0-or-later
# For issues or updated versions of this script, browse to the following URL:
# https://gist.github.com/AfroThundr3007730/ba99753dda66fc4abaf30fb5c0e5d012
# Dependencies: curl gawk openssl unzip wget
@Oleksiy-Yakovenko
Oleksiy-Yakovenko / pipe.cpp
Created January 25, 2018 16:39
cross platform pipe IPC implementation in C++
#include "stdafx.h"
#define USE_POPEN 1
#if PLATFORM_WINDOWS
#define popen _popen
#define pclose _pclose
#endif
class Pipe
@timstclair
timstclair / dynamic_select_test.go
Last active June 9, 2022 07:15
Benchmark aggregating channels vs. reflect.Select
package scratch
import (
"reflect"
"testing"
)
const numProduce = 1000
const numChannels = 100
const expectedResult int64 = numChannels * numProduce * (numProduce - 1) / 2