Skip to content

Instantly share code, notes, and snippets.

@CSRaghunandan
CSRaghunandan / nginx.conf
Last active December 28, 2023 21:37
Nginx configuration for serving mp4 videos
#user nobody;
worker_processes 4;
#error_log logs/error.log;
#error_log logs/error.log notice;
#error_log logs/error.log info;
#pid logs/nginx.pid;
@niloct
niloct / .bashrc
Last active January 18, 2017 14:41
Bash command for sorting `docker images` command by image size ascending.
alias docker-images-by-size="LC=$LC_NUMERIC && LC_NUMERIC=en_US.UTF-8 && docker images | head -1 && docker images | awk 'NR>2' | sort -k8h -k7n && LC_NUMERIC=$LC"
@rmetzler
rmetzler / docker-compose.yml
Created January 4, 2016 13:35
docker-compose from STDIN
redis:
image: redis
ports:
- "6379:6379"
@ocean90
ocean90 / box-shadow.html
Last active April 11, 2024 13:54
CSS3 Box Shadow, only top/right/bottom/left and all
<!DOCTYPE html>
<html>
<head>
<title>Box Shadow</title>
<style>
.box {
height: 150px;
width: 300px;
margin: 20px;