Skip to content

Instantly share code, notes, and snippets.

View hugoprudente's full-sized avatar

Hugo Prudente hugoprudente

View GitHub Profile
#!/bin/sh
echo "source from CONTAINER_PATCH_URLS"
@hugoprudente
hugoprudente / Makefile
Created February 25, 2021 21:43
Makefile with help
define PRINT_HELP_PYSCRIPT
import re, sys
for line in sys.stdin:
match = re.match(r'^([a-zA-Z_-]+):.*?## (.*)$$', line)
if match:
target, help = match.groups()
print("%-30s %s" % (target, help))
endef
export PRINT_HELP_PYSCRIPT
@hugoprudente
hugoprudente / female_fronted_metal_bands
Last active July 26, 2018 17:47
Female Fronted Metal Bands
Lacuna Coil - 1997 - Cristina Scabbia - https://www.metal-archives.com/bands/Lacuna_Coil/124
Nightwish - 2013 - Floor Jansen - https://www.metal-archives.com/bands/Nightwish/39
Nightwish - 1997 - Tarja Turunen - https://www.metal-archives.com/bands/Nightwish/39
Nightwish - 2007 - Anette Olzon - https://www.metal-archives.com/bands/Nightwish/39
Within Temptation - 1996 - Sharon den Adel - https://www.metal-archives.com/bands/Within_Temptation/1006
Arch Enemy - 2014 - Alissa White-Gluz - https://www.metal-archives.com/bands/Arch_Enemy/10
Arch Enemy - 2000 - Angela Gossow - https://www.metal-archives.com/bands/Arch_Enemy/10
The Agonist - 2014 - Vicky Psarakis - https://www.metal-archives.com/bands/The_Agonist/102219
The Agonist - 2004 - Alissa White-Gluz - https://www.metal-archives.com/bands/The_Agonist/102219
Epica - 2003 - Simone Simons - https://www.metal-archives.com/bands/Epica/6716
#!/bin/bash -e
exec > >(tee /var/log/user-data.log|logger -t user-data -s 2>/dev/console) 2>&1
# My Customization of AWS Cloud9 to create a ALL-in-ONE Devops test box capable to handle all AWS Services, SDK's and
# other tools and partners available in the market, this should be used together with my personal Cloud9 CloudFormation setup.
echo BEGIN `date '+%Y-%m-%d %H:%M:%S'`
mkdir -p /home/ec2-user/bin/
@hugoprudente
hugoprudente / gist:2806bdfbdb1aef4028ee97635bccd77e
Created May 14, 2018 17:05
How to Setup Cloud9 with CentOS 6.9
sudo yum -y update # update yum
sudo yum -y install centos-release-scl # install SCL
sudo yum -y install python27 # install Python 2.7
sudo yum -y groupinstall -y 'development tools'
sudo yum -y install glibc-static ncurses-devel
sudo rpm -Uvh https://rpm.nodesource.com/pub_4.x/el/7/x86_64/nodesource-release-el7-1.noarch.rpm
sudo yum install nodejs
scl enable python27 bash
curl -L https://raw.githubusercontent.com/c9/install/master/install.sh | bash
@hugoprudente
hugoprudente / ubuntu-cfn-init.json
Created October 2, 2017 09:00
CloudFormation Snippets
#!/bin/bash -xe
exec > >(tee /var/log/user-data.log|logger -t user-data -s 2>/dev/console) 2>&1
mkdir -p /tmp/aws-cfn-bootstrap-latest
curl https://s3.amazonaws.com/cloudformation-examples/aws-cfn-bootstrap-latest.tar.gz | tar xz -C /tmp/aws-cfn-bootstrap-latest --strip-components 1
curl https://s3-ap-southeast-2.amazonaws.com/bucket/cfn-hup.service -o /etc/systemd/system/cfn-hup.service
apt update -y
apt install -y python-pip libssl-dev libffi-dev
pip install --upgrade pip
- name: Install composer
command: php -c /etc/php-cli.ini /tmp/composer --install-dir=/usr/local/bin --filename=composer --disable-tls
creates: /usr/local/bin/composer
sudo: yes
ignore_errors: yes
- name: composer create-project
composer: command=create-project working_dir=/home/vhosts/skiddle.com optimize_autoloader=no
sudo: yes
sudo_user: apache
# install dependencies
sudo apt-get update
sudo apt-get install -y build-essential
sudo apt-get install -y cmake
sudo apt-get install -y libgtk2.0-dev
sudo apt-get install -y pkg-config
sudo apt-get install -y python-numpy python-dev
sudo apt-get install -y libavcodec-dev libavformat-dev libswscale-dev
sudo apt-get install -y libjpeg-dev libpng-dev libtiff-dev libjasper-dev