Skip to content

Instantly share code, notes, and snippets.

@phpenterprise
phpenterprise / custom-service.sh
Last active February 8, 2021 02:04
Configure Python as a service in AWS EC2
#!/bin/bash
#
# custom-service Start up custom-service
#
# chkconfig: 2345 55 25
# description: the custom service (Python)
#
# processname: custom-service
# Source function library
@louis-e
louis-e / UDPSocket.cs
Last active February 4, 2025 04:49 — forked from darkguy2008/UDPSocket.cs
Simple C# UDP server/client in 62 lines
using System;
using System.Net;
using System.Net.Sockets;
using System.Text;
namespace UDP
{
public class UDPSocket
{
public Socket _socket;
@afcidk
afcidk / Makefile
Last active May 10, 2025 15:13
A simple kernel module to show why mutex locks matters.
CONFIG_MODULE_SIG = n
TARGET_MODULE := test_mutex
obj-m := $(TARGET_MODULE).o
ccflags-y := -std=gnu99 -Wno-declaration-after-statement
KDIR := /lib/modules/$(shell uname -r)/build
PWD := $(shell pwd)
all: client