A Pen by khalifa-chokri on CodePen.
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
from pathlib import Path | |
import logging | |
import argparse | |
from boto3 import Session | |
import requests | |
logging.basicConfig() | |
logger = logging.getLogger(__name__) |
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
const cluster = require('cluster'); | |
const http = require('http'); | |
if (cluster.isMaster) { | |
// Keep track of http requests | |
let numReqs = 0; | |
setInterval(() => { | |
console.log(`numReqs = ${numReqs}`); | |
}, 1000); |
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
function develop { | |
git checkout develop; | |
git pull origin develop; | |
git fetch -ap; | |
git checkout -; | |
} | |
function describe { | |
kubectl describe pod ${1} -n develop | |
} | |
alias gdev='develop' |