a snapchat inspired backend chat application
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 | |
if [ -z "$1" ] | |
then | |
echo "User name must be provided on first parameter" | |
echo "USAGE: createuser.sh <username> <containername>" | |
exit 1 | |
fi | |
if [ -z "$2" ] | |
then |
This is an example of a github action that automatically merges master branch with production branch Use cases of this is wide:
- Example is automatically running test on your source code and if they passed, you can automatically build the file and push it to production, and then deploy the production branch on an online server
Learn more about github actions here
name: Update Production
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
#!/usr/bin/env python3 | |
# | |
# A script that runs the commands to perform Netflix's | |
# "Linux Performance Analysis in 60,000 Milliseconds" | |
# | |
# (http://techblog.netflix.com/2015/11/linux-performance-analysis-in-60s.html) | |
# | |
# First install Performance monitoring tools for Linux | |
# `apt install sysstat` | |
# |