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 bash | |
set -euo pipefail | |
set -o allexport | |
# https://github.com/Versent/saml2aws#install | |
# https://anunknown.dev/articles/connecting-to-aws-using-saml | |
CMD=saml2aws |
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 | |
try: | |
import boto3 | |
except ImportError: | |
print("Package boto3 not found") | |
env_name = input("Enter the environment variable name: ") | |
ec2 = boto3.client('ec2') |
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
# Podcasts | |
http://freakonomics.com/ | |
https://www.englishclass101.com/ | |
http://www.bbc.co.uk/learningenglish/english/features/6-minute-english | |
https://teacherluke.co.uk/ | |
https://www.allearsenglish.com/episodes/ | |
https://reallifeglobal.com/radio-podcast/ | |
https://www.feelgoodenglish.com/ | |
https://www.myhappyenglish.com/ | |
https://learningenglish.voanews.com/ |
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 | |
ENVIRONMENT=$1 | |
if [[ $ENVIRONMENT == '' ]]; then | |
echo "Specific ENVIRONMENT name like => ./deploy.sh production" | |
exit 0 | |
fi | |
if [[ $IS_BUILD == '' ]]; then |
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.5 | |
RUN apt-get install libxml2-dev libxslt-dev | |
RUN pip3 install newspaper3k && \ | |
curl https://raw.githubusercontent.com/codelucas/newspaper/master/download_corpora.py | python3 |
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
$ gem list | grep 5.0.0 | cut -f1 -d' ' | |
actioncable | |
actionmailer | |
actionpack | |
actionview | |
activejob | |
activemodel | |
activerecord | |
activesupport | |
railtie |
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
module Blacklist | |
extend ActiveSupport::Concern | |
module ClassMethods | |
def where_blacklist(query) | |
where(query) | |
end | |
end | |
def self.included(r) |
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
# install missing libraries (if any) | |
cd ~ | |
sudo yum update | |
yum install java-1.7.0-openjdk.x86_64 | |
yum install unzip | |
yum install mc | |
yum install wget | |
yum install curl | |
# get and unpack elasticsearch zip file |
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
{ | |
"took" : 2, | |
"timed_out" : false, | |
"_shards" : { | |
"total" : 1, | |
"successful" : 1, | |
"failed" : 0 | |
}, | |
"hits" : { | |
"total" : 2, |
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
DULL=0 | |
BRIGHT=1 | |
FG_BLACK=30 | |
FG_RED=31 | |
FG_GREEN=32 | |
FG_YELLOW=33 | |
FG_BLUE=34 | |
FG_VIOLET=35 | |
FG_CYAN=36 |