Skip to content

Instantly share code, notes, and snippets.

View norrland's full-sized avatar

Andreas Eriksson norrland

  • GleSYS
  • Falkenberg
View GitHub Profile
$ aws --profile ceph-sto1 --endpoint-url https://objects.dc-sto1.glesys.net s3api get-bucket-cors --bucket <bucket>
{
"CORSRules": [
{
"AllowedHeaders": [
"*"
],
"AllowedMethods": [
"GET",
"PUT"

ICMPv6 Firewall Rules

Allow in ICMP messages (highly recommended)

ip6tables -A INPUT   -p ipv6-icmp -m icmp6 --icmpv6-type 128 \
-m --comment Permit-EchoRequest   -j ACCEPT

ip6tables -A INPUT   -p ipv6-icmp -m icmp6 --icmpv6-type 129 \
-m --comment Permit-EchoReply     -j ACCEPT
# /etc/rc.conf
# VLAN20 - virt int
cloned_interfaces="bridge0 vlan20 bridge1 vlan40"
ifconfig_vlan20="vlan 20 vlandev em0"
ifconfig_bridge0="addm vlan20 up"
# VLAN40 - virt pub
ifconfig_vlan40="vlan 40 vlandev em0"
ifconfig_bridge1="addm vlan40 up
# grep vnet /iocage/jails/pubjail/config.json
@norrland
norrland / gist:1630b72af22a5e054de3
Created February 11, 2015 09:09
spotify-control binds i3
https://github.com/mgarratt/spotify-control
$ grep spotify .i3/config
bindsym XF86AudioNext exec ~/bin/spotify-control next
bindsym XF86AudioPrev exec ~/bin/spotify-control prev
bindsym XF86AudioPlay exec ~/bin/spotify-control play
@norrland
norrland / recode
Created September 2, 2012 23:21
irssi recode
recode_autodetect_utf8 = ON
recode_fallback = iso8859-1
recode_out_default_charset = utf-8
recode_transliterate = ON