Skip to content

Instantly share code, notes, and snippets.

View phips's full-sized avatar
🇬🇧

Mark Phillips phips

🇬🇧
View GitHub Profile
@phips
phips / README.md
Last active November 26, 2023 21:54 — forked from ctsrc/README.md
Guide: Run FreeBSD 13.2-RELEASE for ARM64 in QEMU on Apple Silicon Mac (MacBook Pro M1, etc) with HVF acceleration (Hypervisor.framework)

Guide: Run FreeBSD 13.2-RELEASE for ARM64 in QEMU on Apple Silicon Mac (MacBook Pro M1, etc) with HVF acceleration (Hypervisor.framework)

FreeBSD 13.2-RELEASE for ARM64 boot in QEMU on Apple Silicon Mac screenshot

This guide was adapted from https://gist.github.com/ctsrc/a1f57933a2cde9abc0f07be12889f97f

Running FreeBSD 13.2-RELEASE for ARM64

  1. Install Xcode from App Store or install Command Line Tools on your Mac running on Apple Silicon.
@phips
phips / make_freebsd.sh
Last active July 11, 2023 16:43 — forked from patmaddox/make_freebsd.sh
script to build FreeBSD disk for cloud
#!/bin/sh
set -e
# Adapted from https://www.daemonology.net/blog/2019-02-16-FreeBSD-ZFS-AMIs-now-available.html
if [ ! $# -eq 2 ]; then
echo "Usage: configure.sh <cloud> <disk>"
echo " cloud: aws|gcp"
echo " disk: e.g. da1, nda1"
exit 1
@phips
phips / fcpxml_parse.py
Last active December 30, 2021 09:27 — forked from btgoodwin/fcpxml_parse
Final Cut Pro X FCPXML Parser
#!/usr/bin/python
'''
Original Author: Thomas Goodwin
Company: Geon Technologies, LLC, 2014
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
@phips
phips / week1.yml
Last active April 5, 2020 19:22
#TopTipTuesday
ansible tag_type_web -b -m shell -a 'awk "{print \$9}" /var/log/nginx/access.log | sort | uniq -c | sort -k1,1nr 2>/dev/null | column -t'
@phips
phips / tmux_cheatsheet.markdown
Created October 17, 2019 14:28 — forked from henrik/tmux_cheatsheet.markdown
tmux cheatsheet

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name:

@phips
phips / how_to.md
Created June 4, 2017 13:42 — forked from rskelley9/how_to.md
Workaround: Connect your Chromecast to a Hotel Wireless Network

About

I recently relocated for new employment. I've been staying in an extended stay hotel for about 3 weeks now. The hotel I'm staying in gives its guests free Wifi access. However, it requires users to accept terms and conditions on a splash page via browser interface before they can use the network. This makes it difficult to use my Chromecast with the network, as it doesn't have a means of accessing tht splash page. While I could call the IT help line, I decided to explore a work-around.

Like many networks, my hotel's network attempts to improve security by using MAC address filtering. Luckily, Mac OS X (10.4 - 10.10) makes it very easy to spoof your network card's MAC address.

Here's how to add a devices like Chromecast, AppleTV, Roku to a wireless network that requires a browser to authenticate and accept terms and conditions.

Before You Start

---
- hosts: vm_dummy_group
gather_facts: no
tasks:
- name: Test loop
debug:
msg: "Spinning up VM number {{ item }}"
with_sequence: start={{ start }} end={{ end }}
---
# vim: set ft=ansible et ts=2 sw=2:
#
# Create a new VM to kickstart install
- hosts: vmcreate
gather_facts: false
connection: local
vars:
vcenter_hostname: esx1.box
@phips
phips / hasetup.yml
Last active September 11, 2017 17:56
Tower HA pre-run
---
# vim: set ft=ansible sw=2 ts=2 et:
#
# Prepare for Tower HA install
#
#* Download offline bundle
#* Unarchive offline bundle on ALL hosts
#* do ./bundle_setup.sh on ALL hosts
#* do pre-dependency installs [yum install -y $(cat required_os_packages.txt)] on PRIMARY host
#
@phips
phips / play.yml
Last active August 4, 2017 07:52
vmware + ansible + kickstart
- name: Gather VM facts
vsphere_guest:
vcenter_hostname: vcenter.lan
username: "{{ vcenter_user }}"
password: "{{ vcenter_pass }}"
guest: "{{ name }}"
vmware_guest_facts: yes
register: newvm
tags: mac