pip3 install --user pyqt5
sudo apt-get install python3-pyqt5
sudo apt-get install pyqt5-dev-tools
sudo apt-get install qttools5-dev-tools
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
export PATH="/usr/local/opt/llvm/bin:$PATH" | |
export CC="/opt/local/bin/clang-mp-10" | |
export CXX="/opt/local/bin/clang++-mp-10" | |
export CXX11="/opt/local/bin/clang++-mp-10" | |
export CXX14="/opt/local/bin/clang++-mp-10" | |
export CXX17="/opt/local/bin/clang++-mp-10" | |
export CXX1X="/opt/local/bin/clang++-mp-10" | |
export LDFLAGS="-L/usr/local/opt/llvm/lib" | |
export CPPFLAGS="-I/usr/local/opt/llvm/include" |
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
docker exec {CONTAINER} killall -USR2 openvpn | |
docker logs {OPENVPN_CONTAINER} |
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
import express from 'express' | |
const app = express() | |
import AWS from 'aws-sdk' | |
const fs = require('fs') | |
const path = require('path') | |
const mtype = require('mime-types') | |
const BUCKET = "mt-jhardy" | |
const PORT = 8080 |
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
// | |
// ViewController.swift | |
// S3Xfer | |
// | |
// Created by John Hardy on 11/17/18. | |
// Copyright © 2018 John Hardy. All rights reserved. | |
// | |
import UIKit | |
import AWSCore |
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
docker run --rm -it -v ${PWD}:/vids google/shaka-packager \ | |
'in=misc1.mp4,stream=audio,init_segment=audio_init.mp4' \ | |
'in=misc1.mp4,stream=video,init_segment=h264_360p_init.mp4' \ | |
--mpd_output h264.mpd \ | |
--base_urls https://example.org/ \ | |
--hls_base_url https://example.org/ \ | |
--generate_static_mpd | |
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
def test(): | |
from pprint import pprint | |
from collections import OrderedDict | |
import zlib | |
import json | |
import urllib.request as request | |
url = 'https://d201a2mn26r7lk.cloudfront.net/latest/gzip/CloudFormationResourceSpecification.json' |
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
curl -L 'https://gist.github.com/ibejohn818/1c93f895e0247211954266569ea862eb/download' -o gist.zip &&\ | |
unzip gist.zip -d ./ &&\ | |
cp -r 1c93f895e0247211954266569ea862eb-master/* . &&\ | |
make test &&\ | |
rm -rf *; |
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 | |
# tested on centos 6/7 -JH | |
# tested on awslinux 1 -JH | |
echo '* hard core 0' >> /etc/security/limits.conf | |
echo 'fs.suid_dumpable = 0' >> /etc/sysctl.conf | |
sysctl -p |
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
import sys | |
import os | |
import inspect | |
import re | |
import importlib | |
from functools import cmp_to_key | |
import pkgutil | |
from nimbi.aws import CloudFormationStack | |
import nimbi | |
from pprint import pprint |