https://cdn.rawgit.com/mfd/7c7a915eb31474cc8c6a65066a4c4dc3/raw/f0f2fb94c21dea904812a53e0eb6cf0bc87f3754/GTWalsheimPro.css
<link rel="https://cdn.rawgit.com/mfd/7c7a915eb31474cc8c6a65066a4c4dc3/raw/f0f2fb94c21dea904812a53e0eb6cf0bc87f3754/GTWalsheimPro.css">
This file contains hidden or 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
syft packages dir:/var/lib/dpkg --output cyclonedx-json="$HOSTNAME.cdx.json" | |
syft packages dir:/var/lib/dpkg --output syft-json="$HOSTNAME.syft.json" | |
grype db status | |
grype db update | |
syft acme-web-1 --output syft-json=acme-web-1.syft.json |
This file contains hidden or 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/sh | |
chmod 700 ~/.ssh | |
chmod 600 ~/.ssh/id_rsa | |
chmod 600 ~/.ssh/id_rsa.pub |
This file contains hidden or 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
app/vendor/ | |
app/public/js/ | |
app/public/css/ | |
app/node_modules/ |
This file contains hidden or 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
yarn config set registry http://localhost:4873 | |
cat ~/.yarnrc |
This file contains hidden or 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 | |
sudo add-apt-repository -y ppa:git-core/ppa | |
sudo apt-get update | |
sudo apt-get install git -y |
This file contains hidden or 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
<?php | |
function is_cli() { | |
if ( defined('STDIN') ) return true; | |
if ( php_sapi_name() === 'cli' ) return true; | |
if ( array_key_exists('SHELL', $_ENV) ) return true; | |
if ( empty($_SERVER['REMOTE_ADDR']) and !isset($_SERVER['HTTP_USER_AGENT']) and count($_SERVER['argv']) > 0) return true; | |
if ( !array_key_exists('REQUEST_METHOD', $_SERVER) ) return true; | |
return false; | |
} |
This file contains hidden or 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
const { totp } = require('otplib') | |
const secret = 'SOMESECRETCODE'; | |
totp.options = { window: 0, step: 5 } | |
token = totp.generate(secret); | |
totp.verify({ token, secret }); |
This file contains hidden or 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
const { Kafka } = require('kafkajs') | |
const kafka = new Kafka({ | |
clientId: 'topic-creator', | |
brokers: ['b-1.cu94'], | |
ssl: true, | |
}) | |
const admin = kafka.admin() |
This file contains hidden or 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
const Promise = require('bluebird'); | |
const CircuitBreaker = require('opossum'); | |
// need a logger | |
const log = require('bunyan').createLogger({ name: 'example' }); | |
// mock sla | |
const mockService = sla => () => (Math.random() > (1 - sla) ? Promise.resolve('foo bar') : Promise.delay(3000)); | |
// create circuit breaker |