Skip to content

Instantly share code, notes, and snippets.

View Bouhnosaure's full-sized avatar
🎺
Doot Doot !

Alex Bouhnosaure

🎺
Doot Doot !
View GitHub Profile
@Bouhnosaure
Bouhnosaure / README.md
Last active March 9, 2022 15:50
New Relic template for Discord webhooks
name: app
recipe: laravel
config:
webroot: public
php: '7.4'
via: apache
databae: mysql:5.7
cache: redis
xdebug: false
services:

Keybase proof

I hereby claim:

  • I am bouhnosaure on github.
  • I am ci_trex (https://keybase.io/ci_trex) on keybase.
  • I have a public key ASBRdKXNehbQP0EAg2pTWqUZE7zPsq5StLITCwYEOu54Hwo

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am bouhnosaure on github.
  • I am ci_trex (https://keybase.io/ci_trex) on keybase.
  • I have a public key ASBeGdMeLeHh_7boPaVnK6D0w9Mm1E32t-7HmnvgEEDQUwo

To claim this, I am signing this object:

/*!
* OS.js - JavaScript Cloud/Web Desktop Platform
*
* Copyright (c) 2011-2016, Anders Evenrud <andersevenrud@gmail.com>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this

Install Galera Cluster MariaDB

first step is to setup 4 machines one as loadbalancer and three other as cluster nodes :

  • hap-db
  • db1
  • db2
  • db3

After you need to setup network and hostnames in the DCHP or in the hosts files like this ( ajust ip for your network )

@Bouhnosaure
Bouhnosaure / slack_notification.php
Last active July 27, 2016 11:32 — forked from alexstone/slack_notification.php
Fire a Slack Notification via CURL
<?php
// (string) $message - message to be passed to Slack
// (string) $room - room in which to write the message, too
// (string) $icon - You can set up custom emoji icons to use with each message
public function slack($message) {
$data = "payload=" . json_encode(array(
"channel" => "#webhooks",
"text" => $message,
"icon_emoji" => ":longbox:"
@Bouhnosaure
Bouhnosaure / Configure Keycloak Laravel
Created June 7, 2016 05:19
A way to use Keycloak as provider for login into laravel
This gist is created because the library i use eloquent-oauth-l5 has a pull-request (custom providers feature ) awaiting a merge
So here my way to use this feature and use keycloak as custom provider.
Inside composer.json
"repositories": [
{
"type": "vcs",
"url": "https://github.com/tysonlt/eloquent-oauth-l5"
}
/*!
* OS.js - JavaScript Cloud/Web Desktop Platform
*
* Mysql Handler: Login screen and session/settings handling via database
* PLEASE NOTE THAT THIS AN EXAMPLE ONLY, AND SHOUD BE MODIFIED BEFORE USAGE
*
* Copyright (c) 2011-2016, Anders Evenrud <andersevenrud@gmail.com>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
<?php
/*!
* OS.js - JavaScript Operating System
*
* Mysql Handler: Login screen and session/settings handling via database
* PLEASE NOTE THAT THIS AN EXAMPLE ONLY, AND SHOUD BE MODIFIED BEFORE USAGE
*
* Copyright (c) 2011-2016, Anders Evenrud <andersevenrud@gmail.com>
* All rights reserved.
*