Skip to content

Instantly share code, notes, and snippets.

Avatar

Gábor Gyebnár aedm

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

How to cook a giraffe

Oneliners I somehow found useful.

Docker

Docker container IP

Linux

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

@aedm
aedm / kickstart-ubuntu-docker-mongodb.sh
Last active Nov 27, 2017
Installs Docker & Nginx on Ubuntu 16.04, starts MongoDB container
View kickstart-ubuntu-docker-mongodb.sh
#!/bin/sh
# curl {URL to this script} | sh -s
# install docker
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(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
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
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 \