Skip to content

Instantly share code, notes, and snippets.

View adamcooke's full-sized avatar

Adam Cooke adamcooke

View GitHub Profile
@adamcooke
adamcooke / Gemfile
Created February 14, 2024 00:26
Initial Gemfile for Innck
# frozen_string_literal: true
source "https://rubygems.org"
ruby "3.3.0"
gem "authie", "~> 4.1"
gem "aws-sdk-s3", require: false
gem "bootsnap", require: false
gem "cssbundling-rails"
{"details":"http://github.com/adamcooke/vat-rates","version":null,"rates":[{"name":"Ireland","code":"IE","country_code":"IE","periods":[{"effective_from":"0000-01-01","rates":{"super_reduced":4.8,"reduced1":9.0,"reduced2":13.5,"standard":23.0,"parking":13.5}}]},{"name":"Croatia","code":"HR","country_code":"HR","periods":[{"effective_from":"0000-01-01","rates":{"reduced1":5.0,"reduced2":13.0,"standard":25.0}}]},{"name":"Spain","code":"ES","country_code":"ES","periods":[{"effective_from":"0000-01-01","rates":{"super_reduced":4.0,"reduced":10.0,"standard":21.0}}]},{"name":"Lithuania","code":"LT","country_code":"LT","periods":[{"effective_from":"0000-01-01","rates":{"reduced1":5.0,"reduced2":9.0,"standard":21.0}}]},{"name":"Poland","code":"PL","country_code":"PL","periods":[{"effective_from":"0000-01-01","rates":{"reduced1":5.0,"reduced2":8.0,"standard":23.0}}]},{"name":"United Kingdom","code":"UK","country_code":"GB","periods":[{"effective_from":"2011-01-04","rates":{"standard":20.0,"reduced":5.0}}]},{"name":"Ne
POST /api/v1/issues/create HTTP/1.1
x-auth-token: demo
x-auth-secret: demo
Content-Type: application/json
Host: demo.staytus.co
Connection: close
User-Agent: Paw/3.1.1 (Macintosh; OS X/10.12.6) GCDHTTPRequest
Content-Length: 102
{"title":"A test by Adam","services":["web-application"],"status":"Operational","state":"monitoring"}
@adamcooke
adamcooke / gist:30c48ea101f040d07a83bfd066a1e427
Created April 26, 2017 13:21
Example nginx configuration for Postal
server {
listen [::]:80;
listen 0.0.0.0:80;
server_name postal.yourdomain.com;
return 301 https://$host$request_uri;
}
server {
listen [::]:443 ssl;
listen 0.0.0.0:443 ssl;
dig -6 +trace atechmedia.com
host -6 google.com
ping6 google.com
> PING6(56=40+8+8 bytes) 2a00:1450:4009:80b::2000
> 16 bytes from 2a00:1450:4009:80b::2000, icmp_seq=0 hlim=57 time=16.416 ms
> 16 bytes from 2a00:1450:4009:80b::2000, icmp_seq=1 hlim=57 time=15.939 ms
edit interfaces ethernet eth0 ipv6
set router-advert prefix [YOUR ROUTED /64]
set router-advert radvd-options "RDNSS [YOUR ROUTER IPV6 ADDRESS] {};"
top
commit
save
set interfaces ethernet eth0 address 2001:470:1f1d:5::1/64
set interfaces ethernet eth0 firewall out ipv6-name home-ipv6
commit
save