If you don't know what Wireguard is, well, you should. It's fast, easy to setup and highly configurable. We will configure Wireguard for multiple users with various restrictions using iptables.
This should fit most setups (not mine though 😉)
// cc $(pkg-config --cflags --libs libudev) udev_find_serial_by_vid_pid.c -o udev_find_serial_by_vid_pid | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <libudev.h> | |
int main(int argc, char **argv) | |
{ | |
if (argc != 3) { |
# When notepad++ is available, use it | |
function npp() { | |
export IFS=$'\n' | |
NOTEPADPP_EXE='/c/Program Files/Notepad++/notepad++.exe' | |
if [[ -e "${NOTEPADPP_EXE}" ]]; then | |
echo 'notepad++.exe '$*' &' | |
"${NOTEPADPP_EXE}" $* & | |
return 0 | |
else | |
echo "notepad++ not found." |
#!/usr/bin/env python3 | |
# SPDX-License-Identifier: 0BSD or CC0-1.0 or MIT-0 or Unlicense | |
# Copyright (c) 2023, Ryan Castellucci, No Rights Reserved | |
import io, sys | |
import datetime | |
import argparse | |
import requests | |
import operator | |
import struct |
#!/usr/bin/env python3 | |
import click | |
from random import randint | |
from random import random | |
#################################################### | |
##### Example Execution | |
# $ pip3 install click | |
# $ chmod +x ./obfuscate.py |
#!/usr/bin/awk -f | |
# This program is a copy of guff, a plot device. https://github.com/silentbicycle/guff | |
# My copy here is written in awk instead of C, has no compelling benefit. | |
# Public domain. @thingskatedid | |
# Run as awk -v x=xyz ... or env variables for stuff? | |
# Assumptions: the data is evenly spaced along the x-axis | |
# TODO: moving average |
If you don't know what Wireguard is, well, you should. It's fast, easy to setup and highly configurable. We will configure Wireguard for multiple users with various restrictions using iptables.
This should fit most setups (not mine though 😉)
set(groot,'defaultAxesFontName','Proxima Nova Rg'); | |
set(groot,'defaultPolaraxesFontName','Proxima Nova Rg'); | |
set(groot,'defaultLegendFontName','Proxima Nova Rg'); | |
set(groot,'defaultTextFontName','Proxima Nova Rg'); | |
set(groot,'defaultTextarrowshapeFontName','Proxima Nova Rg'); | |
set(groot,'defaultTextboxshapeFontName','Proxima Nova Rg'); | |
set(groot,'defaultLegendBox','off') | |
%set(groot,'defaultLegendLocation','best') |
#!/usr/bin/env python3 | |
from __future__ import print_function | |
import sys, argparse, codecs | |
from PIL import Image, ImagePalette | |
xterm256colors = [ # http://pln.jonas.me/xterm-colors | |
0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x80, 0x00, 0x80, 0x80, 0x00, | |
0x00, 0x00, 0x80, 0x80, 0x00, 0x80, 0x00, 0x80, 0x80, 0xc0, 0xc0, 0xc0, | |
0x80, 0x80, 0x80, 0xff, 0x00, 0x00, 0x00, 0xff, 0x00, 0xff, 0xff, 0x00, | |
0x00, 0x00, 0xff, 0xff, 0x00, 0xff, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, |
# systemd list-timers | |
---------------------- | |
NEXT LEFT LAST PASSED UNIT ACTIVATES | |
Sat 2016-05-14 21:00:00 EDT 2min 56s ago Sat 2016-05-14 21:00:00 EDT 2min 56s ago rsnapshot-hourly.timer rsnapshot@hourly.service | |
Sat 2016-05-14 23:50:00 EDT 2h 47min left Fri 2016-05-13 23:50:00 EDT 21h ago rsnapshot-daily.timer rsnapshot@daily.service | |
... | |
Sun 2016-05-15 23:40:00 EDT 1 day 2h left n/a n/a rsnapshot-weekly.timer rsnapshot@weekly.service | |
Sun 2016-06-05 23:30:00 EDT 3 weeks 1 days left n/a n/a rsnapshot-monthly.timer rsnapshot@monthly.service | |