brew install pkg-config autoconf automake sdl2 sdl2_image sdl2_mixer protobuf-c glew boost ftgl dylibbundler create-dmg
./bootstrap.sh
import hashlib | |
from json import dumps | |
from collections import OrderedDict | |
# composerFileContents should be the dict version of the composer.json file | |
def getContentHash(composerFileContents): | |
relevant = OrderedDict((key, composerFileContents[key]) for key in composerFileContents.keys() if key in ['name','version','require','require-dev','conflict','replace','provide','minimum-stability','prefer-stable','repositories','extra']) | |
if 'config' in composerFileContents and 'platform' in composerFileContents['config']: | |
relevant['config']['platform'] = composerFileContents['config']['platform'] |
for idx in $(curl -sS https://${DOMAIN}:${PORT}/_cat/indices | awk '{print $3}'); do curl -XDELETE "https://${DOMAIN}:${PORT}/${idx}"; done |
import subprocess | |
from json import dumps | |
# NOTE: Files will be written to the current directory, without any checks to prevent overwriting. Archiving and/or version control are not considered here, but highly encouraged. | |
# get a list of all webtasks for the current user | |
list_request = subprocess.run(['wt', 'ls'], stdout=subprocess.PIPE, text=True) | |
# transform that output into a list of task names | |
tasks = [ ln.replace('Name:','').strip() for ln in list_request.stdout.split("\n") if 'Name:' in ln ] |
Push the on button once
- blue indicator lights up
Push the on button two time
- blue indicator lights up (not helpful)
from requests import get, post, put | |
from json import dumps, loads | |
from sys import argv | |
from math import ceil | |
commands = [] | |
def addShard(idx, shard): | |
commands.append({ | |
"allocate" : { |
curl https://codeload.github.com/mui-org/material-ui/tar.gz/v3.7.1 | tar -xz --strip=2 material-ui-3.7.1/examples/create-react-app |
openssl x509 -noout -dates -in cert.pem |