This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
source logging_utils.sh | |
DOTENV_ENV="test" | |
DOTENV_BASE="./" | |
if [ ! -z $1 ]; then | |
DOTENV_ENV="$1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For OSX https://unix.stackexchange.com/questions/141420/tr-complains-of-illegal-byte-sequence | |
export LC_ALL=C; | |
# https://gist.github.com/earthgecko/3089509 | |
INTERNAL_SESSION_ID="$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 8 | head -n 1)" | |
function get_session_id() { | |
echo "$INTERNAL_SESSION_ID" | |
} | |
function get_logdate() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- | |
Width 10000px is quite wide, but it has room for new "max", also because Facebook's "adaptation" means only shrinking | |
the Page plugin to fit smaller container. To use Page plugin with larger container than 500px (current max.) you could try | |
to add example Bootstrap class '.center-block' which would center the Page plugin inside larger container. | |
--> | |
<div class="row"> | |
<div class="column-xs-6"> | |
<div class="fb-page center-block" data-width="10000" data-adapt-container-width="true" data-href="https://www.facebook.com/facebook"></div> | |
</div> | |
</div> |