Skip to content

Instantly share code, notes, and snippets.

@jwhulette
jwhulette / awslogs-agent-setup.py
Last active Oct 13, 2019
FreeBSD AWS CloudWatch Logs installer
View awslogs-agent-setup.py
#!/usr/bin/python
# Copyright 2014 Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Amazon Software License (the "License"). You may not use
# this file except in compliance with the License. A copy of the License is
# located at http://aws.amazon.com/asl/ or in the "license" file accompanying
# this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
# CONDITIONS OF ANY KIND, either express or implied. See the License for the specific
# language governing permissions and limitations under the License.
@zg
zg / freebsd-qemu-xhyve-mac-os-x-virtual-machine.md
Last active Jun 11, 2020
Create FreeBSD virtual machine using qemu. Run the VM using xhyve.
View freebsd-qemu-xhyve-mac-os-x-virtual-machine.md

TL;DR

  • Create 10GB FreeBSD image using QEMU.
  • Run the VM using xhyve.
  • Mount host directory.
  • Resize the image.

Requisites

View Users.csv
Joe Smith 123456 147852
Bill Jones 987654 369852
Steve Miller 654321 852147
@seriema
seriema / README
Last active Aug 29, 2015 — forked from rwest/README
View README
These two files should help you to import passwords from mac OS X keychains to 1password.
Assumptions:
1) You have some experience with scripting/are a power-user. These scripts worked for me
but they haven't been extensively tested and if they don't work, you're on your own!
Please read this whole document before starting this process. If any of it seems
incomprehensible/frightening/over your head please do not use these scripts. You will
probably do something Very Bad and I wouldn't want that.
2) You have ruby 1.9.2 installed on your machine. This comes as standard with Lion, previous
versions of OS X may have earlier versions of ruby, which *may* work, but then again, they
@pgib
pgib / README.md
Last active Aug 29, 2015
Simple Unix program to output a terminal bell (beep)
View README.md

Compile with:

gcc beep.c -o beep

Or on platforms that no longer have gcc by default (e.g. FreeBSD 10):

cc beep.c -o beep

Made for tmux/screen to get your attention in a background window.

@yesdevnull
yesdevnull / Users.csv
Last active Nov 4, 2019
Use this script to import users into an Open Directory domain on OS X Mavericks Server with users in a CSV. The Users.csv file is an example file to show you the structure expected.
View Users.csv
Bill Jones 987654 369852
Steve Miller 654321 852147
You can’t perform that action at this time.