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/sh | |
DST="/tmp/dvl" | |
WGET="/usr/local/bin/wget" | |
URL_BASE="https://example.net/downloads/stuff/" | |
mkdir $DST | |
cd $DST |
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
Nov 21 12:39:36 slocum kernel: nvme0: Resetting controller due to a timeout. | |
Nov 21 12:39:36 slocum kernel: nvme0: resetting controller | |
Nov 21 12:39:41 slocum upsmon[2934]: Poll UPS [ups02@bast.int.unixathome.org] failed - Server disconnected | |
Nov 21 12:39:41 slocum upsmon[2934]: Communications with UPS ups02@bast.int.unixathome.org lost | |
Nov 21 12:39:46 slocum upsmon[2934]: Communications with UPS ups02@bast.int.unixathome.org established | |
Nov 21 12:40:06 slocum kernel: nvme0: controller ready did not become 0 within 30500 ms | |
Nov 21 12:40:06 slocum kernel: nvme0: failing outstanding i/o | |
Nov 21 12:40:06 slocum kernel: nvme0: DATASET MANAGEMENT sqid:1 cid:68 nsid:1 | |
Nov 21 12:40:06 slocum kernel: nvme0: ABORTED - BY REQUEST (00/07) sqid:1 cid:68 cdw0:0 | |
Nov 21 12:40:06 slocum kernel: nvme0: failing outstanding i/o |
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 | |
# -*- coding: utf-8 -*- | |
# | |
# This is how I used it: | |
# $ cat ~/.bash_history | python bash-to-zsh-hist.py >> ~/.zsh_history | |
import sys | |
import time |
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
Based on this Twitter thread: https://twitter.com/DLangille/status/1436388549985771520 | |
In a bourne shell, with VAR=ab and ab=123, can I get at the 123 value using ony VAR and not ab? | |
e.g. echo $VAR gives ab, but I want 123 | |
It's not ${!VAR} because I think that's bash. | |
$ echo ${!VAR} | |
/bin/sh: ${!V...}: Bad substitution |
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
[dan@test-ingress01:~]: $ sudo tail -F /var/log/freshports/git.log | |
2021.07.09 14:02:37 git-delta.sh has started. Will check these repos: 'doc ports src' | |
2021.07.09 14:02:37 git-delta.sh XML dir is /var/db/ingress/message-queues/incoming | |
2021.07.09 14:02:37 git-delta.sh Now processing repo: doc --------------- | |
2021.07.09 14:02:37 git-delta.sh REPODIR='/var/db/ingress/repos/doc' exists | |
2021.07.09 14:02:37 git-delta.sh Repodir is /var/db/ingress/repos/doc | |
2021.07.09 14:02:37 git-delta.sh Running: /usr/local/bin/git fetch: | |
2021.07.09 14:02:37 git-delta.sh fetch completed. | |
2021.07.09 14:02:37 git-delta.sh working on 'origin/main' | |
2021.07.09 14:02:37 git-delta.sh Is freshports/origin/main defined on the repo 'doc'? |
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
[dan@mydev:~/src/repos/ports] $ git for-each-ref --format '%(objecttype) %(refname)' | |
commit refs/heads/2021Q2 | |
commit refs/heads/main | |
commit refs/remotes/origin/2014Q1 | |
commit refs/remotes/origin/2014Q2 | |
commit refs/remotes/origin/2014Q3 | |
commit refs/remotes/origin/2014Q4 | |
commit refs/remotes/origin/2015Q1 | |
commit refs/remotes/origin/2015Q2 | |
commit refs/remotes/origin/2015Q3 |
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
[dan@knew:~/src/mkjail] $ sudo ./src/bin/mkjail upgrade -v 13.0-RELEASE -j ansible | |
Upgrading ansible jail from - to 13.0-RELEASE... | |
D /etc/amd.map | |
D /etc/newsyslog.conf.d/amd.conf | |
D /etc/rc.d/amd | |
D /etc/rc.d/nsswitch | |
D /etc/rc.d/timed | |
U /etc/auto_master | |
U /etc/autofs/include_ldap |
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
diff --git a/security/snort3/Makefile b/security/snort3/Makefile | |
index 200f008f8831..a612712b2e60 100644 | |
--- a/security/snort3/Makefile | |
+++ b/security/snort3/Makefile | |
@@ -1,8 +1,7 @@ | |
# Created by: Mark Felder <feld@FreeBSD.org> | |
PORTNAME= snort | |
-DISTVERSION= 3.1.3.0 | |
-PORTREVISION= 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
[dan@aws-1:~] $ cat /usr/local/etc/sanoid/sanoid.conf | |
# by default, don't snapshot anything in here | |
[data01] | |
recursive = yes | |
use_template = ignore | |
[data01/freshports/ingress01/var/db/freshports/message-queues] | |
use_template = repos | |
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
freshports.org=# SELECT DISTINCT | |
freshports.org-# PA.category, | |
freshports.org-# PA.name AS port, | |
freshports.org-# coalesce(V.date_modified, V.date_entry, V.date_discovery) AS | |
freshports.org-# date, | |
freshports.org-# V.vid, | |
freshports.org-# to_char(coalesce(V.date_modified, V.date_entry, | |
freshports.org(# V.date_discovery)::date, 'Mon DD') AS date_formatted, | |
freshports.org-# V.date_modified IS NULL AS new, | |
freshports.org-# lower(name) |