Skip to content

Instantly share code, notes, and snippets.

@xixitalk
xixitalk / sleep.c
Created September 15, 2016 00:05
command sleep
#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
#include <unistd.h>
#include <string.h>
static void Usage(const char *name)
{
printf("%s NUMBER[SUFFIX]...\n\n", name);
printf("The sleep command pauses for an amount of time defined by NUMBER. NUMBER must be an integer. floating-point value is NOT support.\n");

Keybase proof

I hereby claim:

  • I am xixitalk on github.
  • I am xixitalk (https://keybase.io/xixitalk) on keybase.
  • I have a public key whose fingerprint is 81EA F423 F64F 7730 BF0E 182D 6DC8 72E5 A611 F93B

To claim this, I am signing this object:

{"sig":"903b0b516fb252b1c42da91b083ef69f840cd2874de5e896662bbd8e9527fd9f633074a78c17a309ba1e1e464d23cf67d6185c5c2c1129c76cd851f7f9f4ea8f1","msghash":"098f9dec6bd669745a7da5cd8c437ac2b971fd1e9d5307d22192fc28afe94fb7"}
@xixitalk
xixitalk / simplerelay.py
Created November 22, 2021 07:08 — forked from JCotton1123/simplerelay.py
Start of simple SMTP relay service in Python
#!/usr/bin/env python
import os
import re
import daemon
import asyncore
import smtpd
class SimpleRelayService(smtpd.PureProxy):
"""Handles processing mail for relay"""