Skip to content

Instantly share code, notes, and snippets.

View gist:f2428c38fd7777b20ace
|=----------------------------=[ BootChess ]=----------------------------=|
|=------------------------=[ by Baudsurfer/rsi ]=------------------------=|
1 - Introduction
1.1 - Why make tiny programs ?
1.2 - Proving know-how remains valued
ecelis /
Created Feb 14, 2021 — forked from tobiasvl/
The commands to build aseprite on Fedora
# Copied from
sudo yum install -y gcc-c++ cmake ninja-build libX11-devel libXcursor-devel mesa-libGL-devel fontconfig-devel
mkdir $HOME/deps
cd $HOME/deps
git clone
git clone -b aseprite-m71
export PATH="${PWD}/depot_tools:${PATH}"
cd skia
ecelis / Dockerfile
Last active Jun 3, 2020
Django Dockerfile
View Dockerfile
FROM python:3.8
COPY ./ /app
RUN apt-get update -q && apt-get install -qy libmariadbclient-dev && \
pip install Django
CMD ["python", "", "runserver"]
## Delete empty line from file
sed -i '/^$/d' <file.ext>
## Delete empty espace at the begining of line
sed -i '/^\s//g' <file.ext>
## Delete email prefix (address@)
sed -i -e 's/[[:alnum:]].\.*[[:alnum:]]*@//g' <file.ext>
## Delete only numbers line
ecelis / nginx_api_spa.conf
Created Oct 3, 2019
Nginx REST API and SPA configuration
View nginx_api_spa.conf
map $http_upgrade $connection_upgrade {
default upgrade;
'' close;
server {
listen 80;
server_name _;
ecelis / provision_codedeploy_ec2ami
Created Feb 22, 2019
Provision CodeDeploy Agent to EC2 AWS AMI (RHEL/CentOS)
View provision_codedeploy_ec2ami
sudo yum -y update
sudo yum -y install ruby
sudo yum -y install wget
cd /home/ec2-user/
chmod +x ./install
sudo ./install auto
ecelis /
Last active Mar 21, 2018 — forked from shevron/LICENSE
Send EC2 instance memory usage stats to CloudWatch using boto and IAM Roles
#!/usr/bin/env python
Copyright (c) 2015, Shahar Evron
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
View nginx_ssl_proxy.conf
server {
listen 443 ssl;
server_name _;
ssl_certificate /path/to/cert.crt;
ssl_certificate_key /path/to/cert.key;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_prefer_server_ciphers on;
ssl_session_cache shared:TLS:2m;
ecelis /
Created Oct 2, 2016
Shell oneliners
## Copy files in YYYY/MM/DD/filename.txt directory hierarchy to YYYY-MM-DD-filename.txt
find . -name '*.txt' -exec bash -c 'name="{}"; cp "${name}" ./"${name:2:4}"-"${name:7:2}"-"${name:10:2}"-"${name:13}"' \;
ecelis / gitconfig
Created Jan 16, 2015
Git global configuration tips
View gitconfig
cat >>~/<<EOF
What happened
cat >>~/.gitignore_global<<EOF