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
outd=$(mktemp -d); echo -e "FROM ubuntu:trusty\nRUN apt-get update && \ | |
apt-get -qqy install firefox icedtea-netx\nRUN adduser --system --shell /bin/bash --uid $UID --disabled-password xuser\nUSER xuser" >$outd/Dockerfile && \ | |
docker build -t oldfirefox $outd && rm $outd/Dockerfile && rm -r $outd && \ | |
docker run -it --rm -e DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix oldfirefox |
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 | |
CGROUP_ROOT="/sys/fs/cgroup" | |
CGROUP_NAME="rsslimiter" | |
# CGROUP_CPUSHARES="512" | |
# CGROUP_BLKIO_THROTTLE_READ_BPS="8:0 $((100*1024*1024)),8:16 $((100*1024*1024))" | |
CGROUP_MAXMEM="$((32 * 1024 * 1024))" # in bytes | |
cgroup_init() |
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
const int pwPin = 7; | |
const int led = 11; | |
void setup() | |
{ | |
Serial.begin(115200); | |
pinMode(pwPin, INPUT); | |
pinMode(led, OUTPUT); | |
} |
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
#!/usr/bin/env python3 | |
import asyncio | |
async def main(): | |
reader, writer = await asyncio.open_connection('localhost', 5556) | |
if crash: | |
pass | |
asyncio.run(main(), debug=True) |
OlderNewer