Skip to content

Instantly share code, notes, and snippets.

View alexxlabs's full-sized avatar

alexxlabs alexxlabs

View GitHub Profile
@drscream
drscream / application-sshtunnel.xml
Created May 27, 2018 20:24
illumos SmartOS SMF manifest to configure and provide a simple ssh tunnel solution!
<?xml version='1.0'?>
<!DOCTYPE service_bundle SYSTEM '/usr/share/lib/xml/dtd/service_bundle.dtd.1'>
<service_bundle type='manifest' name='export'>
<service name='application/sshtunnel' type='service' version='0'>
<dependency name='net-physical' grouping='require_all' restart_on='none' type='service'>
<service_fmri value='svc:/network/physical'/>
</dependency>
<dependency name='filesystem' grouping='require_all' restart_on='none' type='service'>
<service_fmri value='svc:/system/filesystem/local'/>
</dependency>
@rjloura
rjloura / illumos_router_howto.md
Last active January 14, 2019 17:01
Illumos SmartOS Router

In the following diagram we want to route traffic from rui11 (10.222.222.100/24) to dhcp0 (10.99.99.3/24) via the ruirouter0 router.

Topology:

+-----------------------+             +--------------------------+           +-----------------------+
|       dhcp0           |             |        ruirouter0        |           |        rui11          |
+-----------------------+             +--------------------------+           +-----------------------+
|                       |             |                          |           |                       |
|     10.99.99.3/24     <-------------+       10.99.99.101/24    |     +-----+    10.222.222.100/24  |
@tylerflint
tylerflint / workflow.md
Last active January 12, 2019 06:56
smartos-live src development workflow

Workflow

This workflow was designed specifically to aid in development and testing the components within smartos-live/src. SmartOS is designed to be a read-only operating system that is loaded onto a ramdisk during boot. While this design is very helpful in a datacenter, it is not well suited for local incremental development. This workflow will temporarily alter the behavior of SmartOS to allow a quick and iterative workflow for development.

Goals

The goals of this workflow are to allow the following:

  1. Development occurs directly on the developers workstation, in his or her native editor and toolchain.
  2. All sources within the smartos-live/src directory are compiled when changed, including c files.
@eculver
eculver / Auto-refresh bookmarklet
Created January 2, 2010 01:02
Auto-refresh bookmarklet
// origin: http://www.google.com/support/forum/p/Chrome/thread?tid=1a37ccbdde5902fd&hl=en
javascript:
timeout=prompt("Set timeout [s]");
current=location.href;
if(timeout>0)
setTimeout('reload()',1000*timeout);
else
location.replace(current);
function reload(){