Skip to content

Instantly share code, notes, and snippets.

View j0inty's full-sized avatar
🐧

Steffen Stollfuß j0inty

🐧
  • Rostock, M-V, Germany
View GitHub Profile
@j0inty
j0inty / .vimrc
Created September 12, 2016 15:21
my .vimrc
"""
"
""
" Sets how many lines of history VIM has to remember
set history=500
" With a map leader it's possible to do extra key combinations
" like <leader>w saves the current file
let mapleader = ","
let g:mapleader = ","
// Remember: This is a very simple example. enum's with gaps will not work as expected ...
enum JobStatsIdx
{
None = 0,
First = 1,
Second = 2,
Third = First | Second,
Eight = 8,
Nine = 9
};
@j0inty
j0inty / get_ethernet_addresses.php
Last active September 8, 2016 14:00 — forked from JunaidQadirB/get_mac.php
* added the php tag to activate the syntax highlight
<?php
/**
* Get the all interface mac addresses.
*
* @return array|integer Return the MAC adresses as an array OR if the exec() call failed the return will be the error code from "ipconfig /all".
*/
function get_ethernet_addresses()
{
$physicalAddresses = array();
$ipconfig_output = array();