Skip to content

Instantly share code, notes, and snippets.

View aortmannm's full-sized avatar

Adrian 'Ronny the fifth' Ortmann aortmannm

View GitHub Profile
<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">
@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
# 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>

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

@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/
@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 / php.ini
Last active March 29, 2018 20:40
fix php.ini for zabbix server
[PHP]
;;;;;;;;;;;;;;;;;;;
; About php.ini ;
;;;;;;;;;;;;;;;;;;;
; PHP's initialization file, generally called php.ini, is responsible for
; configuring many of the aspects of PHP's behavior.
; PHP attempts to find and load this configuration from a number of locations.
; The following is a summary of its search order:
@aortmannm
aortmannm / zabbix-percona.txt
Last active December 15, 2015 12:48
configure percona for zabbix server
svcadm disable mysql:percona
mysqld_safe --skip-grant-tables &
mysql -uroot
mysql> use mysql;
mysql> update user set password=PASSWORD("password") where User='root';
mysql> flush privileges;
mysql> quit;
@aortmannm
aortmannm / zabbix-server.txt
Last active May 5, 2020 01:38
installing zabbix on smartOS
## download newest Version of zabbix
wget http://downloads.sourceforge.net/project/zabbix/ZABBIX%20Latest%20Stable/2.0.5/zabbix-2.0.5.tar.gz?r=http%3A%2F%2Fwww.zabbix.com%2Fdownload.php&ts=1364462224&use_mirror=freefr
## untar the package
tar -zxvf zabbix-2.0.5.tar.gz
## add user and group zabbix
groupadd zabbix
useradd -g zabbix zabbix
@aortmannm
aortmannm / warning.log
Last active December 15, 2015 03:58
fehler log snarl
2013-03-19 16:24:47.261 [warning] <0.121.0>@riak_core_ring_manager:reload_ring:231 No ring file available.
2013-03-19 16:26:32.838 [warning] <0.883.0>@snarl_entity_write_fsm:waiting:137 Write(1) ok
2013-03-19 16:26:32.839 [warning] <0.883.0>@snarl_entity_write_fsm:waiting:137 Write(2) ok
2013-03-19 16:26:32.842 [warning] <0.883.0>@snarl_entity_write_fsm:waiting:137 Write(3) ok
2013-03-19 16:26:40.851 [warning] <0.955.0>@snarl_entity_write_fsm:waiting:137 Write(1) ok
2013-03-19 16:26:40.852 [warning] <0.955.0>@snarl_entity_write_fsm:waiting:137 Write(2) ok
2013-03-19 16:26:40.854 [warning] <0.955.0>@snarl_entity_write_fsm:waiting:137 Write(3) ok
2013-03-19 16:26:48.681 [warning] <0.1028.0>@snarl_entity_write_fsm:waiting:137 Write(1) ok
2013-03-19 16:26:48.682 [warning] <0.1028.0>@snarl_entity_write_fsm:waiting:137 Write(2) ok
2013-03-19 16:26:48.684 [warning] <0.1028.0>@snarl_entity_write_fsm:waiting:137 Write(3) ok