The scenario is where the ISP assigns a /104 IPv6 network 'on link' (i.e. not routed): xxxx:yyyy:1::9c3:0:0/104
Add the following to /etc/sysctl.conf
:
# Accept Router Advertisements even if forwarding is enabled.
net.ipv6.conf.eth0.accept_ra = 2
#!/bin/bash | |
echo -e "Name\tInstanceID\tInstanceType\tState\tLaunchTime\tAvailabilityZone\tPrivateIP\tPublicIP" | |
#aws ec2 describe-instances --output text --query 'Reservations[*].Instances[*].[[Tags[?Key==`Name`].Value] [0][0], InstanceId, InstanceType, State.Name, LaunchTime, Placement.AvailabilityZone, PrivateIpAddress, PublicIpAddress ]' | |
aws ec2 describe-instances > instances.json | |
cat instances.json | jq -r '.Reservations[].Instances[]| [(.Tags[] | select(.Key == "Name") | .Value), .InstanceId, .InstanceType, .State.Name, .LaunchTime, .Placement.AvailabilityZone, .PrivateIpAddress, .PublicIpAddress, .VpcId ] | @tsv' |
package main | |
import ( | |
"fmt" | |
"io/ioutil" | |
"os" | |
nmap "github.com/lair-framework/go-nmap" | |
) |
FROM ubuntu:16.04 | |
RUN apt-get update | |
RUN apt-get -y upgrade | |
RUN apt-get -y install nodejs-legacy npm git libgtk2.0-dev libwebkitgtk-dev protobuf-compiler libprotobuf-dev libprotobuf-lite9v5 | |
RUN git clone https://github.com/mapbox/tilemill.git | |
WORKDIR /tilemill | |
RUN npm install | |
RUN echo '{"server":true,"listenHost": "0.0.0.0"}' > /etc/tilemillconfig.json |
aws ec2 describe-instances | jq -r '.Reservations[].Instances[] | [(.Tags[] | select(.Key=="Name") | .Value), .InstanceType] | @csv' |
#!/usr/bin/perl | |
# Credit to Ryan Barnett at Spiderlabs.com for original idea | |
# | |
# Usage: modgrep.pl -a <logfile> | |
# -s <search keyword> (optional) | |
# | |
use strict; | |
use warnings; | |
use Getopt::Std; |
#!/bin/sh | |
# Source: https://github.com/klacke/tc-shaper/blob/master/tc-shaper.sh | |
set -x | |
TC=$(which tc) | |
DEV=pppoe-wan | |
RATEUP=700 | |
# Clear |
{ | |
"AWSTemplateFormatVersion" : "2010-09-09", | |
"Description" : "Test Stack - RDS", | |
"Parameters" : { | |
"VPCId": { | |
"Description" : "Id of an existing VPC to use for RDS server", | |
"Type": "AWS::EC2::VPC::Id", |
FROM centos:centos7 | |
RUN yum makecache | |
RUN yum update -y | |
RUN yum install -y git gcc postgresql-devel python-devel python-virtualenv openssl-devel | |
# We need newer mariadb-devel package due to this bug: https://bugzilla.redhat.com/show_bug.cgi?id=1166603 | |
RUN yum install -y http://mirror.aarnet.edu.au/pub/MariaDB/mariadb-5.5.41/yum/centos7-amd64/rpms/MariaDB-5.5.41-centos7_0-x86_64-devel.rpm http://mirror.aarnet.edu.au/pub/MariaDB/mariadb-5.5.41/yum/centos7-amd64/rpms/MariaDB-5.5.41-centos7_0-x86_64-common.rpm |