Skip to content

Instantly share code, notes, and snippets.

View scalixte-mdsol's full-sized avatar

Stanley Calixte scalixte-mdsol

  • Medidata Solutions
  • New York
View GitHub Profile
Apple
Apricot
Avocado
Banana
Bilberry
Blackberry
Blackcurrant
Blueberry
Boysenberry
Currant
@scalixte-mdsol
scalixte-mdsol / load_dotenv.sh
Created March 25, 2025 16:33 — forked from mihow/load_dotenv.sh
Load environment variables from dotenv / .env file in Bash
# The initial version
if [ ! -f .env ]
then
export $(cat .env | xargs)
fi
# My favorite from the comments. Thanks @richarddewit & others!
set -a && source .env && set +a
@scalixte-mdsol
scalixte-mdsol / apache.sh
Created February 16, 2025 21:14 — forked from mikepfeiffer/apache.sh
EC2 Bootstrap Script for Apache
#!/bin/bash
yum update -y
yum install -y httpd
echo '<h1>Hello World</h1>' > /var/www/html/index.html
systemctl start httpd
systemctl enable httpd
#!/bin/bash
az appservice plan create \
-g webapps-dev-rg \
-n gm-asp-dev-02 \
--is-linux \
--number-of-workers 1 \
--sku S1
az webapp create \
@scalixte-mdsol
scalixte-mdsol / apache2.sh
Created February 16, 2025 21:12 — forked from mikepfeiffer/apache2.sh
EC2 Bootstrap Script for Apache v2
#!/bin/bash
yum update -y
yum install -y httpd
instanceId=$(curl http://169.254.169.254/latest/meta-data/instance-id)
echo "<h1>Hello World from $instanceId</h1>" > /var/www/html/index.html
systemctl start httpd
systemctl enable httpd
@scalixte-mdsol
scalixte-mdsol / stress.sh
Created February 16, 2025 21:12 — forked from mikepfeiffer/stress.sh
Install Stress Utility on Amazon Linux 2
sudo amazon-linux-extras install epel -y
sudo yum install stress -y
@scalixte-mdsol
scalixte-mdsol / Plugins
Last active July 8, 2020 22:03
oh_mysh
#!/bin/zsh
plugins=(
git
github
gitfast
heroku
node
react-native
brew
@scalixte-mdsol
scalixte-mdsol / [email protected]
Last active September 23, 2020 23:00
How to install and basic configuration for [email protected]
# Install via homebrew
brew install [email protected]
# Verify version information
brew info [email protected]
# Verify service has not started
brew services list
# Ensure verify is linked with
brew link [email protected] --overwrite --force
# Add version to PATH
export PATH="/usr/local/opt/[email protected]/bin:$PATH"
@scalixte-mdsol
scalixte-mdsol / [email protected]
Last active July 2, 2020 02:02
How to install and basic configuration for [email protected]
# Install with [email protected]
brew install [email protected]
# Verify the installed version with
brew info [email protected]
# Make sure it can be reached
brew link --overwrite --force [email protected]
# Follow instruction to add it to PATH
export PATH="/usr/local/opt/[email protected]/bin:$PATH"
# Verify version
mysql -V
# Install Hadoop with Native Libraries on Max OS X
## Pre-requisites
* maven
* gcc
* GNU Autools Chain: autoconf, automake, libtool
* cmake
* snappy
* gzip
* bzip2