Skip to content

Instantly share code, notes, and snippets.

@dataolle
dataolle / bgp.yml
Created July 18, 2024 12:57
netsim/ansible/tasks/fortinet.fortios.fortios/bgp.yml
- name: Initialize network variables
set_fact:
ipv4_networks: []
ipv6_networks: []
- name: Set fact for BGP global settings
set_fact:
bgp_global_settings:
as: "{{ bgp.as }}"
ebgp_multipath: "enable"
@dataolle
dataolle / fgtdump.sh
Created July 30, 2019 14:19
dump traffic from fortigate firewall over ssh
#!/usr/bin/env bash
#
# ssh to fortigate firewall and output pcap data to stdout or tcpdump (if terminal is the output)
# needs wirehark tool text2pcap and tcpdump installed
#
shopt -s nocasematch
#set -u # nounset
set -e # errexit
set -E # errtrap
@dataolle
dataolle / gist:4649698
Created January 27, 2013 18:43
xbmc svtplay log
19:22:08 T:2921403456 NOTICE: Thread XBPyThread start, auto delete: false
19:22:09 T:2921403456 NOTICE: -->Python Interpreter Initialized<--
19:22:11 T:2921403456 NOTICE: CommonFunctions-2.5.1
19:22:11 T:2921403456 NOTICE: [SVT Play 3] fetchPage : 'called for : {'link': 'http://www.svtplay.se/video/980526/med-mission-impossible-lalo-schifrin?type=embed'}'
19:22:11 T:2921403456 NOTICE: [SVT Play 3] fetchPage : 'Got request'
19:22:11 T:2921403456 NOTICE: [SVT Play 3] fetchPage : 'connecting to server...'
19:22:12 T:2921403456 NOTICE: [SVT Play 3] fetchPage : 'Done'
19:22:12 T:2921403456 NOTICE: FALLBACK [SVT Play 3] startVideo : 'u'{"videoId":980526,"video":{"videoReferences":[{"url":"http://svtplay1g-f.akamaihd.net/z/se/secure/20130124/1189257-001A/LALO_SCHIFRIN-001A-5774519a69f5df9c_,900,348,564,1680,2800,.mp4.csmil/manifest.f4m","bitrate":0,"playerType":"flash"},{"url":"http://svtplay1g-f.akamaihd.net/i/se/secure/20130124/1189257-001A/LALO_SCHIFRIN-001A-5774519a69f5df9c_,900,348,564,1680,2800,.mp4.cs
@dataolle
dataolle / sendxbmc.sh
Created December 4, 2012 18:50
send url to xbmc's json-rpc service for playback on the big screen
#!/bin/bash
#set url and port to the xbmc box webservice
XBMC_HOST="http://127.0.0.1:8080"
if [ "$1" = "" ]; then
echo -n "Insert URL: "
read url
else
url="$1"
fi