Skip to content

Instantly share code, notes, and snippets.

@jasperla
jasperla / smartos-bootstrap.yml
Created July 9, 2017 20:55
Bootstrapping Ansible on SmartOS headnode
---
# Playbook to bootstrap a SmartOS headnode for use with Ansible
- name: bootstrap a SmartOS headnode
hosts: smartos-headnode
gather_facts: no
vars:
pkgsrc_rel: 2017Q1
bootstrap_tar: bootstrap-{{ pkgsrc_rel }}-tools.tar.gz
bootstrap_sha1: a39d8dce904c2d0afb3cb570c671490153a71f15
ansible_ssh_pubkey: 'ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDCXRiC3PzMKMCI7X1s2l6amMfN0avqlyRasd1VU0pLiROwu6fyyA1HAkngnu68dXfReAx2/CVYOxXDAQUOyXAgR4wDPOd1NT7NQWFawr0xN8RdgD0l8BQRbJfz61KvBUyFC7brsg5liIbAsqDwB35s3Nchq8yEJj6cv7CPngP/5JMS6wUUT6CFtWimqsxRVGuUNWRlhGeU+CO62EoQXutndhbjbQKGXieKjO3ZLSKsXkDfrfwSwyoc/6HMZP4EJqKWVYufzq3zAxGargDm0a7RRincC1McvbwH/YEx9CDekCzoW1aaATJlvqooX4HzdqwjSduUQD/2rfHpL8576jYZsZWOAseJgDJAN5LvFiVTdFtC8el9BdT7J5EpKb8t7zlMRJ12qso5IJCabzcqTtpPhzu/JdP5wLDPyExAZI94vO8q0CLbMvkMYiS7hpgVHshmxsTiyOzT+nxmoJwqnCIUAq8sQgM8o/Nou0lzX55zVRx3icTlhdNCLQx/62pcbvm2pVjPDGd/yf0g1fdAxH7QIth6qmerFdiXmER0VkJ0V9nDQNbPbkzLp713TXaYI2grLbs9D+SHTXOSWD3H16V4KitYdGyBS17IwRGKxdSDDlX4lQiUNZhsEoEycqfKc3KXHTdZcXwK+gwkB+jl8L
@icebreaker
icebreaker / fibo.asm
Last active November 14, 2015 11:58
A small "experimental" VM written in Ruby.
;
; Prints first N from the Fibonacci sequence.
;
read_n:
mov dx, 78
prc dx
mov dx, 58
prc dx
@robinsmidsrod
robinsmidsrod / gist:5652708
Last active December 17, 2015 18:19
Migrating from Nexenta NCP to OmniOS - post install / zpool import modifications
SMB passwords working
- add in /etc/pam.conf: other password required pam_smb_passwd.so.1 nowarn
- http://web.archive.org/web/20110907145354/http://wiki.genunix.org/wiki/index.php/Getting_Started_With_the_Solaris_CIFS_Service
- passwd username (for all SMB users)
- smbadm join -w MYWORKGROUP
- smbadm enable-user myadmin
- smbadm add-member -m myadmin administrator
syslog to central server
- add this line to /etc/syslog.conf (use TAB as delimiter) and svcadm restart system-log:
@jpetazzo
jpetazzo / README.md
Last active August 21, 2019 17:55
Give network superpowers to docker

Unionize: network superpowers for your docker containers

Unionize lets you connect together docker containers in arbitrarily complex scenarios.

Note: I recommend to use https://github.com/jpetazzo/pipework instead.

  • pipework is a better name than unionize
  • it's hosted on a "real" github repo instead of a small gist :-)

Now if you want Unionize, it's still here. Just check those examples.

@kyledrake
kyledrake / gist:2120107
Created March 19, 2012 17:24
Rainbows! config file for use with EventMachine
# This is a configuration script for using Rainbows with EventMachine. I'm providing it incase somebody finds it useful. But honestly, you
# should stop using EventMachine and use threads instead. The ThreadPool version of this is also in my gist list, and I recommend taking a look at that instead.
# NO, SERIOUSLY, STOP USING EVENTMACHINE.
Rainbows! do
name = 'yourappname'
use :EventMachine
client_max_body_size nil # This is set in nginx
# keepalive_timeout 1
# This document describes updating the SmartOS boot_archive and /usr volumes.
#
# The boot_archive effectively contains /. If you want to make changes to SMF
# or so forth, you need to update the boot_archive.
#
# If you want to add things to /usr, such as drivers, you will need to update
# usr.lgz. It is compressed, so note the lofiadm -U and -C calls below. Once
# you have updated usr.lgz you will need to copy it back to the mounted
# boot_arhive.
#