Skip to content

Instantly share code, notes, and snippets.

# This fails and I get value "InstrumentationKey".
APPLICATION_INSIGHTS_INSTRUMENTATION_KEY='InstrumentationKey=00000000-0000-0000-0000-000000000000;IngestionEndpoint=https://eastus-8.in.applicationinsights.azure.com/;LiveEndpoint=https://eastus.livediagnostics.monitor.azure.com/'
# This works and I get the correct full value.
APPLICATION_INSIGHTS_CONNECTION_STRING='InstrumentationKey=00000000-0000-0000-0000-000000000000;IngestionEndpoint=https://eastus-8.in.applicationinsights.azure.com/;LiveEndpoint=https://eastus.livediagnostics.monitor.azure.com/'
#include <iostream>
#include <fstream>
#include <filesystem>
int main()
{
const auto sandbox = std::filesystem::absolute(std::filesystem::path{ "sandbox" });
if (std::filesystem::exists(sandbox))
{
@Bajron
Bajron / COMPRESSED SUFFIX ARRAY EXAMPLE
Last active July 5, 2017 21:26
Trying out compressed suffix array. Implementing ideas really nicely described in www.cs.cmu.edu/~dga/csa.pdf
Trying out compressed suffix array. Implementing ideas really nicely described in www.cs.cmu.edu/~dga/csa.pdf
*This file exists just to give the gist a sensible name*
This gist contains multiple files. Notice you can clone this gist as any other repository.
@Bajron
Bajron / logger.cpp
Last active April 26, 2017 20:31
Yet another logger concept
// flags: -D EXTRACTION
#include <string>
#include <iostream>
#include <vector>
#include <type_traits>
#include <cassert>
#include <cstring>
#include <algorithm>
#include <thread>
#include <ctime>
#!/bin/bash
case "${1}" in
-h|--help) cat <<EOF
Simple script to save audio tracks as .mp3 files.
This script just automates what VLC can do file by file.
Usage:
$0 destination-dir start-track [end-track]
Example:
if [ "${BASH_SOURCE[0]}" == "${0}" ]; then
echo "* This file is supposed to be sourced!"
echo ""
echo "Usage:"
echo " source $0"
exit 1
fi
function rosalind_help() {
@Bajron
Bajron / minimake.bash
Last active March 25, 2017 12:14
Minimake
#!/bin/bash
if [ "${BASH_SOURCE[0]}" == "${0}" ]; then
echo "* This file is supposed to be sourced!"
echo ""
echo "Usage:"
echo " source $0"
exit 1
fi