Skip to content

Instantly share code, notes, and snippets.

View chazapis's full-sized avatar

Antony Chazapis chazapis

  • FORTH-ICS
  • Heraklion
View GitHub Profile
@chazapis
chazapis / client.go
Created October 12, 2023 16:18
TCP server in Go with different reader, writer, and processor routines
package main
import (
"fmt"
"net"
"os"
"os/signal"
"syscall"
"time"
)
@chazapis
chazapis / index.html
Last active June 26, 2022 12:57
FORTH-ICS/CARV profile page
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="">
<title>Antony Chazapis &bull; FORTH-ICS/CARV</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-BmbxuPwQa2lc/FVzBcNJ7UAyJxM6wuqIj61tLrc4wSX0szH/Ev+nYRRuWlolflfl" crossorigin="anonymous">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.4.0/font/bootstrap-icons.css">
@chazapis
chazapis / rpi-qemu.sh
Created November 30, 2018 07:25
Run Raspberry Pi image in QEMU
#!/bin/bash
# From:
# https://blog.agchapman.com/using-qemu-to-emulate-a-raspberry-pi/
# https://gist.github.com/hfreire/5846b7aa4ac9209699ba
if [ -z "$1" ]; then
echo "Usage: $0 <name>"
exit 1
fi
@chazapis
chazapis / wpx.py
Last active November 1, 2015 20:07
Count WPXs in ADIF file.
#!/usr/bin/env python
import sys
import re
import urllib2
# From: http://web.bxhome.org/blog/ok4bx/2012/05/adif-parser-python
def parse_adif(fn):
raw = re.split('<eor>|<eoh>(?i)', open(fn).read())
raw.pop(0) # Remove header.
@chazapis
chazapis / Slic3r config.ini
Created June 25, 2015 18:08
Slic3r config
# generated by Slic3r 1.1.7 on Thu Jun 25 21:05:35 2015
avoid_crossing_perimeters = 0
bed_size = 160,160
bed_temperature = 60
bottom_solid_layers = 3
bridge_acceleration = 0
bridge_fan_speed = 100
bridge_flow_ratio = 1
bridge_speed = 60
brim_width = 0
@chazapis
chazapis / pip-status.py
Created May 14, 2012 09:55
Show status of python packages.
#!/usr/bin/env python
import pip
import requests
import json
from optparse import OptionParser
def main():
def print_action(name, action):