Skip to content

Instantly share code, notes, and snippets.

@sviridoff
sviridoff / ubuntu-dnsmasq-adblock.md
Last active January 13, 2022 11:36
Ad-blocking with dnsmasq on Ubuntu

Ubuntu dnsmasq adblock

Ad-blocking with dnsmasq on Ubuntu configuration

Install dnsmasq:

sudo apt update
sudo apt install dnsmasq
@jaesbit
jaesbit / Logger.java
Last active June 12, 2018 10:26
Nice Way to get Logger for multipurposes. Idea as ported from python Logging
import java.lang.StringBuilder;
import hudson.model.TaskListener;
import java.lang.reflect.Field;
class Logger {
public enum Level {
WTF(55), CRITICAL(50), ERROR(40), WARNING(30), INFO(20), DEBUG(10), NOSET(0);
private final int level;
@jaesbit
jaesbit / py36installer.py
Last active September 21, 2017 09:46
Python 3.6.x installer for ubuntu
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Just python 3.6.X deploy and install for UBUNTU 16.04 or greater
Can be run in python 2 and 3
Research, linux_py36 Started by Aaron Giovannini (agiovannini)
This file was created at 12/junio/2017
@bastman
bastman / docker-cleanup-resources.md
Created March 31, 2016 05:55
docker cleanup guide: containers, images, volumes, networks

Docker - How to cleanup (unused) resources

Once in a while, you may need to cleanup resources (containers, volumes, images, networks) ...

delete volumes

// see: https://github.com/chadoe/docker-cleanup-volumes

$ docker volume rm $(docker volume ls -qf dangling=true)

$ docker volume ls -qf dangling=true | xargs -r docker volume rm