Skip to content

Instantly share code, notes, and snippets.

View xy2z's full-sized avatar

Alexander xy2z

View GitHub Profile
@xy2z
xy2z / clean-up-boot-partition-ubuntu.md
Created May 26, 2021 09:17 — forked from ipbastola/clean-up-boot-partition-ubuntu.md
Safest way to clean up boot partition - Ubuntu 14.04LTS-x64, Ubuntu 16.04LTS-x64

Safest way to clean up boot partition - Ubuntu 14.04LTS-x64, Ubuntu 16.04LTS-x64

Reference

Case I: if /boot is not 100% full and apt is working

1. Check the current kernel version

$ uname -r 
alias xy_alias_version='echo xy_alias version 1.42'
alias xy_alias_url='echo https://gist.github.com/xy2z/0dad738b1519aed3f67613a6e9e2917a'
alias xy_alias_update_linux='wget -nv -O ~/.bash_aliases https://gist.githubusercontent.com/xy2z/0dad738b1519aed3f67613a6e9e2917a/raw/.bash_aliases && source ~/.bash_aliases'
alias xy_alias_update_windows='setaliases https://gist.githubusercontent.com/xy2z/0dad738b1519aed3f67613a6e9e2917a/raw/.bash_aliases'
alias ll='ls -alh --show-control-chars -F --color $*'
alias gl='git log --oneline --all --graph --decorate $*'
alias gs='git status $*'
alias gd='git diff'
alias gds='git diff --staged'

This is copied from http://modauthkerb.sourceforge.net/configure.html


Configuration

This page describes configuration of module version 5.0. Configuration guide for the older module 4.x can be found here.

Before starting configuring the module make sure your Kerberos enviroment is properly configured (i.e. KDC, /etc/krb5.conf, etc.). The easiest way to check is using the kinit command from the apache machine to get a ticket for some known principal (preferably that one who will be used to test the module).

@xy2z
xy2z / Makefile
Last active March 15, 2018 09:41
Add git hooks to a repository (so it can be shared)
init:
git config core.hooksPath .githooks;