Skip to content

Instantly share code, notes, and snippets.

View dayio's full-sized avatar
🎺
Doot Doot

Alex dayio

🎺
Doot Doot
View GitHub Profile
services:
setup:
image: docker:cli
volumes:
- ./swarm-init.sh:/swarm-init.sh
- ./nginx.yml:/nginx.yml
- manager-docker:/var/run # Mount the volume (directory) containing docker.sock
environment:
- DOCKER_HOST=unix:///var/run/docker.sock
services:
setup:
image: docker:cli
volumes:
- ./swarm-init.sh:/swarm-init.sh
- ./nginx.yml:/nginx.yml
- manager-docker:/var/run # Mount the volume (directory) containing docker.sock
environment:
- DOCKER_HOST=unix:///var/run/docker.sock
#cloud-config
# 1. System update
package_update: true
package_upgrade: true
# 2. Package installation
packages:
- ca-certificates
- curl
@dayio
dayio / 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 <[email protected]>
* 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 )

@dayio
dayio / 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:"