Skip to content

Instantly share code, notes, and snippets.

View CyrilPeponnet's full-sized avatar

Cyril Peponnet CyrilPeponnet

  • San Jose, California
View GitHub Profile
@CyrilPeponnet
CyrilPeponnet / gist:5337935
Created April 8, 2013 15:58
CPMenuItem issue when using removeAllItems when items are instantiated in the parent class.
/*
* AppController.j
* CPTableViewGroupRows
*/
@import <Foundation/CPObject.j>
@import <AppKit/CPMenu.j>
@import <AppKit/CPMenuItem.j>
TNXMPPServerController.j
@implementation TNXMPPServerController : TNModule
{
@outlet TNXMPPUsersController usersController;
}
#pragma mark -
diff --git a/data/hiera.yaml b/data/hiera.yaml
index 52b83b5..49a2c9f 100644
--- a/data/hiera.yaml
+++ b/data/hiera.yaml
@@ -2,6 +2,7 @@
---
:hierarchy:
- tree/%{::osfamily}/%{::operatingsystem}/%{::operatingsystemrelease}
+- tree/%{::osfamily}/%{::operatingsystem}/%{::operatingsystemmajrelease}
- tree/%{::osfamily}/%{::operatingsystem}
###
### ejabberd configuration file
### Archipel Sample default condiguration
### =========
### DEBUGGING
# Increase this if you want sone insane erlang debug
loglevel: 3

Archipel needs ejabberd as XMPP server (only ejabberd supports sufficiently XMPP protocol for the needs of Archipel).

Here are the steps to sucessfully install Ejabberd to running on most of linux distribuition.

For more detail about architeture and concepts read this page.

Install ejabberd

To be distro agnostic will use the binary installer provided by Process One

/**
* Copyright 2015 SmartThings
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at:
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License
/**
* Hue Service Manager
*
* Author: Juan Risso (juan@smartthings.com)
*
* Copyright 2015 SmartThings
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at:
*
frontend http-in
bind :80 name http
mode http
reqadd X-Forwarded-Proto:\ http
use_backend bk_letsencrypt if { hdr(host) -i host.domain.tld } { path_beg -i /.well-known/acme-challenge }
redirect scheme https code 301 if !{ ssl_fc }

Keybase proof

I hereby claim:

  • I am cyrilpeponnet on github.
  • I am cyrilpeponnet (https://keybase.io/cyrilpeponnet) on keybase.
  • I have a public key ASCMMA6YGq59d_BPFJf8_Hj_JAsGZuDfleVq6QsP6yFmkAo

To claim this, I am signing this object:

@CyrilPeponnet
CyrilPeponnet / fix-reload.conf
Created February 28, 2018 18:48
to put in /etc/systemd/system/nfs-ganesha.service.d/
[Service]
ExecReload=
ExecReload=/bin/kill -HUP $MAINPID