Skip to content

Instantly share code, notes, and snippets.

View DBassel's full-sized avatar

Basel Darvish DBassel

  • 1C Company
  • Moscow
View GitHub Profile
os_http_be.map and os_sni_passthrough.map are both just empty files
@DBassel
DBassel / Proxy.scala
Created November 10, 2017 05:51 — forked from rklaehn/Proxy.scala
Minimal akka http proxy
package akkahttptest
import akka.actor.ActorSystem
import akka.http.Http
import akka.stream.FlowMaterializer
import akka.http.server._
import akka.http.marshalling.PredefinedToResponseMarshallers._
import akka.stream.scaladsl.{HeadSink, Source}
object Proxy extends App {
@DBassel
DBassel / README.md
Created June 30, 2017 04:26 — forked from oodavid/README.md
Backup MySQL to Amazon S3

Backup MySQL to Amazon S3

This is a simple way to backup your MySQL tables to Amazon S3 for a nightly backup - this is all to be done on your server :-)

Sister Document - Restore MySQL from Amazon S3 - read that next

1 - Install s3cmd

this is for Centos 5.6, see http://s3tools.org/repositories for other systems like ubuntu etc

@DBassel
DBassel / springboot.py
Created October 5, 2016 20:38 — forked from jonmcewen/springboot.py
nagios plugin for spring-boot app status
#!/usr/bin/env python
import requests, sys, getopt
try:
opts, args = getopt.getopt(sys.argv[1:], "p:", ["port="])
except getopt.GetoptError:
print('springboot.py -p <port>')
sys.exit(2)
@DBassel
DBassel / Dockerfile gocd-agent JDK8 NODEJS
Last active January 20, 2016 18:57
A dockerfile of gocd-agent JDK8NodeJSMaven
# Set the base image to gocd/gocd-server
FROM gocd/gocd-agent:latest
# File Author / Maintainer
# based on ckulka/gocd-agent
MAINTAINER Basel Darvish <me@dbassel.com>
## BEGIN INSTALLATION
# Install Java 8 JDK, Remove Java 7 JRE
@DBassel
DBassel / AkkaDistributedPubSub.scala
Last active August 29, 2015 14:22
Akka DistributedPubSubExtension multi-node cluster sample
package test.akka
import akka.actor.Actor.Receive
import akka.actor.{Props, ActorLogging, Actor, ActorSystem}
import akka.cluster.Cluster
import akka.contrib.pattern.DistributedPubSubExtension
import akka.contrib.pattern.DistributedPubSubMediator.{SubscribeAck, Subscribe, Publish}
import com.typesafe.config.ConfigFactory
/**
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="red_50">#fde0dc</color>
<color name="red_100">#f9bdbb</color>
<color name="red_200">#f69988</color>
<color name="red_300">#f36c60</color>
<color name="red_400">#e84e40</color>
<color name="red_500">#e51c23</color>