Skip to content

Instantly share code, notes, and snippets.

@robagar
robagar / tunnel.service
Last active July 27, 2021 06:05
RMS Meteor Camera Video Tunnel
[Unit]
Description=RMS Meteor Camera Video Tunnel
After=network.target
[Service]
Type=oneshot
RemainAfterExit=true
ExecStart=/full/path/to/tunnel.sh
[Install]
@robagar
robagar / asyncio_tick_tock.py
Created June 6, 2021 06:18
Asyncio concurrency with conditions
#!/usr/bin/env python3
import asyncio
from time import time
async def main():
async def counter():
i = 1
t0 = time()
while True:
<!doctype html>
<html lang=en>
<head>
<meta charset=utf-8>
<title></title>
</head>
<body>
</body>
</html>

Choices

  1. Install ghc 7.6.3 and Haskell Platform
  2. Install ghc 7.8.2 and Cabal

Option GHC 7.6.3 + Haskell Platform

GHC 7.6.3

Install Ubuntu 12.04 depencies: