Skip to content

Instantly share code, notes, and snippets.

View hfally's full-sized avatar

Tofunmi Falade hfally

View GitHub Profile
@hfally
hfally / index.php
Last active March 8, 2019 19:57
Uses PHP and JS as a point of contact.
<script>
// create a js variable to hold the APP_ENV variable from php
const env = '<?php echo getenv("APP_ENV"); ?>';
// Disable console log on production
if (env === 'production') {
console.log = function () {};
}
</script>
@hfally
hfally / gist:e5242d29c1648e64ec1fc87a44cfff83
Created March 8, 2019 19:55
Uses PHP and JS as a point of contact.
// create a js variable to hold the APP_ENV variable from php
const env = '<?php echo getenv("APP_ENV"); ?>';
// Disable console log on production
if (env === 'production') {
console.log = function () {};
}
before_script:
- apt-get update -qq
- apt-get install -qq git
# Setup SSH deploy keys
- 'which ssh-agent || ( apt-get install -qq openssh-client )'
- eval $(ssh-agent -s)
- ssh-add <(echo "$SSH_PRIVATE_KEY")
- mkdir -p ~/.ssh
- '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config'