Skip to content

Instantly share code, notes, and snippets.

@da-n
da-n / health_alarm_notify.conf
Created August 24, 2019 07:45
Netdata Slack notify
#------------------------------------------------------------------------------
# slack (slack.com) global notification options
# multiple recipients can be given like this:
# "CHANNEL1 CHANNEL2 ..."
# enable/disable sending slack notifications
SEND_SLACK="YES"
# Login to slack.com and create an incoming webhook. You need only one for all
# https://github.com/mthssdrbrg/ddns-route53
#
# awcli needs to be installed with valid credentials and should be in PATH e.g. /home/USER/.local/bin
# ddns-route53 needs to be installed and should be in PATH e.g. /home/USER/.local/bin
# Add to crontab
*/5 * * * * PATH=$PATH:/home/USER/.local/bin /home/USER/.local/bin/ddns-route53 --zone-id XXXXXXXX --record-set www.example.com >> /home/USER/ddns-route53.log 2>&1
@da-n
da-n / gist:9999330
Last active January 5, 2019 15:00
Standard phpDocumentor Tags
/*
@abstract Documents an abstract class, class variable or method.
@access [public, private or protected] Documents access control for an element. @access private indicates that documentation of element be prevented.
@author [author name <author@email>] Documents the author of the current element.
@copyright [name date] Documents copyright information.
@deprecated [version] Documents a method as deprecated.
@deprec Same as @deprecated
@example [/path/to/example] Documents the location of an external saved example file.
@exception Documents an exception thrown by a method — also see @throws.
@global [type $globalvarname] Documents a global variable or its use in a function or method.
@da-n
da-n / gist:19001eba929ebb43d8d2fdda42b20a66
Last active December 13, 2017 00:06
Disable gnome keyring daemon components
@da-n
da-n / keybase.md
Created November 21, 2017 21:26
keybase.md

Keybase proof

I hereby claim:

  • I am da-n on github.
  • I am da_n (https://keybase.io/da_n) on keybase.
  • I have a public key ASBzedy5JCcCqHuCikt7AetYj9_IjmnW_-h3ftKFk-vqlQo

To claim this, I am signing this object:

@da-n
da-n / nodejs_production.md
Created June 17, 2013 23:15
Node.js, Nginx, Varnish, Upstart and Monit
@da-n
da-n / .abcde.conf
Last active February 26, 2017 15:56
abcde config
# -----------------$HOME/.abcde.conf----------------- #
#
# A sample configuration file to convert music cds to
# FLAC using abcde version 2.7.2
#
# http://andrews-corner.org/linux/abcde/index.html
# -------------------------------------------------- #
# Encode tracks immediately after reading. Saves disk space, gives
# better reading of 'scratchy' disks and better troubleshooting of
@da-n
da-n / rsnapshot-daily.timer
Created February 26, 2017 01:05
rsnapshot
[Unit]
Description=rsnapshot daily backup
[Timer]
OnCalendar=*-*-* 00:00:30
Persistent=true
Unit=rsnapshot@daily.service
[Install]
WantedBy=timers.target
@da-n
da-n / ssh.json
Created January 25, 2017 10:20
iTerm SSH Profile
{
"Guid" : "3B588533-BFA8-4069-84E8-30FF9D510436",
"Tags" : [
],
"Ansi 12 Color" : {
"Green Component" : "0.6235294",
"Blue Component" : "0.8117647",
"Red Component" : "0.4470588"
},
@da-n
da-n / default.json
Created January 25, 2017 10:20
iTerm Default Profile
{
"Guid" : "B08493A5-64BB-48D9-B30D-67CAFD86A9E5",
"Tags" : [
],
"Ansi 12 Color" : {
"Green Component" : "0.6235294",
"Red Component" : "0.4470588",
"Blue Component" : "0.8117647"
},