Skip to content

Instantly share code, notes, and snippets.

Florian Wolters FlorianWolters

  • Lower Saxony, Germany
Block or report user

Report or block FlorianWolters

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View opensuse_rpm_repositories.md

RPM Repositories for openSUSE 13.2

openSUSE differs three different repository types. Only one at a time should be used.

Refer to https://de.opensuse.org/Paket_Repositorys for more detailed information.

Offical

  1. Stable
@FlorianWolters
FlorianWolters / the_rule_of_five.h
Created Jan 31, 2015
C++ source code examples for the weblog article "The Rule of Zero"
View the_rule_of_five.h
/**
* Demonstrates *The Rule of Five* C++ idiom.
*
* @file the_rule_of_five.h
* @author Florian Wolters <wolters.fl@gmail.com>
*
* @section License
*
* Copyright Florian Wolters 2015 (http://blog.florianwolters.de).
*
View cpp-source_code_snippets.md

C++ source code snippets

Represent one byte

using Byte = std::uint8_t;

Represent a dynamic number of bytes

#include <vector>
@FlorianWolters
FlorianWolters / cpp-install_instructions.md
Last active Jun 15, 2018
Installation instructions for the C++ ecosystem
View cpp-install_instructions.md

Installation instructions for the C++ ecosystem

This document contains installation instructions for tools and libraries for the programming language C++. It uses the cross-platform build system [CMake][0] whenever the software to download, configure, build and run supports it.

When building with multiple compilers for multiple architectures, a certain naming scheme is used (Convention over Configuration), since the build description has to consist of the following four aspects to be unique:

@FlorianWolters
FlorianWolters / pause.sh
Created Dec 28, 2014
Windows `pause` command in *-nix Shell (Bash)
View pause.sh
#!/bin/bash
function pause() {
if [ "$#" -eq 0 ]
then
PROMPT="Press any key . . ."
else
PROMPT="$1"
fi
@FlorianWolters
FlorianWolters / CMakeLists.txt
Created Apr 23, 2014
Adding Boost as a Dependency with CMake
View CMakeLists.txt
# COPYRIGHT (C) Florian Wolters 2014
#
# Author: Florian Wolters <wolters.fl@gmail.com>
cmake_minimum_required (VERSION 2.8.12.2 FATAL_ERROR)
# Set options for this project.
set (PROJECT_NAME "hello_boost_with_cmake" CXX)
project (${PROJECT_NAME})
set (PROJECT_SOURCE_DECLARATION_DIRECTORY ${PROJECT_SOURCE_DIR}/include)
@FlorianWolters
FlorianWolters / Public_IP_Addresses.md
Created Mar 23, 2014
A List of Public IP Addresses
View Public_IP_Addresses.md

Public IP Addresses

OpenDNS

  • 208.67.220.220
  • 208.67.222.222
@FlorianWolters
FlorianWolters / composer-install-global-tools.cmd
Last active Feb 16, 2016
Batch script to globally install PHP tools with the dependency manager Composer
View composer-install-global-tools.cmd
@ECHO OFF
REM Update Composer
composer self-update
REM PHPUnit
CALL composer global require phpunit/phpunit
REM Mock Object library for PHPUnit
CALL composer global require phpunit/phpunit-mock-objects
@FlorianWolters
FlorianWolters / Linux_Cheat_Sheet.md
Last active Jan 4, 2016
Cheat Sheets and keyboard shortcuts for common software
View Linux_Cheat_Sheet.md

Linux Cheat Sheet

Samba

Limit Samba access to a specific network interface

kwrite /etc/samba/smb.conf &

[global]
    interfaces = eth0 lo
@FlorianWolters
FlorianWolters / FieldCreator.cs
Created Aug 17, 2013
Generic algorithm to allow the creation of nested fields with Word.Interop, by using a string. I have taken the Visual Basic for Applications (VBA) source code from [Nested Fields in VBA](http://stoptyping.co.uk/word/nested-fields-in-vba) and adopted it for C#.
View FieldCreator.cs
//------------------------------------------------------------------------------
// <copyright file="FieldCreator.cs" company="Florian Wolters">
// Copyright (c) Florian Wolters. All rights reserved.
// </copyright>
// <author>Florian Wolters &lt;wolters.fl@gmail.com&gt;</author>
//------------------------------------------------------------------------------
namespace FlorianWolters.Office.Word.Fields
{
using System;
You can’t perform that action at this time.