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 May 26, 2024 13:39 — 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;