Skip to content

Instantly share code, notes, and snippets.

View aussielunix's full-sized avatar
🤠
G`Day

Mick Pollard aussielunix

🤠
G`Day
View GitHub Profile
@aussielunix
aussielunix / README.md
Last active January 7, 2019 03:20
nokogiri ssl issue

nokogiri tls issues

Without https or the www
Forced redirect to https://www

lunix@boran]  -> curl -I http://nokogiri.org/
HTTP/1.1 301 Moved Permanently
Server: GitHub.com
Content-Type: text/html
@aussielunix
aussielunix / aws_nvme-cloud-init.yml
Last active September 21, 2021 00:07
simple cloud-init for mounting an ephemeral nvme store in AWS. This is to be used as user-data.
#cloud-config
repo_update: true
repo_upgrade: all
package_upgrade: true
bootcmd:
- test -z "$(blkid /dev/nvme0n1)" && mkfs -t ext4 -L scratch /dev/nvme0n1
mounts:
@aussielunix
aussielunix / pbcopypaste.md
Created September 9, 2018 06:57
pbcopy and pbpaste on linux
$ sudo apt-get install xclip -y
$ echo "alias pbcopy='xclip -selection clipboard'" >> ~/.bash_alias
$ echo "alias pbpaste='xclip -selection clipboard -o'" >> ~/.bash_alias
@aussielunix
aussielunix / rdp_via_jumpbox_over_ssh.md
Last active October 30, 2018 02:03
rdp via jumpbox over ssh

RDP via an ssh tunnel

The following two commands lets you rdp into a Windows insatnce that is on a private network via a linux jump host.

Run this command and then you have 30 seconds to establish an rdp session.

ssh -i private.key jumpbox@aa.bb.cc.dd.ee -fL 3389:172.12.1.10:3389 sleep 30

This will rdp into the private Windows instance at the other end of the ssh tunnel.

@aussielunix
aussielunix / pws_dns_setup.md
Created January 15, 2018 02:16
pws_dns_setup

DNS Setup for deploying to Pivotal Web Services

The following is a simple guide to using a custom domain when deploying to Pivtoal Web Services (PWS or PDUBS)
You will make use of a wildcard dns CNAME for your own domain that points to a cfapps.io URL.

You will need a permananent cfapps.io URL that becomes the basis for your wildcard CNAME entry.
NEVER REMOVE THIS AS THE WILDCARD DNS WILL FAIL

After that any appname/route will work without any dns entries needed.

@aussielunix
aussielunix / README.md
Last active February 12, 2024 23:37
install script and config files for openvpn server with password auth on ubuntu 16.04

Openvpn Server install and config files

These scripts and config files are expected to be used as a cloudconfig and will install Openvpn server from the default Ubuntu 16.04 repository.
It is setup with certificates to prevent MITM attacks however uses username/password for client authentication.

The following is a generic client config.

client

Keybase proof

I hereby claim:

  • I am aussielunix on github.
  • I am aussielunix (https://keybase.io/aussielunix) on keybase.
  • I have a public key whose fingerprint is 35F5 666D 00F6 636C 6580 14C8 865F 0514 D77A 4DCC

To claim this, I am signing this object:

@aussielunix
aussielunix / README.md
Last active August 29, 2015 14:28
This would be a nice to have for ansible.

Ansible Readme Driven Development (wish)

It would be great to be able to write out a play that contains nothing but name: ... lines as a planning tool.
You can then replace each line one at a time untill you have a working play/role.

sudo cryptsetup luksOpen /dev/sda5 luks_container