Skip to content

Instantly share code, notes, and snippets.

View skinkie's full-sized avatar

Stefan de Konink skinkie

View GitHub Profile
global
stats socket /var/run/haproxy.sock mode 600 level admin
stats timeout 2m
ssl-default-bind-options no-sslv3 no-tls-tickets
tune.ssl.default-dh-param 2048
ssl-default-bind-ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-DSS-AES128-GCM-SHA256:kEDH+AESGCM:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA:ECDHE-ECDSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-DSS-AES128-SHA256:DHE-RSA-AES256-SHA256:DHE-DSS-AES256-SHA:DHE-RSA-AES256-SHA:AES128-GCM-SHA256:AES256-GCM-SHA384:AES128-SHA256:AES256-SHA256:AES128-SHA:AES256-SHA:AES:CAMELLIA:DES-CBC3-SHA:!aNULL:!eNULL:!EXPORT:!DES:!RC4:!MD5:!PSK:!aECDH:!EDH-DSS-DES-CBC3-SHA:!EDH-RSA-DES-CBC3-SHA:!KRB5-DES-CBC3-SHA
maxconn 200000
tune.maxaccept -1
user nobody
group nobody
#!/usr/bin/env python
from collections import defaultdict
from pprint import pprint
import random
from pulp import *
def generate_trips(route_names, start_hour, end_hour):
[ 1679.310134] nouveau 0000:01:00.0: DRM: base-0: timeout
[ 1681.311661] ------------[ cut here ]------------
[ 1681.311662] WARNING: CPU: 0 PID: 11784 at drivers/gpu/drm/nouveau/dispnv50/disp.c:213 nv50_dmac_wait+0x22f/0x280 [nouveau]
[ 1681.311744] Modules linked in: snd_seq_oss snd_emu10k1_synth snd_emux_synth snd_seq_midi_emul snd_seq_virmidi snd_seq_midi snd_seq_dummy snd_seq_midi_event snd_hrtimer snd_seq vfat fat ivtv_alsa tuner_simple tuner_types snd_soc_wm8776 snd_soc_core snd_compress snd_pcm_dmaengine intel_rapl_msr wm8775 intel_rapl_common tda9887 tda8290 x86_pkg_temp_thermal intel_powerclamp snd_hda_codec_realtek tea5767 snd_hda_codec_generic ledtrig_audio coretemp tuner kvm_intel cx25840 snd_hda_codec_hdmi wireguard snd_hda_intel snd_intel_dspcfg curve25519_x86_64 libchacha20poly1305 kvm chacha_x86_64 snd_emu10k1 snd_intel_sdw_acpi poly1305_x86_64 libblake2s blake2s_x86_64 libcurve25519_generic libchacha irqbypass libblake2s_generic snd_util_mem ivtv snd_hda_codec snd_ac97_codec snd_hda_core snd
#!/usr/bin/env python
from gzip import GzipFile
import sys
import os
import codecs
from datetime import datetime,timedelta
lastupdated_filenames = {}
@skinkie
skinkie / top10nl.geojson
Last active February 1, 2018 13:18
TOP10NL
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
<xs:schema xmlns:mstns="http://www.netex.org.uk/netex" xmlns="http://www.netex.org.uk/netex" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:gml="http://www.opengis.net/gml/3.2" id="NewDataSet" targetNamespace="http://www.netex.org.uk/netex" attributeFormDefault="qualified" elementFormDefault="qualified">
<xs:import namespace="http://www.opengis.net/gml/3.2" schemaLocation="gml-pos.xsd"/>
<xs:complexType name="name">
<xs:sequence>
<xs:element name="Name" type="xs:string" minOccurs="0"/>
</xs:sequence>
<xs:attribute name="version" form="unqualified" type="xs:string"/>
<xs:attribute name="id" form="unqualified" type="xs:string"/>
</xs:complexType>
<xs:complexType name="ref">
services:
wms:
md:
title: MapProxy WMS Proxy
abstract: This is the fantastic MapProxy.
online_resource: http://mapproxy.org/
contact:
person: Your Name Here
position: Technical Director
organization:
#!/usr/bin/python # This is server.py file
import socket # Import socket module
s = socket.socket() # Create a socket object
host = "192.168.0.5" # Get local machine name
port = 56778 # Reserve a port for your service.
s.bind((host, port)) # Bind to the port
s.listen(5) # Now wait for client connection.