Skip to content

Instantly share code, notes, and snippets.

View YipYup's full-sized avatar

Get your own 'tots. Geez! YipYup

View GitHub Profile
@Jiab77
Jiab77 / create-DNS-over-TLS-bridge-with-pi-hole-unbound-and-stubby-on-ubuntu-server.md
Last active September 19, 2025 09:58
Few months ago, I've made a similar work but I wanted something a little more easier to manage. Please have a look at here for my previous work.

Create DNS-over-TLS bridge with Pi-hole, unbound and stubby on Ubuntu Server

Few months ago, I've made a similar work but I wanted something a little more easier to manage. Please have a look at here for my previous work.

This time, I'm gonna do pretty much the same thing but using Pi-hole as base then modify it to include unbound and stubby.

This way, I can use the power of Pi-hole with some additional security layers:

  • Recursive DNS check (unbound)
  • DNS-over-TLS (stubby)
@pdelteil
pdelteil / installKernel.sh
Last active March 31, 2022 15:33
How to update your kernel
#!/bin/bash
# pdelteil@gmail.com
# Oct 2017
KERNEL=$(uname -a |awk '{print $3}'|awk -F"-" '{print $1}')
echo "Current kernel version" $KERNEL
MAIN_VER_CUR_KERNEL=$(echo "$KERNEL" |awk -F"." '{print $1}')
MIN_VER_CUR_KERNEL=$(echo "$KERNEL" |awk -F"." '{print $2}')
URL="http://kernel.ubuntu.com/~kernel-ppa/mainline/"
echo "Fetching list of kernels..."
@Davnit
Davnit / pulse.py
Created May 1, 2020 09:07
Python parser for PulsePoint
import base64
from datetime import datetime
import hashlib
import json
from cryptography.hazmat.primitives.ciphers import Cipher, algorithms, modes
from cryptography.hazmat.backends import default_backend
@qskwood
qskwood / wget-warc-generator
Last active November 29, 2025 01:34
This script uses wget to generate a WARC that can be read by a player like OpenWayback and places it into a directory. It also handles creation and use of CDX indexes for de-duplication.
#!/bin/bash
if [[ $# -ne 2 ]]; then
echo "Must only have two arguments, the URL and the collection" >&2
exit 1
fi
if [[ ! -d "/var/spool/openwayback/files2/${2}" ]]; then
mkdir "/var/spool/openwayback/files2/${2}"
fi
@mohanpedala
mohanpedala / bash_strict_mode.md
Last active May 9, 2026 22:27
set -e, -u, -o, -x pipefail explanation
@YipYup
YipYup / plexcrypt.service
Created May 5, 2018 23:52 — forked from hthighway/plexcrypt.service
PlexDrive + Rclone Crypt + UnionFS Mount
[Unit]
Description=RClone Mount (crypt)
AssertPathIsDirectory=/mnt/decrypt
After=plexdrive.service
Requires=plexdrive.service
PartOf=plexdrive.service
[Service]
Type=simple
User=username
@mutin-sa
mutin-sa / Top_Public_Time_Servers.md
Last active April 29, 2026 14:45
List of Top Public Time Servers

Google Public NTP [AS15169]:

time.google.com

time1.google.com

time2.google.com

time3.google.com

@edro15
edro15 / SynchNTPtoGPS.md
Created February 13, 2018 16:45
[How To] Synchronize NTP server to a GPS/PPS source

So, I want to have a GPS Receiver driving a PPS (pulse-per-second) signal to the NTP server for a highly accurate time reference service.

Introduction

There are at least a couple of ways to propagate the PPS signal to the ntpd (NTP daemon) service, plus some variants in each case. However, the GPS device must be seen as a device that sources two different types of data:

  • the absolute date and time, and
  • the 1Hz clock signal (PPS).

The first one provides the complete information (incl. date and time) about when now is, but with poor accuracy because data is sent over the serial port and then encoded using a specific protocol such as NMEA (National Marine Electronics Association). PPS provides instead a very accurate clock but without any reference to absolute time.

@hthighway
hthighway / plexcrypt.service
Last active October 12, 2018 21:49
PlexDrive + Rclone Crypt + UnionFS Mount
[Unit]
Description=RClone Mount (crypt)
AssertPathIsDirectory=/mnt/decrypt
After=plexdrive.service
Requires=plexdrive.service
PartOf=plexdrive.service
[Service]
Type=simple
User=username
@hdoverobinson
hdoverobinson / ubxconfig.sh
Last active March 8, 2026 02:02
Configure u-blox GPS/GNSS modules with Bash
#!/bin/bash
###AUTHOR###
#Harry Dove-Robinson 5/8/2017
#harry@doverobinson.me
#https://gist.github.com/hdoverobinson
#https://github.com/hdoverobinson
###USAGE###
#This is a script used to configure u-blox GPS/GNSS modules from a text file generated by u-center.