Skip to content

Instantly share code, notes, and snippets.

#include <string>
#include <stdexcept>
#include <memory>
#include <iostream>
#include <uvw.hpp>
int
main(void)
{
#include <stdlib.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <string.h>
#include <stdio.h>
#include <netdb.h>
#include <stdarg.h>
#include <unistd.h>
@promi
promi / 011-unistd.patch
Last active December 14, 2017 01:17
MikroTik MetaROUTER OpenWRT build script for Debian Wheezy (Jessie?)
--- a/src/mklibs-readelf/elf.cpp
+++ b/src/mklibs-readelf/elf.cpp
@@ -25,6 +25,7 @@
#include <fcntl.h>
#include <sys/mman.h>
#include <sys/stat.h>
+#include <unistd.h>
using namespace Elf;
@promi
promi / testmsi.sh
Last active April 6, 2016 00:18
candle + light tests
#!/bin/bash
# Enable 32 bit
sudo dpkg --add-architecture i386
sudo apt update
# Install unzip and 32 bit WINE
sudo apt install unzip wine32 -y
# Add meta package for WINE (optional)
sudo apt install wine -y
--- openid.cabal.old 2015-06-13 15:37:17.331809930 +0200
+++ openid.cabal 2015-06-13 15:43:14.349415630 +0200
@@ -26,15 +26,16 @@
location: git://github.com/elliottt/hsopenid.git
library
- build-depends: base >= 4.0.0.0 && < 5,
- bytestring >= 0.9.1.0,
- containers >= 0.2.0.0,
- HTTP >= 4000.0.9,
@promi
promi / PKGBUILD
Created January 2, 2011 16:17
mumble 1.2.3 git PGKBUILD with CELT 0.7.0 and CELT 0.9.0
# Maintainer: Lauri Niskanen <ape@ape3000.com>
# Contributor: schlaefer <schlaefer[at]gamez-planet.org>
# Modified: Prometheus
pkgname=mumble-git
pkgver=20100704
pkgrel=1
pkgdesc="A voice chat application similar to TeamSpeak"
arch=('i686' 'x86_64')
url="http://mumble.sourceforge.net/"