Skip to content

Instantly share code, notes, and snippets.

@dszmaj
dszmaj / docker-compose.yaml
Created October 24, 2019 13:00
ArangoDB 3.5 Cluster Config with Volumes Example
version: '3'
services:
agency:
container_name: agency
image: arangodb:3.5
restart: unless-stopped
environment:
- ARANGO_NO_AUTH=1
command:
- arangod
@dszmaj
dszmaj / mikrotik-pxe.md
Created March 16, 2019 23:51 — forked from PatrickLang/mikrotik-pxe.md
Boot from Mikrotik router and install Windows

Using a Mikrotik router to boot and install Windows

Lately I've been using Mikrotik routers because they're cheap, powerful, and fast. Most of them have either a USB or MicroSD slot, so you can add enough space to store network boot images right on the router.

I got most of the tips needed from these two articles, and combined them into this step by step guide:

@dszmaj
dszmaj / django_log_settings.py
Created October 18, 2017 23:40 — forked from st4lk/django_log_settings.py
Django logging settings
# Logging settings for django projects, works with django 1.5+
# If DEBUG=True, all logs (including django logs) will be
# written to console and to debug_file.
# If DEBUG=False, logs with level INFO or higher will be
# saved to production_file.
# Logging usage:
# import logging
# logger = logging.getLogger(__name__)
# logger.info("Log this message")
{
"vars": {
"@gray-base": "#000",
"@gray-darker": "lighten(@gray-base, 13.5%)",
"@gray-dark": "lighten(@gray-base, 20%)",
"@gray": "lighten(@gray-base, 33.5%)",
"@gray-light": "lighten(@gray-base, 46.7%)",
"@gray-lighter": "lighten(@gray-base, 93.5%)",
"@brand-primary": "#2b82ff",
"@brand-success": "#dff0d8",
/**
* @author: @AngularClass
*/
const helpers = require('./helpers');
const webpackMerge = require('webpack-merge'); // used to merge webpack configs
const commonConfig = require('./webpack.common.js'); // the settings that are common to prod and dev
/**
* Webpack Plugins
/**
* @author: @AngularClass
*/
const webpack = require('webpack');
const helpers = require('./helpers');
/*
* Webpack Plugins
*/
@dszmaj
dszmaj / uconfig
Last active October 4, 2016 23:17
#!/bin/sh
sudo apt-add-repository -y ppa:ansible/ansible
sudo apt-get install -y python-dev python3-dev python3.5-dev
wget https://bootstrap.pypa.io/get-pip.py
sudo python get-pip.py && sudo python3 get-pip.py && sudo python3.5 get-pip.py
sudo -H pip3.5 install ply
rm -rf get-pip.py
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10
echo "deb http://repo.mongodb.org/apt/ubuntu trusty/mongodb-org/3.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.0.list
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys BBEBDCB318AD50EC6865090613B00F1FD2C19886