This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /etc/nsmb.conf - macOS 11.3 - 2021-04-29 | |
#------------------------------------------------------------------------------ | |
# SMB configuration for macOS 11.3 <-> Synology | |
#------------------------------------------------------------------------------ | |
# Additional information: | |
# ----------------------- | |
# https://support.apple.com/de-de/HT211927 | |
# https://support.apple.com/en-us/HT208209 | |
# https://apple.stackexchange.com/questions/309016/smb-share-deadlocks-since-high-sierra | |
# https://photographylife.com/afp-vs-nfs-vs-smb-performance |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
################################################################################ | |
# DigitalOcean Droplet Firewall Script | |
#=============================================================================== | |
# This Firewall script is supposed to be used with DigitalOcean Droplets. It | |
# uses eth0 as external, and eth1 (if present) as internal network interface. | |
# It automatically detects IP addresses and blocks all traffic but SSH from a | |
# list of safe IP addresses. | |
# Two white lists can be defined, one for internal IPv4 IP addresses and one | |
# for public IPv4 addresses. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
################################################################################ | |
# 2014-08-03 | Jason Friedrich | |
#------------------------------------------------------------------------------- | |
# Version history: | |
# v1.2 | 2022-06-27 | |
# - Partial rewrite for net network structure | |
# v1.1 | 2014-08-03 | |
# - Complete rewrite for new network structure | |
################################################################################ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# pocket-appi module, not pocket | |
from pocket import Pocket, PocketException | |
import datetime as dt | |
p = Pocket( | |
consumer_key='myconsumerkey', | |
access_token='myaccesstoken' | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Add contents to /etc/rc.local.d/local.sh | |
vds_name="vDS" | |
vds_uplink_pg="dvportgroup-82" | |
free_vds_uplink_port=$(esxcli network vswitch dvs vmware list | grep -A 2 "DVPortgroup ID: $vds_uplink_pg" | grep -A 1 'In Use: false' | grep 'Port ID' | awk '{print $NF}' | head -1) | |
vusb0_status=$(esxcli network nic get -n vusb0 | grep 'Link Status' | awk '{print $NF}') | |
count=0 | |
while [[ $count -lt 20 && "${vusb0_status}" != "Up" ]] ] | |
do | |
sleep 10 | |
count=$(( $count + 1 )) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import os | |
import re | |
def replace(basepath, item): | |
""" | |
Replace unsafe character from items | |
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{{ $pag := $.Paginator }} {{ if gt $pag.TotalPages 1 }} {{ $.Scratch.Set "dot_rendered" false }} | |
<ul class="pagination"> | |
<!-- Disable on 1st and 2nd page --> | |
{{ if and (ne $pag.PageNumber 1) (ne $pag.PageNumber 2) }} | |
<li class="page-item page-first"><a href="{{ $pag.First.URL }}" rel="first" class="page-link">« First</a></li> | |
{{ else }} | |
<li class="page-item page-first disabled"><a href="" rel="first" class="page-link">« First</a></li> | |
{{ end }} {{ if $pag.HasPrev }} | |
<li class="page-item page-prev"><a href="{{ $pag.Prev.URL }}" rel="prev" class="page-link">‹ Prev</a></li> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{{/* This can be used to loop through all regular pages on the whole site. */}} | |
{{ $pages := .Paginate ( where .Site.RegularPages "Type" "in" site.Params.mainSections ) }} | |
{{ range $pages.Pages }} | |
<article class="post type-{{ .Section }}"> | |
{{ if eq .Section "posts" }} | |
<a class="post-full-link" href="{{ .RelPermalink }}"> | |
<h4 class="post-date">{{ .Page.Date.Format "2 Jan 2006, 15:04 MST" }}</h4> | |
<h1 class="post-title">{{ .Title }}</h1> | |
<div class="post-summary"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wght@0,400;0,700;1,400&display=swap'); | |
@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.5.0/font/bootstrap-icons.css"); | |
#post .alert, | |
#post article, | |
body#collection article, | |
body#subpage #wrapper h1, | |
body#subpage article, pre { | |
max-width: 45rem; | |
} |
NewerOlder