Skip to content

Instantly share code, notes, and snippets.

View vinzenz's full-sized avatar
🏠
Remotee

Vinzenz 'evilissimo' Feenstra vinzenz

🏠
Remotee
View GitHub Profile
Process: BetterTouchTool [19646]
Path: /Applications/BetterTouchTool.app/Contents/MacOS/BetterTouchTool
Identifier: com.hegenberg.BetterTouchTool
Version: 2.12 (631)
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: BetterTouchTool [19646]
User ID: 501
Date/Time: 2017-05-10 08:29:50.157 +0200
@vinzenz
vinzenz / index.php
Last active August 27, 2023 03:12
Extremely Simple Sample TODO List App in PHP
<!--
Copyright 2017 Vinzenz Feenstra, Red Hat, Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
@vinzenz
vinzenz / dial-mysql-via-ssh.go
Created November 7, 2016 10:27
Using MySQL / MariaDB via SSH in Golang
package main
import (
"database/sql"
"fmt"
"net"
"os"
"github.com/go-sql-driver/mysql"
"golang.org/x/crypto/ssh"
@vinzenz
vinzenz / dial-pq-via-ssh.go
Last active March 26, 2024 18:40
Use postgres via SSH in Golang
package main
import (
"database/sql"
"database/sql/driver"
"fmt"
"net"
"os"
"time"
@vinzenz
vinzenz / test.go
Created November 1, 2016 12:00
Test code to test go-yaml make use of shared addresses when pointers are used to allow recursive parsing
package main
import (
"errors"
"log"
"github.com/go-yaml/yaml"
)
type NoopRes struct {
package main
import (
"io"
"log"
"net"
"os"
)
func forward(conn net.Conn) {
@vinzenz
vinzenz / hashes
Created August 23, 2012 20:00
sha1
c9a2a435faceb4a356450a2d8c840ce3dd2f15af
64db28b5175b706fea92d2e6328c4a97e2154d7a
d32874ede1f7630dc4496294692b78d513940a3d
d651f8c6341a4d50de0d1f0967ec02b02837e07b
701d8471f54a0643914e207f8ee06899fa000b30
832b173438ce98bf01fbb7487f5b99e3f0fc0523
@vinzenz
vinzenz / VBox.log
Created August 20, 2012 16:57
Virtual Box Restore Issue
VirtualBox 4.1.18 r78361 linux.amd64 (Jun 20 2012 13:09:34) release log
00:00:00.879 Log opened 2012-08-20T16:28:58.176610000Z
00:00:00.879 OS Product: Linux
00:00:00.879 OS Release: 2.6.32-279.5.1.el6.x86_64
00:00:00.879 OS Version: #1 SMP Tue Aug 14 16:11:42 CDT 2012
00:00:00.879 DMI Product Name: System Product Name
00:00:00.879 DMI Product Version: System Version
00:00:00.880 Host RAM: 15949MB RAM, available: 12952MB
00:00:00.880 Executable: /usr/lib/virtualbox/VirtualBox
00:00:00.880 Process ID: 19882
#include <stdio.h>
#include "prique.h"
void prique_dump( prique * p )
{
printf("DUMP:\n");
prique_iter begin = prique_begin(p);
size_t size = prique_size( p );
for( size_t i = 0; i < size; ++i ) {
printf("> %d [%d]\n", begin.value->deadline, begin.value->value);
#include "pimpl.h"
struct test::inner{ int x; inner() : x(42) {} };
test::test():pimpl(new inner()){}
test::~test(){}