Skip to content

Instantly share code, notes, and snippets.


Gábor Gyebnár aedm

View GitHub Profile
aedm /
Last active Nov 5, 2019
How to cook a giraffe

How to cook a giraffe

Oneliners I somehow found useful.


Docker container IP


docker inspect --format '{{ .NetworkSettings.IPAddress }}' mongo docker inspect -f '{{.Name}} - {{.NetworkSettings.IPAddress }}' $(docker ps -aq)

aedm /
Last active Nov 27, 2017
Installs Docker & Nginx on Ubuntu 16.04, starts MongoDB container
# curl {URL to this script} | sh -s
# install docker
curl -fsSL | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] $(lsb_release -cs) stable"
sudo apt-get update
apt-cache policy docker-ce
sudo apt-get install -y docker-ce
sudo systemctl status docker
aedm / meteordeps.js
Last active Jan 5, 2018
This script displays dependency relations between packages required by a Meteor project
View meteordeps.js
"use strict";
const execSync = require('child_process').execSync;
const fs = require('fs');
function run(command) {
return execSync(command).toString().trim();
console.log("Reading 'versions' file...");
View loadtest.js
"use strict";
let server = "http://localhost:3000/";
let parallelCount = 500;
let http = require("http");
http.globalAgent.maxSockets = parallelCount;
var queryCount = 0;
aedm / configure-qt-static.cmd
Last active Apr 24, 2016
Small & quick Qt5 static configuration
View configure-qt-static.cmd
configure \
-release \
-static \
-nomake examples \
-nomake tools \
-opensource \
-platform win32-msvc2015 \
-nomake tests \
-opengl desktop \
-skip qtwebkit \