Skip to content

Instantly share code, notes, and snippets.

View barryo's full-sized avatar
🍻
Debugging life, one line at a time...

Barry O'Donovan barryo

🍻
Debugging life, one line at a time...
View GitHub Profile
@barryo
barryo / bootstrap.sh
Created October 25, 2024 14:15
Example bootstrap.sh used during development of IXP Manager v7
#!/usr/bin/env bash
# Copyright (C) 2009 - 2024 Internet Neutral Exchange Association Company Limited By Guarantee.
# All Rights Reserved.
#
# This file is part of IXP Manager.
#
# IXP Manager is free software: you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the Free
# Software Foundation, version v2.0 of the License.
@barryo
barryo / community-filter.foil.php
Last active May 17, 2023 11:16
community-filter.foil.php
<?php
/*
* Bird Route Server Configuration Template
*
*
* You should not need to edit these files - instead use your own custom skins. If
* you can't effect the changes you need with skinning, consider posting to the mailing
* list to see if it can be achieved / incorporated.
*
* Skinning: https://ixp-manager.readthedocs.io/en/latest/features/skinning.html
@barryo
barryo / acme-renew-ssl.sh
Created October 28, 2022 12:41
Script to issue/renew LetsEncrypt SSL certs and hook into SaltStack for deployment
# !/usr/bin/env bash
##
## Copyright (C) 2022 Island Bridge Networks Limited. All Rights Reserved.
##
## Based on work by @sparkeh
##
# Acme location
ACME="/usr/local/acme.sh/acme.sh"
<?php
use IXP\Models\Customer;
// sample customer with ID 18:
$cust = Customer::find(18);
// iterate over the customer's contacts:
foreach( $cust->contacts as $c ) {
@barryo
barryo / 2020_04_27_112353_create_log_table.php
Last active September 20, 2023 06:59
Logging Changes in Laravel Eloquent
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateLogTable extends Migration
{
/**
* Run the migrations.
@barryo
barryo / ixpmanager-v4.9-to-v.5.0-users-email.md
Last active May 9, 2019 15:29
Sample email to members for IXP Manager v4.9 to v5.0 user changes

Hi all,

there are some changes coming as to how users are managed in IXP Manager. No action is required by you but we do want to let you know what's happening.

The current system has two user types for our members:

  1. a customer administrator user whose only purpose is to create and manage users. This user cannot do anything else.

  2. a standard customer user who cannot manage users but has all the other functionality including peering manager, port graphs, peer to peer graphs, etc.

@barryo
barryo / ixpmanager-v4.9.3-to-v.5.0.0
Last active May 18, 2019 10:57
Sample run of IXP Manager upgrade from v4.9.x to v5.0.0
$ git fetch --all
Fetching origin
remote: Enumerating objects: 381, done.
remote: Counting objects: 100% (381/381), done.
remote: Compressing objects: 100% (53/53), done.
remote: Total 713 (delta 342), reused 358 (delta 327), pack-reused 332
Receiving objects: 100% (713/713), 1.13 MiB | 2.37 MiB/s, done.
Resolving deltas: 100% (500/500), completed with 170 local objects.
From https://github.com/inex/IXP-Manager
* [new branch] release-v5 -> origin/release-v5
@barryo
barryo / migrate-ipaddresses-from-ipplan-to-phpipam.php
Created July 15, 2016 20:34
Hacky Simple IPPlan to {php}IPAM script
<?php
/*
* Quick and dirty script to import IPv4 addresses from an IPPlan export (converted to CSV)
* into {php}IPAM to suit a particular use case:
*
* - IPv4 only
* - no consideration of VLANs, VRFs
* - subnets already exist (we could import the IPPlan export directly into {php}IPAM
*
@barryo
barryo / and-the-reverse.txt
Last active May 22, 2016 07:17
as-ixp-samples
curl -H "Content-Type: application/json" \
-H "Accept: application/json" \
-X POST \
-d '{ "definitions": [
{
"target": "92.61.192.131",
"description": "AS5466-AS44384-IPv4",
"type": "traceroute",
"af": 4,
"is_oneoff": true,

Contract Killer

The popular open-source contract for web designers and developers by Stuff & Nonsense

  • Originally published: 23/12/2008
  • Revised date: 15/12/2013
  • Original post