Skip to content

Instantly share code, notes, and snippets.

Kyriakos Chatzidimitriou kyrcha

Block or report user

Report or block kyrcha

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
flexzuu / transport-loggging.go
Created Aug 13, 2019
wrap a transport to log the body
View transport-loggging.go
import ""
httpClient.Transport = &loghttp.Transport{
Transport: httpClient.Transport,
LogRequest: func(req *http.Request) {
b, _ := httputil.DumpRequestOut(req, true)
log.Printf("out body: %s", string(b))
LogResponse: func(resp *http.Response) {
b, _ := httputil.DumpResponse(resp, true)
# -*- coding: utf-8 -*-
Created on Mon Sep 23 23:16:44 2017
@author: Marios Michailidis
This is an example that performs stacking to improve mean squared error
This examples uses 2 bases learners (a linear regression and a random forest)
and linear regression (again) as a meta learner to achieve the best score.
The initial train data are split in 2 halves to commence the stacking.
coryhouse / package.json
Last active Oct 29, 2019
package.json for Building a JS Development Environment on Pluralsight
View package.json
"name": "javascript-development-environment",
"version": "1.0.0",
"description": "JavaScript development environment Pluralsight course by Cory House",
"scripts": {
"author": "Cory House",
"license": "MIT",
"dependencies": {
"whatwg-fetch": "1.0.0"
btroncone /
Last active Nov 11, 2019
A Comprehensive Introduction to @ngrx/store - Companion to Series

Comprehensive Introduction to @ngrx/store

By: @BTroncone

Also check out my lesson @ngrx/store in 10 minutes on!

Update: Non-middleware examples have been updated to ngrx/store v2. More coming soon!

Table of Contents

yrevar / imagenet1000_clsidx_to_labels.txt
Last active Nov 17, 2019
text: imagenet 1000 class idx to human readable labels (Fox, E., & Guestrin, C. (n.d.). Coursera Machine Learning Specialization.)
View imagenet1000_clsidx_to_labels.txt
{0: 'tench, Tinca tinca',
1: 'goldfish, Carassius auratus',
2: 'great white shark, white shark, man-eater, man-eating shark, Carcharodon carcharias',
3: 'tiger shark, Galeocerdo cuvieri',
4: 'hammerhead, hammerhead shark',
5: 'electric ray, crampfish, numbfish, torpedo',
6: 'stingray',
7: 'cock',
8: 'hen',
9: 'ostrich, Struthio camelus',
andrewkroh /
Last active May 16, 2019
Using TLS between Beats and Logstash

Using TLS between Beats and Logstash

Beats to Logstash over TLS

The purpose of this document is to help with configuring and troubleshooting using TLS on the connection between Beats and Logstash.


You must configure TLS on both the client and server to make this work. This

baraldilorenzo /
Created Jan 16, 2016
VGG-19 pre-trained model for Keras

##VGG19 model for Keras

This is the Keras model of the 19-layer network used by the VGG team in the ILSVRC-2014 competition.

It has been obtained by directly converting the Caffe model provived by the authors.

Details about the network architecture can be found in the following arXiv paper:

Very Deep Convolutional Networks for Large-Scale Image Recognition
K. Simonyan, A. Zisserman
bithoundio / .bithoundrc
Last active Dec 3, 2017
The default values for .bithoundrc that customizes bitHound project analysis. If you like the defaults and want to make additions, keep the contents of this file and add your values. Commit this file directly to your project's root and bitHound will pick it up on the next round of analysis.
View .bithoundrc
"ignore": [
stanislavb /
Last active Jul 2, 2019
Backup and restore MongoDB running in a Docker container
usage() {
echo "Usage $0 -c mongo_docker_container_name"
while [[ $# > 1 ]]
learncodeacademy /
Last active May 29, 2019
Deploy Node.js app on Ubuntu as Upstart Service - instead of using Forever

Deploying a node app with Forever is great...until your server restarts unexpectedly. Then your app stops running and you have to re-deploy.

To get around this, we're going to run our node app as an Upstart service. Upstart services are great, because, once started, the system auto-restarts them if they fail, or if the server restarts.

###Step 1: Create a service for your node app

  • ssh in as root ssh root@youripaddress
  • Create a node-app.conf file in /etc/init
    IMPORTANT: whatever filename you pick is what you will use to start|stop|restart your service i.e. service node-app start
You can’t perform that action at this time.