Skip to content

Instantly share code, notes, and snippets.

View StephenKing's full-sized avatar

Steffen Gebert StephenKing

View GitHub Profile
elasticsearch_user 'elasticsearch-logging'
elasticsearch_install 'elasticsearch-logging'
elasticsearch_configure 'elasticsearch-logging'
elasticsearch_service 'elasticsearch-logging' do
service_actions [:enable]
end
git "typoscript-plugin" do
repository "https://gitlab.sgalinski.de/phpstorm/phpstorm-typoscript-plugin.git"
revision "refs/tags/v1.6"
action :sync
end
@StephenKing
StephenKing / gist:e1b899045d5d56b803d9
Created October 20, 2015 21:30
ONOS feature:list
onos> feature:list
Name | Version | Installed | Repository | Description
--------------------------------------------------------------------------------------------------------------------------------------------------------------------
onos-app-virtualbng | 1.3.1-SNAPSHOT | | onos-app-virtualbng-1.3.1-SNAPSHOT | A virtual Broadband Network Gateway(BNG) applicati
onos-openflow | 1.4.0-SNAPSHOT | | onos-openflow-1.4.0-SNAPSHOT | OpenFlow protocol southbound providers
framework-security | 3.0.3 | | standard-3.0.3 | OSGi Security for Karaf
standard | 3.0.3 | x | standard-3.0.3 | Karaf standard feature
aries-annotation | 3.0.3 | | standard-3.0.3 | Aries A
@StephenKing
StephenKing / mininet-hackaton.py
Last active September 29, 2015 14:45
ONOS Hackaton
#!/usr/bin/python
"""
Create a network where different switches are connected to
different controllers, by creating a custom Switch() subclass.
"""
from mininet.net import Mininet
from mininet.node import OVSSwitch, Controller, RemoteController
from mininet.log import setLogLevel
@StephenKing
StephenKing / nec-egress.pcapng
Last active September 17, 2015 09:37
NEC PF5240 MPLS pop operation results in frames lacking Ethernet header
@StephenKing
StephenKing / mpls.py
Last active January 23, 2017 09:55
Ryu MPLS app
from ryu.base import app_manager
from ryu.controller import dpset
from ryu.controller import ofp_event
from ryu.controller.handler import CONFIG_DISPATCHER, MAIN_DISPATCHER
from ryu.controller.handler import set_ev_cls
from ryu.ofproto import ofproto_v1_3
from ryu.ofproto import ether
from ryu.lib.packet import packet, ethernet
from time import sleep
[2015-07-26 16:00:49,397] INFO com.googlesource.gerrit.plugins.replication.ReplicationQueue : Push to https://github.com/TYPO3-ci/TYPO3.CMS-pre-merge-tests.git references: [RemoteRefUpdate[remoteName=refs/heads/TYPO3_6-2, NOT_ATTEMPTED, (null)...a780e46ad709bcf5df9253182c620cec8c748bc4, srcRef=refs/heads/TYPO3_6-2, forceUpdate, message=null], RemoteRefUpdate[remoteName=refs/heads/TYPO3_7-3, NOT_ATTEMPTED, (null)...395b56f469e6e6742367ecfbad8638fb1dc95727, srcRef=refs/heads/TYPO3_7-3, forceUpdate, message=null], RemoteRefUpdate[remoteName=refs/heads/master, NOT_ATTEMPTED, (null)...f676de115f4c693b84975fe53fca029bef5e0f5c, srcRef=refs/heads/master, forceUpdate, message=null], RemoteRefUpdate[remoteName=refs/tags/6.2.14, NOT_ATTEMPTED, (null)...2e7ea604c4ee75bb50d7df9b63d6d1add8b2e1a6, srcRef=refs/tags/6.2.14, forceUpdate, message=null], RemoteRefUpdate[remoteName=refs/tags/7.3.1, NOT_ATTEMPTED, (null)...d9a158029d23662857ed87336492dd8a9860844d, srcRef=refs/tags/7.3.1,
@StephenKing
StephenKing / boxstarter-test.ps1
Last active January 23, 2017 09:56
Boxstarter-Test
# Boxstarter options
$Boxstarter.RebootOk=$true # Allow reboots?
$Boxstarter.NoPassword=$false # Is this a machine with no login password?
$Boxstarter.AutoLogin=$true # Save my password securely and auto-login after a reboot
cinst powershell
if (Test-PendingReboot) { Invoke-Reboot }
Update-ExecutionPolicy Unrestricted
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowFileExtensions -EnableShowFullPathInTitleBar
@StephenKing
StephenKing / infos.txt
Last active January 23, 2017 09:56
Pushing MPLS FlowMods to NEC PF5240
NEC PF5240
# show version
Date 2015/07/02 11:26:13 UTC
Model: PF5240F-48T4XW
S/W: OS-F3PA Ver. V6.0.0.0
H/W: Main board
PF5240F-48T4XW-AX [Y1752CFA0000S4068DCR002:80C50021:2200:11B636-11B636]
@StephenKing
StephenKing / gist:e4c7a7d0ec1786ac8c9d
Created June 15, 2015 11:18
WrongPartitionSchemeError: /boot partition has not been created for some reasons
2015-06-15 11:17:41 INFO fuel_agent.cmd.agent
2015-06-15 11:17:41 INFO fuel_agent.cmd.agent WrongPartitionSchemeError: /boot partition has not been created for some reasons
2015-06-15 11:17:41 INFO fuel_agent.cmd.agent File "/usr/lib/python2.6/site-packages/fuel_agent/drivers/nailgun.py", line 334, in parse_partition_scheme
2015-06-15 11:17:41 INFO fuel_agent.cmd.agent self.partition_scheme = self.parse_partition_scheme()
2015-06-15 11:17:41 INFO fuel_agent.cmd.agent File "/usr/lib/python2.6/site-packages/fuel_agent/drivers/nailgun.py", line 80, in __init__
2015-06-15 11:17:41 INFO fuel_agent.cmd.agent self.driver = utils.get_driver(CONF.data_driver)(data)
2015-06-15 11:17:41 INFO fuel_agent.cmd.agent File "/usr/lib/python2.6/site-packages/fuel_agent/manager.py", line 99, in __init__
2015-06-15 11:17:41 INFO fuel_agent.cmd.agent mgr = manager.Manager(data)
2015-06-15 11:17:41 INFO fuel_agent.cmd.agent File "/usr/lib/python2.6/site-packages/fuel_agent/cmd/agent.py", line 92, in main
2015-06