This file contains hidden or 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 -x | |
yum install -y httpd git | |
cd /var/www/html | |
rm -rf * | |
git clone https://github.com/gabrielecirulli/2048.git . | |
service httpd start | |
chkconfig httpd on |
This file contains hidden or 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
# Use this file to parse the structure of your minilogue programs and libraries (sound banks) | |
# this makes it easy to understand and document a finished sound | |
# run "python mnlgxd.py test.mnlgxdprog" to print the sound in a program name test.mnlgxdprog | |
# or "python mnlgxd.py test.mnlgxdlib 1" to print the second sound in the bank named test.mnlgxdlib | |
import struct, sys, zipfile, fpdf | |
fileStructure = [ | |
("MAGIC", "<4s"), | |
("PROGRAM NAME", "12s"), |
This file contains hidden or 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
kubectl get componentstatuses | |
source <(kubectl completion bash) | |
openssl genrsa -out ca.key 2048 | |
openssl req -x509 -new -nodes -key ca.key -subj "/CN=${MASTER_IP}" -days 10000 -out ca.crt | |
openssl genrsa -out server.key 2048 | |
cat > csr.conf <<EOF | |
[ req ] | |
default_bits = 2048 |
This file contains hidden or 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
pip3 install awscli | |
pip3 install awsebcli --upgrade --user | |
brew tap aws/tap | |
brew install aws-sam-cli | |
npm install -g @aws-amplify/cli | |
npm install -g aws-cdk | |
brew install httpie | |
pip3 install chalice | |
brew install amazon-ecs-cli |
This file contains hidden or 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
aws sts assume-role --role-arn arn:aws:iam::<account-id-role>:role/<role-name> --role-session-name <session-name> | |
--serial-number arn:aws:iam::<account-id-user>:mfa/<username> --token-code <digits> |
This file contains hidden or 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
# Use this file to parse the structure of your monologue programs and libraries (sound banks) | |
# this makes it easy to understand and document a finished sound | |
# run "python molg.py test.moldprog" to print the sound in a program name test.moldprog | |
# or "python molg.py test.molglib 1" to print the second sound in the bank named test.molglib | |
import struct, sys, zipfile | |
""" def bit_on_off(flags): | |
bit_list = [] | |
for i in range(15): |
This file contains hidden or 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
// PolyMono: Play polyphonic material on external mono synths | |
// Logic Pro X MIDI-FX Scripter script to separate single notes (voices) out of chords | |
// | |
// Install: On a MIDI track click on MIDI-FX and select Scripter, | |
// paste this script into the script window and hit Run Script, | |
// save script as PolyMono. | |
// | |
// How to use: create a polyphonic track (e.g. a chord progression using a poly plugin), | |
// drop PolyMono Scripter MIDI-FX on the track, | |
// set polyphony to max notes played at once, |
This file contains hidden or 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/python3 | |
import zlib | |
import hashlib | |
import sys | |
if len(sys.argv) != 2: | |
print("Usage:", sys.argv[0], " <path-to-git-object>") | |
exit(-1) |