I hereby claim:
- I am tahesse on github.
- I am tahesse (https://keybase.io/tahesse) on keybase.
- I have a public key ASC5oB1TWSKfC3-p_ZDDJ3m5XEf0kGzJlapCX-Gm-pOSuQo
To claim this, I am signing this object:
#!/usr/bin/bash | |
killall nginx 2>/dev/null && echo "Killing nginx service on ports 80, 443" | |
for port in {53,1050,1801,2181,5050,7070,8080,8123,8181,9990,15055,15101,15201}; do | |
kill -9 $(netstat -tlnp | awk "/:$port */ {split(\$NF,a,\"/\"); print a[1]}") 2>/dev/null && echo "Killing service that runs on port $port" | |
done |
#!/usr/bin/env python | |
"""Debug hidapi python library and hid devices. | |
You may use this utility script for debugging purposes to check if this library does work as | |
intended, thus detecting all plugged hid devices. | |
This files does also provide you with the vendor_id and product_id required by the udev rule. | |
""" |
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
import logging.config | |
import functools | |
from typing import Callable, Union | |
__author__ = 'Thomas Hesse' |
class Book { | |
String title; | |
Book(this.title); | |
} | |
void main() { | |
List<Book> bookList = [ | |
Book('foo'), | |
]; |
#!/bin/bash | |
# set your device name here (can be found through `xinput`) | |
touchpadDevice='SynPS/2 Synaptics TouchPad' | |
if [ ! -z "$1" ]; then | |
# set the device state via argument (must be 0 or 1) | |
devEnabled=$1 | |
else | |
# toggle the device state |
#!/usr/bin/env sh | |
# https://docs.docker.com/engine/install/debian/ | |
if [ $EUID != 0 ]; then | |
sudo "$0" "$@" | |
exit $? | |
fi | |
apt-get remove docker docker-engine docker.io containerd runc |
from typing import TypedDict | |
class Movie(TypedDict): | |
name: str | |
year: int | |
def foo(movie_params: Movie): | |
pass # do your thing |
import random | |
import click | |
import uvicorn | |
from fastapi import FastAPI, APIRouter, Depends, Request | |
# Service | |
class MySingletonService: | |
def __init__(self): |
const a = [ | |
{id: 1}, | |
{id: 4}, | |
{id: 8}, | |
{id: 6}, | |
]; | |
const b = [ | |
{id: 1, op: 'foo'}, | |
{id: 2, op: 'abc'}, | |
{id: 3, op: 'def'}, |
I hereby claim:
To claim this, I am signing this object: