Skip to content

Instantly share code, notes, and snippets.

View aortmannm's full-sized avatar

Adrian 'Ronny the fifth' Ortmann aortmannm

View GitHub Profile
@aortmannm
aortmannm / gitlab.sh
Last active November 18, 2021 22:12
gitlab installation on smartOS
## Install necessary packages
pkgin up
pkgin -y in \
bash \
coreutils \
curl \
gcc47 \
gcc47-runtime \
gmake \
icu \
@aortmannm
aortmannm / zfspull.txt
Created May 24, 2013 08:36
request zpool status in zabbix
## Create zfs.conf in /usr/local/etc/zabbix_agentd.conf.d/
vi /usr/local/etc/zabbix_agentd.conf.d/zfs.conf
## Copy into zfs.conf
UserParameter=zpool.health[*],zpool list -H -o health $1
## in zabbix_agentd.conf include the conf.d directory
vi /usr/local/etc/zabbix_agentd.conf
Include=/usr/local/etc/zabbix_agentd.conf.d/

on the guest SmartOS VM

pkg_add http://pkgsrc.joyent.com/sdc6/2012Q1/i386/All/smtools
# note this is going to shut down the VM
sm-prepare-image

on the global zone

# zonecfg -z <uuid>
zonecfg:uuid> add attr
zonecfg:uuid:attr> set name=resolvers
zonecfg:uuid:attr> set type=string
zonecfg:uuid:attr> set value=8.8.8.8,8.8.4.4
zonecfg:uuid:attr> end
zonecfg:uuid> verify
zonecfg:uuid> commit
zonecfg:uuid> exit
# vmadm reboot <uuid>
@aortmannm
aortmannm / .gitconfig
Created May 14, 2014 15:43
gitconfig to use winmerge as mergetool
[mergetool]
prompt = false
keepBackup = false
keepTemporaries = false
[merge]
tool = winmerge
[mergetool "winmerge"]
name = WinMerge
<link rel="import" href="../core-scaffold/core-scaffold.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<link rel="import" href="../core-menu/core-menu.html">
<link rel="import" href="../core-item/core-item.html">
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-menu/core-submenu.html">
<polymer-element name="my-element">