Skip to content

Instantly share code, notes, and snippets.

View chokri's full-sized avatar
🚀
Python/Node AWS Lambda developer

Chokri K' chokri

🚀
Python/Node AWS Lambda developer
View GitHub Profile
from pathlib import Path
import logging
import argparse
from boto3 import Session
import requests
logging.basicConfig()
logger = logging.getLogger(__name__)
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);
@chokri
chokri / .zshrc
Last active March 23, 2022 10:04
Some helpful aliases on my .zshrc
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'
@chokri
chokri / Text-clipping-background.markdown
Created January 19, 2014 17:37
A Pen by khalifa-chokri.