Skip to content

Instantly share code, notes, and snippets.

View Surgams's full-sized avatar

Surgams Surgams

  • Melbourne, Australia
View GitHub Profile
@fatihky
fatihky / mill-nano.c
Last active September 13, 2017 22:00
libmill + nanomsg
#include <stdio.h>
#include <nanomsg/nn.h>
#include <nanomsg/pair.h>
#include <libmill.h>
struct nn_mill_msg {
int size;
char *msg;
};
@gubatron
gubatron / compiling_building_c_cpp_notes.md
Last active April 18, 2024 07:58
Things to remember when compiling and linking C/C++ programs

Things to remember when compiling/linking C/C++ software

by Angel Leon. March 17, 2015;

Last update on December 14, 2023

Updated on February 27, 2023

Updated August 29, 2019.

@alan-mushi
alan-mushi / json_parser.c
Last active March 25, 2024 19:23
Examples for the json-c tutorial.
/*
* A simple example of json string parsing with json-c.
*
* clang -Wall -g -I/usr/include/json-c/ -o json_parser json_parser.c -ljson-c
*/
#include <json.h>
#include <stdio.h>
int main() {
struct json_object *jobj;
@dreamcat4
dreamcat4 / webcamd.md
Last active July 15, 2023 13:34
How to Install Webcamd on FreeBSD, FreeNAS / NAS4Free / pfSense, with Finch v1.27 - http://dreamcat4.github.io/finch/

Webcamd How-To

First of all, visit the FreeBSD WebcamCompat page to check that your TV Tuner device is supported. Most popular webcams are compatible. Then follow the instructions on this page to install the webcamd program.

In some fewer cases, you may own a compatible PCI card, which is recognised by the system as a native PCI device. Those devices need their own special kernel module, and do not use webcamd at all. For example the Hauppauge WinTV HVR-4000. Which require the cx88 kernel modules to be loaded. You will instead need to follow the steps here for installing the cx88 device driver.

Most of these commands can just be copy-pasted. The webcamd program must be installed directly in Finch's chroot. This is because webcamd needs to create new device nodes e.g. /dev/dvb, etc. in '/dev/'. Such special files require 'mknod' cmd. That can't be created in a jail.

@miguelmota
miguelmota / README.md
Last active May 25, 2024 13:23
Multiple accounts with Mutt E-Mail Client (gmail example)

How to set up multiple accounts with Mutt E-mail Client

Thanks to this article by Christoph Berg

Instructions

Directories and files

~/