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 | |
AWS_REGION=<region> | |
AWS_PROFILE=<profile> | |
export AWS_REGION | |
export AWS_PROFILE | |
SECRET_PATH="$1" | |
SECRET_KEY=$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
#!/bin/bash | |
set -eo pipefail | |
## Mount this file in /docker-entrypoint-initaws.d so that localstack runs it | |
## as part of its entrypoint routine. | |
echo 'Running AWS verify identity command. See: https://github.com/localstack/localstack/issues/339' | |
aws ses verify-email-identity --email-address ${EMAIL_ADDRESS} --region ${AWS_REGION} --endpoint-url=http://localhost:4579 | |
echo "Verified ${EMAIL_ADDRESS}" |
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 -e | |
## INSTRUCTIONS | |
# In a terminal window, locate this file in your computer and run the following command | |
# $ chmod +x fix-wifi-ubuntu-dell-xps.sh | |
# Then invoke the script (the leading './' is important) | |
# $ ./fix-wifi-ubuntu-dell-xps.sh | |
# The script will prompt you at several points to enter your sudo (admin) password. |
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 | |
echo ECS_CLUSTER=openvpn >> /etc/ecs/ecs.config;echo ECS_BACKEND_HOST= >> /etc/ecs/ecs.config; | |
mkdir -p /ecs-data/openvpn-data | |
echo "/dev/sdf /ecs-data/openvpn-data ext4 defaults 0 2" >> /etc/fstab | |
mount -a | |
yum install -y python36 | |
curl -O https://bootstrap.pypa.io/get-pip.py | |
python3 get-pip.py | |
export PATH=/usr/local/bin:$PATH | |
pip install awscli |
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 | |
function is_git_repo() { | |
ls .git &> /dev/null | |
} | |
function get_latest_tag_for_repo() { | |
pushd ${1} &> /dev/null | |
is_git_repo | |
local is_git_repo=$? |
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/env bash | |
## Example usage: | |
## ../addline.sh 'matchtext' index.html | |
## find . -name "*.html" -exec ../addline.sh 'matchtext' '{}' \; | |
MATCH="${1}" | |
FILE="${2}" | |
INSERT=$(cat <<'EOF' | |
<text here> |
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 | |
# Pre-commit Git hook. | |
# Runs PHP CS on PHP files. | |
# Code slightly modified from the original | |
# https://github.com/BernardoSilva/git-hooks-php/blob/2149da8d4d9737c06137a825abfead11135840d3/pre-commit | |
# | |
# If you absolutely must commit without testing, | |
# use: git commit --no-verify | |
# This will check only staged files to be commited. |
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
#include <stdlib.h> | |
#include <stdio.h> | |
#include <string.h> | |
int issort( | |
void *data, | |
int size, | |
int esize, | |
int (*compare)(const void *key1, const void *key2) | |
) { |
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 | |
# | |
# z3bra -- 2014-01-21 | |
if [[ $# != 2 ]]; then | |
echo "Insufficient arguments." | |
exit 1 | |
fi | |
W3MIMGDISPLAY="/usr/libexec/w3m/w3mimgdisplay" |
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 | |
## | |
# pull-all | |
## | |
# AUTHOR: David J. Sequero | |
# Pull latest changes from all repositories within a directory. | |
# | |
# DEPENDENCIES | |
# - GNU parallel |
NewerOlder