Skip to content

Instantly share code, notes, and snippets.

class String
# Map of latin chars and their representations as unicode chars.
LATIN_MAP = {
"A" => %w[À Á Â Ã Å Ą Ā],
"a" => %w[à á â ã å ą ả ã ạ ă ắ ằ ẳ ẵ ặ â ấ ầ ẩ ẫ ậ ā],
"AE" => %w[Ä Æ Ǽ],
"ae" => %w[ä æ ǽ],
"C" => %w[Ç Č Ć Ĉ],
"c" => %w[ç č ć ĉ],
@baltuonis
baltuonis / farm_ventilation_control.ino
Last active December 19, 2015 11:09
Farm ventilation control Arduino
// Farm ventilation control
// Rev. 2013-07-18
// by Futureless (Arduino forum)
// Changelog:
// - 2013-07-18:
// Reduced fan loop delay time to 30sec
// Added delays between fan turn offs (supposedly to reduce EMI during turn off)
// Reduced moving average 15 > 7
// - 2013-07-07: Initial production release
--- ext/openssl/ossl_pkey_ec.c
+++ ext/openssl/ossl_pkey_ec.c
@@ -757,8 +757,10 @@ static VALUE ossl_ec_group_initialize(int argc, VALUE *argv, VALUE self)
method = EC_GFp_mont_method();
} else if (id == s_GFp_nist) {
method = EC_GFp_nist_method();
+#if !defined(OPENSSl_NO_EC2M)
} else if (id == s_GF2m_simple) {
method = EC_GF2m_simple_method();
+#endif
//// CALL AN API
callAPI() {
// FIXME: get cached token?
AuthService.app.acquireTokenSilent(['https://apim-teamsoftware-cus-authtest-dev.azure-api.net/authtest']).then(token =>
const url = 'https://apim-teamsoftware-cus-authtest-dev.azure-api.net/authtest/api/HttpTriggerCSharp2'
return this.fetch(token, url).then(res => console.log(res))
)
@baltuonis
baltuonis / bigbluebutton-icecast.md
Last active March 11, 2021 16:41
BigBlueButton to Icecast streaming configuration (using mod_shout in FreeSWITCH)

BigBlueButton > FreeSwitch > Icecast configuration

Summary

What needs to be done in order for BBB to be able to stream to Icecast:

  1. Get Freeswitch source
  2. Install dev dependencies
  3. Compile with mod_shout support
  4. Copy compiled modules to FreeSwitch directory