Skip to content

Instantly share code, notes, and snippets.

Sushuruth Sadagopan sushsada

Block or report user

Report or block sushsada

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
sushsada /
Created Dec 3, 2019
The simplest syslog server using netcat
nc -kluvw 0 514
View sysctl.go
// Mgmt
// Copyright (C) 2013-2018+ James Shubin and the project contributors
// Written by James Shubin <> and the project contributors
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
// This program is distributed in the hope that it will be useful,
sushsada / .vimrc
Created Jan 23, 2019 — forked from simonista/.vimrc
A basic .vimrc file that will serve as a good template on which to build.
View .vimrc
" Don't try to be vi compatible
set nocompatible
" Helps force plugins to load correctly when it is turned back on below
filetype off
" TODO: Load plugins here (pathogen or vundle)
" Turn on syntax highlighting
syntax on
sushsada / strtok.c
Created Dec 21, 2017
An implementation of strtok
View strtok.c
#include <stddef.h>
#include <stdbool.h>
#include <stdio.h>
bool is_delim(char c, char *delim)
while(*delim != '\0')
if(c == *delim)
return true;
sushsada /
Created Sep 24, 2017
a trie implemented in Python
from itertools import islice
from collections import defaultdict
from Queue import Queue
class Node(object):
'A node in our trie. Only nodes at which a key end will have a `val` attribute'
__slots__ = ('children', 'val')
def __init__(self):
self.children = defaultdict(self.__class__)
sushsada / hashtable.c
Last active Oct 12, 2015
A simple hash table in c
View hashtable.c
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include <assert.h>
struct hash_table_entry
char *key;
char *value;
struct hash_table_entry *next;
You can’t perform that action at this time.