Skip to content

Instantly share code, notes, and snippets.

View gvanem's full-sized avatar

Gisle Vanem gvanem

View GitHub Profile
@gvanem
gvanem / Makefile.MSVC
Last active November 28, 2019 14:13
A Gnu-Makefile for Doxygen (targeting MSVC or clang-cl)
#
# GNU-makefile for Doxygen (MSVC / clang-cl, 32-bit)
#
# By G. Vanem <[email protected]> 2019.
#
THIS_FILE := Makefile.MSVC
DEP_FILE := .depend.MSVC
DATE := $(shell date +%d-%B-%Y)
#
@gvanem
gvanem / snmpmgr.c
Created August 20, 2019 16:17
A simple SNMP-manager using libcurl (Win32 only).
/*****************************************************************************
* _ _ ____ _
* Project ___| | | | _ \| |
* / __| | | | |_) | |
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
* Copyright (C) 1998 - 2018, Daniel Stenberg, <[email protected]>, et al.
*
* This software is licensed as described in the file COPYING, which
@gvanem
gvanem / EveryThing.diff
Created January 18, 2019 07:25
My private patches for the EveryThing SDK. Ref. http://www.voidtools.com
--- a/EveryThing-SDK/src/Everything.c 2017-09-02 00:00:44
+++ b/EveryThing-SDK/src/Everything.c 2019-01-18 06:30:34
@@ -28,14 +28,80 @@
// this project builds the dll (visual studio will also build the lib for us)
// we declare all exported calls to __stdcall, so theres no need to set the default calling standard.
-// disable warnings
-#pragma warning(disable : 4996) // deprecation
+/*
+ * With changes by G. Vanem <2017> for the envtool program.
@gvanem
gvanem / Makefile.Windows
Last active December 13, 2018 21:58
GNU Makefile for RTL_433 (MinGW / MSVC / clang-cl). Ref: https://github.com/merbanan/rtl_433
#
# GNU Makefile for RTL_433 (MinGW / MSVC / clang-cl).
#
# By G. Vanem <[email protected]> 2017.
#
# Ref: https://github.com/merbanan/rtl_433
#
# Choose your weapons:
#
# Set 'USE_STATIC_RTLSDR=1' to link with a static rtlsdr.lib.
@gvanem
gvanem / Makefile.Windows
Last active October 19, 2018 21:42
GNU Makefiles for Qwt - A plotting library for Qt5
#
# GNU Makefiles for Qwt (MSVC + clang-cl).
#
# Project page: https://sourceforge.net/projects/qwt/
# Repository: svn://svn.code.sf.net/p/qwt/code/trunk/qwt
#
DATE := $(shell date +%d-%B-%Y)
#
# The full name of the makefile that includes this '$(THIS_FILE)'.
@gvanem
gvanem / Makefile.Windows
Last active August 21, 2020 11:02
A GNU-makefile for Net-SNMP. Targeting MinGW32, MSVC or clang-cl. 32-bit only.
#
# Net-SNMP Makefile for MinGW32, MSVC or clang-cl.
#
# By Gisle Vanem <[email protected]>.
#
# Also found here:
# https://gist.githubusercontent.com/gvanem/9c2fa42519e790b3bd20479f0dd7b4c7/raw/9acc048f75bd7ef73598030fad3bd640dfc712da/Makefile.Windows
#
THIS_FILE = Makefile.Windows
TODAY := $(shell date +%d-%B-%Y)
@gvanem
gvanem / Makefile.Windows
Last active August 2, 2018 21:14
A GNU-makefile for GNU-make. Targets MinGW, MSVC and clang-cl. Needs trace.c too (see below). Get the sources at git://git.sv.gnu.org/make.git. Apply the below '*.diff' files to check for mem-leaks
#
# GNU Make to generate GNU Make (gnumake.exe) using
# either MinGW gcc, MinGW64-TDM gcc, clang-CL or MSVC cl.
#
# By G. Vanem <[email protected]> 2013.
#
VERSION := $(shell grep AC_INIT ../configure.ac | cut -d']' -f2 | sed -e 's/,\[//g')
DATE := $(shell date +%d-%B-%Y)
@gvanem
gvanem / Makefile.Windows
Last active May 29, 2022 18:34
A GNU Makefile for the Vcpkg Package Manager; https://github.com/Microsoft/vcpkg.git
#
# GNU Makefile for the Vcpkg Package Manager (MSVC / clang-cl / MinGW).
#
# By <[email protected]> 2018 - 2022.
#
# Instructions:
# 1) Clone 'vcpkg' by:
# git clone https://github.com/Microsoft/vcpkg.git <SOME_DIR>
#
# 2) Clone 'vcpkg-tool' by:
@gvanem
gvanem / Makefile.Windows
Last active August 16, 2022 07:35
GNU Makefile for PortAudio. Using MinGW, clang-cl or MSVC. Currently for x86 only. Ref. http://www.portaudio.com/
#
# Gnu Makefile for PortAudio (MSVC + clang-cl).
#
# By G. Vanem <[email protected]> 2014 - 2022.
#
THIS_FILE = Makefile.Windows
TODAY = $(shell date +%d-%B-%Y)
comma := ,
#
@gvanem
gvanem / colour_print.py
Last active June 28, 2018 20:00
A Python netstat clone. Needs psutil, GeoIP and colour_print.py too (see below)
__all__ = [ 'printer', 'trace', 'color_print', 'textcolor' ]
#
# A simple module for printing with colours to the Windows console.
# Currently used only by the syslog-drop.py script.
#
# By G. Vanem <[email protected]> 2012.
#
import os, sys, inspect