Skip to content

Instantly share code, notes, and snippets.

Avatar
✍️
Tinkering Sedulously

Terkwood Terkwood

✍️
Tinkering Sedulously
View GitHub Profile
@Terkwood
Terkwood / sccache-trimmed.txt
Created May 12, 2020
sccache example (trimmed)
View sccache-trimmed.txt
Compile requests 5063
Compile requests executed 971
Cache hits 558
Cache misses 410
Compilation failures 3
Non-cacheable calls 4092
Average cache write 0.002 s
Average cache read miss 2.511 s
Average cache read hit 0.007 s
@Terkwood
Terkwood / brainfuck.hs
Created Apr 23, 2020 — forked from elyatai/brainfuck.hs
A brainfuck interpreter written in Haskell typeclasses
View brainfuck.hs
{-# LANGUAGE
TypeOperators, MultiParamTypeClasses, FunctionalDependencies,
FlexibleInstances, UndecidableInstances
#-}
module Brainfuck where
{- Usage:
Programs are encoded as cons-lists chained by (:-) and terminated by C0.
@Terkwood
Terkwood / README.md
Created Mar 20, 2020 — forked from tetkuz/README.md
GStreamer stream to HTML5
View README.md

Description

[Server] GStreamer ---> HTML [Client]

Require

  • gstreamer-1.x
  • Browser which supports video tag of HTML5

debian

@Terkwood
Terkwood / build_VC4CL_rpi_3Bplus.sh
Last active Mar 1, 2020 — forked from aumouvantsillage/Building VC4CL
Building VC4C and VC4CL on a Raspberry Pi 3 with Raspbian Stretch
View build_VC4CL_rpi_3Bplus.sh
sudo apt install git cmake clang-3.9 opencl-headers ocl-icd-dev ocl-icd-opencl-dev
sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang-3.9 100
git clone https://github.com/doe300/VC4C.git
git clone https://github.com/doe300/VC4CL.git
git clone https://github.com/doe300/VC4CLStdLib.git
cd VC4C
cmake -DBUILD_TESTING=OFF -DSPIRV_FRONTEND=OFF
View coreos docker-compose auto start
$ sudo vim /etc/systemd/system/docker-compose.service
[Unit]
Description=DockerCompose
After=docker.service
Requires=docker.service
[Service]
ExecStart=/opt/bin/docker-compose -f /home/core/docker-compose.yml up -d
@Terkwood
Terkwood / README.md
Created Aug 6, 2019 — forked from kacole2/README.md
EBS and EFS Volumes with Docker For AWS using REX-Ray
View README.md

EBS and EFS Volumes with Docker For AWS using REX-Ray

This procedure will deploy Docker For AWS and go through the steps to build REX-Ray containers. This process will have some hiccups because Docker for AWS will provision resources in different availability zones (AZs). Multiple workers/agents will be spread across AZs (not regions) which means a potential host failure will trigger Swarm to restart containers that could spread across an AZ. If a container is restarted in a different AZ, the pre-emption mechanism for REX-Ray will not work because it no longer has access to the volume in the former AZ.

Deploy Docker for AWS.

Launch Stack

SSH into one of your Docker Manager Nodes

@Terkwood
Terkwood / netlify.sh
Created Mar 8, 2019 — forked from lightdiscord/netlify.sh
Rust and wasm and netlify
View netlify.sh
#!/usr/bin/env bash
set -e
cweb_version=0.6.16
cweb=https://github.com/koute/cargo-web/releases/download/$cweb_version/cargo-web-x86_64-unknown-linux-gnu.gz
curl -Lo cargo-web.gz $cweb
gunzip cargo-web.gz
chmod u+x cargo-web
View prawn_demo_gif.md

Just an animated gif.

@Terkwood
Terkwood / dummy-web-server.py
Last active Aug 19, 2018 — forked from bradmontgomery/dummy-web-server.py
a minimal http server in python. Responds to GET, HEAD, POST requests, but will fail on anything else.
View dummy-web-server.py
#!/usr/bin/env python3
"""
Very simple HTTP server in python.
Usage::
./dummy-web-server.py [<port>]
Send a GET request::
curl http://localhost
@Terkwood
Terkwood / stunnel init script
Last active Jun 21, 2018 — forked from hoegertn/init script
stunnel init script
View stunnel init script
#!/bin/sh
#
# stunnel Start/Stop the stunnel daemons
#
# description: stunnel is a script that runs stunnel daemons
# version 1.00
#
# chkconfig: 345 40 60
#
# processname: stunnel
You can’t perform that action at this time.