Skip to content

Instantly share code, notes, and snippets.

View tamara-schmitz's full-sized avatar
🏳️‍⚧️

Tamara Schmitz tamara-schmitz

🏳️‍⚧️
View GitHub Profile
@hopeseekr
hopeseekr / docker_dedicated_filesystem.md
Created February 3, 2018 04:01
Putting Docker on its own pseudo filesystem

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

@nakami
nakami / cs_video_resources.md
Last active December 15, 2020 22:22
video resources on computer science related topics
@tomschr
tomschr / example-cli-argparse.py
Last active April 21, 2024 08:13
Template for an example CLI program with argparse, docopts and logging
#!/usr/bin/env python3
import argparse
import logging
from logging.config import dictConfig
import sys
__version__ = "0.2.0"
__author__ = "Tux Penguin <tux@example.net>"
@Scrxtchy
Scrxtchy / read.md
Last active August 12, 2016 21:33
tu.sh

#tu.sh Bascially it's a bunch of spaghetti I made in an afternoon.
It will only shutdown the server and update when the new build is publically avaliable.

##Usage ./tu.sh Check for a force update file
./tu.sh online Check build id with lastest public version

##Setup It requires jq, this is on apt-get or whatever, but not the required versions, download it from github

@patik
patik / how-to-squash-commits-in-git.md
Last active May 30, 2024 07:59
How to squash commits in git

Squashing Git Commits

The easy and flexible way

This method avoids merge conflicts if you have periodically pulled master into your branch. It also gives you the opportunity to squash into more than 1 commit, or to re-arrange your code into completely different commits (e.g. if you ended up working on three different features but the commits were not consecutive).

Note: You cannot use this method if you intend to open a pull request to merge your feature branch. This method requires committing directly to master.

Switch to the master branch and make sure you are up to date:

@alainwolf
alainwolf / cyanogen_sshd.sh
Last active August 25, 2023 15:37
SSH server on CyanogenMod Smaprtphones
#!/bin/sh
adb root
adb remount
#
# Create a minimal but safe SSH Daemon configuration
cat <<EndOfSSHDConfigFile > sshd_config
# Minimal OpenSSH daemon configuration for CyanogenMod 10.1+
AuthorizedKeysFile /data/.ssh/authorized_keys
ChallengeResponseAuthentication no
PasswordAuthentication no