Skip to content

Instantly share code, notes, and snippets.

View ongun-kanat's full-sized avatar

Ongun Kanat ongun-kanat

  • München, Germany
  • 21:47 (UTC +01:00)
View GitHub Profile
@redneck-f25
redneck-f25 / 70-hvnetdev.rules
Last active June 17, 2024 23:21
Stable names for multiple network interfaces in GNU/Linux VM on Hyper-V
# /etc/udev/rules.d/70-hvnetdev.rules
SUBSYSTEM=="net", ACTION=="add", PROGRAM=="/etc/udev/hvnetdev_program", NAME="$result"
@syegulalp
syegulalp / winapp.py
Last active November 12, 2024 17:18 — forked from mouseroot/winapp.py
Win32 CreateWindow example in python
# Adapted for Python 3.6 + 64-bit Windows
from ctypes import *
from ctypes.wintypes import *
WNDPROCTYPE = WINFUNCTYPE(c_int, HWND, c_uint, WPARAM, LPARAM)
WS_EX_APPWINDOW = 0x40000
WS_OVERLAPPEDWINDOW = 0xcf0000
WS_CAPTION = 0xc00000
@jirihnidek
jirihnidek / CMakeLists.txt
Last active November 2, 2021 17:15
C++ OpenCL Example
# Minimal version of CMake
cmake_minimum_required (VERSION 2.6)
# Build type
if (NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES)
message(STATUS "Setting build type to 'Debug' as none was specified.")
set(CMAKE_BUILD_TYPE Debug CACHE STRING "Choose the type of build." FORCE)
# Set the possible values of build type for cmake-gui
set_property(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS "Debug" "Release")
endif ()
@daemonza
daemonza / haproxy.cfg
Created March 6, 2012 07:57
HAproxy virtual site load balancing
# This configuration use acl's to distinguish between url's passwd and then route
# them to the right backend servers. For the backend servers to handle it correctly, you
# need to setup virtual hosting there as well, on whatever you use, tomcat, nginx, apache, etc.
# For this to work with SSL, put pound before HAproxy and use a configuration file similar to
# https://gist.github.com/1984822 to get it working
global
log 127.0.0.1 local0
log 127.0.0.1 local1 info
maxconn 4096