Skip to content

Instantly share code, notes, and snippets.

View comiclandapp's full-sized avatar
💭
Resurrecting and Liquid Glass-ifying ComicLand

Antonio Montes comiclandapp

💭
Resurrecting and Liquid Glass-ifying ComicLand
View GitHub Profile
@xirixiz
xirixiz / pihole-macvlan-synology-docker.txt
Last active September 6, 2025 08:26
Add a PiHole instance on a macvlan enabled Docker network (Synology eth0 example)
#!/bin/bash
# NAS IP: 192.168.1.10 in this example
# DHCP scope reservation for macvlan: 192.168.1.210/28 (Details below)
## Network: 192.168.1.210/28
## HostMin: 192.168.1.211
## HostMax: 192.168.1.224
## Hosts/Net: 14
# Create a Synology macvlan0 bridge network attached to the physical eth0, and add the ip range scope (sudo)
@dchohfi
dchohfi / PageViewControllerSegmentedAdapter.swift
Created December 16, 2016 01:32
Connect UISegmentControll to UIPageViewController
import UIKit
final class PageViewControllerSegmentedAdapter: NSObject {
private let pageViewController: UIPageViewController
fileprivate let segmentControl: UISegmentedControl
fileprivate let viewControllers: [UIViewController]
fileprivate var selectedIndex: Int = 0
init(pageViewController: UIPageViewController, segmentControl: UISegmentedControl, viewControllers: [UIViewController]) {