Skip to content

Instantly share code, notes, and snippets.

View kindofblue's full-sized avatar

Pingkai Liu kindofblue

  • AT&T Labs Research
  • New York, NY
View GitHub Profile
@eliquious
eliquious / README.md
Last active April 21, 2025 20:29
Virus Total Clone

Virus Total Design Project

VirusTotal is a online tool for cybersecurity professionals that allows for files and URLs to be scanned for malware. It also manages and displays the metadata after the analysis has been completed.

This document outlines a possible design for implementation.

Architecture

## This is an example of executing code when your zenpack gets installed (or removed)
## This __init__.py file should be located at ZenPacks.namespace.Name/ZenPacks/namespace/Name/__init__.py
## This code should be carefully added to your zenpack so as not to accidently overwrite key methods (
'''
Here begins the non default code
'''
# Import all the things.
@DanGe42
DanGe42 / context_demo.c
Created October 25, 2013 03:14
A non-trivial example of how to use user contexts for trivial scheduling.
#include <ucontext.h>
#include <sys/types.h>
#include <sys/time.h>
#include <signal.h>
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
#include <poll.h>
/* ucontext sample program