Skip to content

Instantly share code, notes, and snippets.

Aswa Paul giantas

Block or report user

Report or block giantas

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
@giantas
giantas / docker_dedicated_filesystem.md
Created Jun 14, 2019 — forked from hopeseekr/docker_dedicated_filesystem.md
Putting Docker on its own pseudo filesystem
View docker_dedicated_filesystem.md

Docker on BTRFS is very buggy and can result in a fully-unusable system, in that it will completely butcher the underlying BTRFS filesystem in such a way that it uses far more disk space than it needs and can get into a state where it cannot even delete any image, requiring one to take drastic actions up to and including reformatting the entire affected BTRFS root file system.

According to the official Docker documentation:

btrfs requires a dedicated block storage device such as a physical disk. This block device must be formatted for Btrfs and mounted into /var/lib/docker/.

In my experience, you will still run into issues even if you use a dedicated partition. No, it seems it requires a standalone

@Jiab77
Jiab77 / raspberry-pi-3-wireless-bridge-ubuntu-server-18.04-arm+netplan.md
Last active Nov 3, 2019
Raspberry Pi 2/3B/B+ Wireless Bridge using Ubuntu Server 18.04 ARM Image and Netplan
View raspberry-pi-3-wireless-bridge-ubuntu-server-18.04-arm+netplan.md

Raspberry Pi 2/3B/B+ Wireless Bridge using Ubuntu Server 18.04 ARM Image and Netplan

This could sound very easy to do at first but it wasn't... The reason of that is due to the lack of proper documentation on the practical usage of netplan. Many peoples decided to drop it and go back to the previous way to setup the network.

But I'm someone obstinate, so I decided to challenge myself and being able to do with netplan and not go back to ifupdown even if, close to the end, I though I could never got it working... Finaly it worked and much better than the replaced equipment.

Initial project goal

@hopeseekr
hopeseekr / docker_dedicated_filesystem.md
Created Feb 3, 2018
Putting Docker on its own pseudo filesystem
View docker_dedicated_filesystem.md

Docker on BTRFS is very buggy and can result in a fully-unusable system, in that it will completely butcher the underlying BTRFS filesystem in such a way that it uses far more disk space than it needs and can get into a state where it cannot even delete any image, requiring one to take drastic actions up to and including reformatting the entire affected BTRFS root file system.

According to the official Docker documentation:

btrfs requires a dedicated block storage device such as a physical disk. This block device must be formatted for Btrfs and mounted into /var/lib/docker/.

In my experience, you will still run into issues even if you use a dedicated partition. No, it seems it requires a standalone

@antivanov
antivanov / install_python3.6_opensuse42.3.sh
Last active Jul 9, 2019
Installing Python 3.6 on OpenSUSE Leap 42.3
View install_python3.6_opensuse42.3.sh
# !/bin/bash
# Step 1. Install pyenv
git clone https://github.com/pyenv/pyenv.git ~/.pyenv
echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.bashrc
echo 'export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.bashrc
echo -e 'if command -v pyenv 1>/dev/null 2>&1; then\n eval "$(pyenv init -)"\nfi' >> ~/.bashrc
source ~/.bashrc
@mosquito
mosquito / README.md
Last active Nov 21, 2019
Add doker-compose as a systemd unit
View README.md

Docker compose as a systemd unit

Create file /etc/systemd/system/docker-compose@.service

[Unit]
Description=%i service with docker compose
Requires=docker.service
After=docker.service
@rbrto
rbrto / elasticsearch.service
Created Feb 24, 2017
ElasticSearch Systemd file
View elasticsearch.service
#Developer : Anshul Patel
#Put the file in /etc/systemd/system
#Make sure that the elasticsearch and run directory have permission of appropriate user
#In order to start it during boot, sudo systemctl enable elasticsearch
[Unit]
Description=ElasticSearch Service
After=network.target
[Service]
View Control and configure Docker with systemd
# https://docs.docker.com/engine/admin/systemd/
Many Linux distributions use systemd to start the Docker daemon. This document shows a few examples of how to customize Docker’s settings.
Starting the Docker daemon
Once Docker is installed, you will need to start the Docker daemon.
$ sudo systemctl start docker
# or on older distributions, you may need to use
$ sudo service docker start
If you want Docker to start at boot, you should also:
@giantas
giantas / dispatch.py
Created Oct 23, 2016 — forked from aortbals/dispatch.py
Synchronize two folders using python.
View dispatch.py
#! /usr/bin/python
# Dispatch - synchronize two folders
import os
import filecmp
import shutil
from stat import *
class Dispatch:
''' This class represents a synchronization object '''
@Dev-Dipesh
Dev-Dipesh / ELK with Nginx.md
Last active Nov 9, 2019
Setting up Elasticsearch, Logstash and Kibana with Nginx.
View ELK with Nginx.md

ELK (Elasticsearch Logstash Kibana)

Though we're focused more on server setup procedure in this document, I will still give a very brief explanation in laymen terms for ELK. To those who are starting new in this stack, must have already heard of MVC (Model View Controller), so take it like this:

  • Model => Elasticsearch (for Storage, Indexing & Search)
  • View => Kibana (for DataViz & G-Man, yeah the one in half life 😏)
  • Controller => Logstash (For Logs & Filtering)

You can’t perform that action at this time.