Skip to content

Instantly share code, notes, and snippets.

@peterhellberg
peterhellberg / ffserver.conf
Last active Mar 11, 2021
MJPEG stream from Webcam using FFServer and FFMpeg
View ffserver.conf
HTTPPort 8090
HTTPBindAddress 0.0.0.0
MaxHTTPConnections 200
MaxClients 100
MaxBandWidth 500000
CustomLog -
<Feed camera.ffm>
File /tmp/camera.ffm
FileMaxSize 200M
@attilamolnar
attilamolnar / m_ircv3_sts.cpp
Created Feb 9, 2016
m_ircv3_sts for InspIRCd 2.2 implementing STS draft
View m_ircv3_sts.cpp
/*
* InspIRCd -- Internet Relay Chat Daemon
*
* Copyright (C) 2015 Attila Molnar <attilamolnar@hush.com>
*
* This file is part of InspIRCd. InspIRCd 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, version 2.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
@dansimau
dansimau / ldif-to-csv.sh
Created Nov 12, 2010
Shell script that reads LDIF data from STDIN and outputs as CSV.
View ldif-to-csv.sh
#!/bin/bash
#
# Converts LDIF data to CSV.
# Doesn't handle comments very well. Use -LLL with ldapsearch to remove them.
#
# 2010-03-07
# dsimmons@squiz.co.uk
#
# Show usage if we don't have the right params