Skip to content

Instantly share code, notes, and snippets.

@nilox94
nilox94 / crlf2lf
Created June 13, 2018 16:23
Converts CRLF to LF in a file or recursively in all files of a directory
#!/usr/bin/env python
import argparse, os, sys
(
NO_ERR,
READ_ERR,
WRITE_ERR,
BACKUP_ERR,
) = range(4)
@nilox94
nilox94 / matrix.sh
Last active August 10, 2023 19:16
Executes `openvpn` with some known `.ovpn` files and prepares a route for your local network while `openvpn` is running
#!/bin/bash
################################################################################
# Matrix
# ======
#
# `Matrix` executes `openvpn` with some known `.ovpn` files located in a given
# directory and sends a notification via `notify-osd` when vpn connection drops
#
################################################################################