Skip to content

Instantly share code, notes, and snippets.

View jcmvbkbc's full-sized avatar

Max Filippov jcmvbkbc

  • Fremont, CA
View GitHub Profile
@jcmvbkbc
jcmvbkbc / dhcpd.conf
Created September 26, 2014 16:58
gpxelinux config files
ddns-update-style interim;
ignore client-updates;
subnet 192.168.10.0 netmask 255.255.255.0 {
option routers 192.168.10.1;
option subnet-mask 255.255.255.0;
option domain-name-servers 192.168.248.21;
option ntp-servers 192.168.0.1;
@jcmvbkbc
jcmvbkbc / h.c
Last active May 23, 2021 15:51
Hanoi towers with unsorted source.
#include <algorithm>
#include <cassert>
#include <climits>
#include <cstdio>
#include <deque>
typedef std::deque<int> stack;
void move_top1(stack& from, stack& to, stack& spare);
int top(const stack& o)
@jcmvbkbc
jcmvbkbc / fst.c
Last active December 20, 2015 19:09
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <stdint.h>
#include <malloc.h>
#include <unistd.h>
struct FstHdr {
uint32_t signature;
uint32_t width;