View install_aseprite.sh
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
# Copied from https://github.com/aseprite/aseprite/blob/master/INSTALL.md#skia-on-linux | |
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 https://chromium.googlesource.com/chromium/tools/depot_tools.git | |
git clone -b aseprite-m71 https://github.com/aseprite/skia.git | |
export PATH="${PWD}/depot_tools:${PATH}" | |
cd skia |
View Dockerfile
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 python:3.8 | |
COPY ./ /app | |
WORKDIR /app | |
RUN apt-get update -q && apt-get install -qy libmariadbclient-dev && \ | |
pip install Django | |
CMD ["python", "manage.py", "runserver"] |
View nginx_api_spa.conf
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
map $http_upgrade $connection_upgrade { | |
default upgrade; | |
'' close; | |
} | |
server { | |
listen 80; | |
server_name _; |
View provision_codedeploy_ec2ami
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 | |
sudo yum -y update | |
sudo yum -y install ruby | |
sudo yum -y install wget | |
cd /home/ec2-user/ | |
wget https://aws-codedeploy-us-east-1.s3.amazonaws.com/latest/install | |
chmod +x ./install | |
sudo ./install auto |
View cw-monitor-memusage.py
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 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
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
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_ciphers EECDH+CHACHA20:EECDH+AES128:RSA+AES128:EECDH+AES256:RSA+AES256:EECDH+3DES:RSA+3DES:!MD5; | |
ssl_prefer_server_ciphers on; | |
ssl_session_cache shared:TLS:2m; |
View sed_onliner.sh
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
## 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 |
View onliners.sh
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
## 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}"' \; |
View ora_bootstrap.sh
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
yum -y install \ | |
unzip \ | |
binutils \ | |
compat-libcap1 \ | |
compat-libstdc++-33 \ | |
compat-libstdc++-33.i686 \ | |
gcc \ | |
gcc-c++ \ | |
glibc \ | |
glibc.i686 \ |
View commands.txt
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
######################################################################################################################################################## | |
####### The following commands are for Module 4: Building your Swarm Infrastructure | |
####### | |
####### Remember to substitute hostnames and IPs etc etc for the appropriate values in your environment | |
######################################################################################################################################################## | |
####### CONSUL BUILD COMMANDS | |
NODE1 | |
docker run --restart=unless-stopped -d -h consul1 --name consul1 -v /mnt:/data \ |
NewerOlder