Skip to content

Instantly share code, notes, and snippets.

View adamcooke's full-sized avatar

Adam Cooke adamcooke

View GitHub Profile
{
"details":"http://github.com/adamcooke/vat-rates",
"rates":[
{
"name":"Italy",
"code":"IT",
"periods":[
{
"effective_from":"0000-01-01",
"rates":{
require 'apns'
# Create a client object
client = APNS::Client.new('https://apns.company.com', auth_key)
# Make a notification
notification = APNS::Notification.new
notification.alert_body = 'Hello World!'
# Send the notification to the device token
@adamcooke
adamcooke / apns.rb
Last active December 15, 2015 12:20
require 'apns'
# Create a client object
client = APNS::Client.new('https://apns.company.com', auth_key)
# Make a notification
notification = APNS::Notification.new
notification.alert_body = 'Hello World!'
# Send the notification to the device token
interfaces {
ethernet eth0 {
vif 100 {
out {
name security
}
}
}
}
firewall {
name security {
default-action drop
rule 1 {
action accept
description "Allow Management Server"
destination {
address 10.0.3.0/24
}
log disable
interfaces {
ethernet eth0 {
vif 101 {
in {
modify public-traffic
}
}
}
}
firewall {
modify public-traffic {
rule 10 {
modify {
table 101
}
source {
address 172.16.0.0/24
}
}
protocols {
static {
table 101 {
interface-route 0.0.0.0/0 {
next-hop-interface pppoe0
}
}
}
}
K>* 10.0.0.0/16 via 10.0.5.1, tap0
C>* 10.0.5.0/24 is directly connected, tap0
K>* 185.22.208.0/22 via 10.0.5.1, tap0
interfaces {
openvpn vtun0 {
config-file /config/auth/ovpn.conf
}
}