This file contains hidden or 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
import socket | |
import os | |
import sys | |
import json | |
import signal | |
import pathlib | |
import tempfile | |
import time | |
SOCKET_PATH = pathlib.Path(tempfile.gettempdir()) / "python-app-daemon.sock" |
This file contains hidden or 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
package main | |
import ( | |
"encoding/json" | |
"fmt" | |
"io" | |
"log" | |
"net" | |
"os" | |
"os/signal" |
This file contains hidden or 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 cluster = require('node:cluster'); | |
const net = require('node:net'); | |
const fs = require('node:fs'); | |
const os = require('node:os'); | |
const path = require('node:path'); | |
// ################################################################## | |
// ## Sample script that showcases a supposed server application # | |
// ## with integrated CLI. This sample establishes master with # | |
// ## worker process to address blocking concerns. # |
This file contains hidden or 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 net = require('node:net'); | |
const fs = require('node:fs'); | |
const os = require('node:os'); | |
const path = require('node:path'); | |
// ################################################################## | |
// ## Sample script that showcases a supposed server application # | |
// ## with integrated CLI. This sample foregoes the worker process. # | |
// ## It simply opens the socket and listens for commands. # | |
// ## Use this if you can guarantee the server is not blocked. # |
This file contains hidden or 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
// ==UserScript== | |
// @name Move Teams Call Bar | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description Move the call functions bar on Microsoft Teams | |
// @author Mikael Lavi <mikael@lamek.fi> | |
// @match https://teams.microsoft.com/* | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=tampermonkey.net | |
// @grant none | |
// ==/UserScript== |