Skip to content

Instantly share code, notes, and snippets.

View fliiiix's full-sized avatar
🎩
This is the year of ipv6 and python3!

Felix fliiiix

🎩
This is the year of ipv6 and python3!
View GitHub Profile
@fliiiix
fliiiix / media-ccc-de
Created January 1, 2024 15:52
Obsidian meda.ccc.de template
<%*
/*
Needs Templater community plugin!
*/
format_duration = (duration_seconds) => {
const duration_ms = duration_seconds * 1000
duration_h = Math.floor(moment.duration(duration_ms).asHours()) || ""
duration_m_s = moment.utc(duration_ms).format("mm:ss")
return [duration_h, duration_m_s].filter(Boolean).join(":")
This file has been truncated, but you can view the full file.
=>> Building www/grafana9
build started at Sun Nov 27 17:05:09 CET 2022
port directory: /usr/ports/www/grafana9
package name: grafana9-9.2.6
building for: FreeBSD 11amd64-default-job-03 13.1-RELEASE-p4 FreeBSD 13.1-RELEASE-p4 amd64
maintained by: [email protected]
Makefile ident:
Poudriere version: 3.3.7_1
Host OSVERSION: 1301000
Jail OSVERSION: 1301000
From a2b06000476b5331ea776311244b532603a3670e Mon Sep 17 00:00:00 2001
From: l33tname <[email protected]>
Date: Sat, 23 Oct 2021 18:11:35 +0000
Subject: [PATCH] devel/ruby-gems: creates different gemspec files
because of that all patch-gemspec should be updated
---
.../rubygem-gitlab-grit/files/patch-gemspec | 20 ++++++++---------
.../files/patch-ext_nokogiri_extconf.rb | 6 ++---
textproc/rubygem-nokogiri/files/patch-gemspec | 16 +++++++-------
@fliiiix
fliiiix / 0001-devel-ruby-gems-Update-3.0.8-3.2.29.patch
Last active October 11, 2021 19:11
Probably 0003 is a better fix.
From 63a291ba98c6fc3fa4e5d864b393de04dfa28576 Mon Sep 17 00:00:00 2001
From: l33tname <[email protected]>
Date: Sun, 10 Oct 2021 14:18:33 +0000
Subject: [PATCH] devel/ruby-gems: Update 3.0.8 -> 3.2.29
---
devel/ruby-gems/Makefile | 4 ++--
devel/ruby-gems/distinfo | 6 ++---
...lib_rubygems_commands_pristine__command.rb | 14 +++++++++++
devel/ruby-gems/pkg-plist | 23 ++++++++-----------
diff --git a/devel/ruby-gems/Makefile b/devel/ruby-gems/Makefile
index 25778e0c4406..aa16b57624b5 100644
--- a/devel/ruby-gems/Makefile
+++ b/devel/ruby-gems/Makefile
@@ -1,7 +1,7 @@
# Created by: Alexander Novitsky <[email protected]>
PORTNAME= gems
-PORTVERSION= 3.0.8
+PORTVERSION= 3.2.26
@fliiiix
fliiiix / ruby30-on-freebsd.md
Last active October 10, 2021 12:27
Notes about Ruby 3.0 on FreeBSD

Issue

Gems don't install if you try to use:

cat /etc/make.conf 
DEFAULT_VERSIONS= ruby=3.0

The example port used to show this is devel/rubygems-racc.

[tool.poetry]
name = "bob-the-builder"
version = "0.1.0"
description = "Blaa"
authors = ["Blaa"]
license = "Proprietary"
[tool.poetry.dependencies]
python = "^3.9"
pydantic = "*"
@fliiiix
fliiiix / block-v6-dns.conf
Created February 2, 2021 16:33
block ipv6 for HE electric
# disable v6
server=/netflix.com/#
address=/netflix.com/::
server=/netflix.net/#
address=/netflix.net/::
server=/nflxext.com/#
address=/nflxext.com/::
server=/nflximg.net/#
address=/nflximg.net/::
server=/nflxvideo.net/#
{
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": "-- Grafana --",
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts",
options hid_apple fnmode=2
options hid_apple swap_opt_cmd=1