Skip to content

Instantly share code, notes, and snippets.

View nivit's full-sized avatar
🍀
I may be slow to respond.

Nicola Vitale nivit

🍀
I may be slow to respond.
View GitHub Profile
@nivit
nivit / kitty-v0.34.0.log
Created April 15, 2024 09:40
Build log of kitty v. 0.34.0 (FreeBSD)
=>> Building x11/kitty
build started at Mon Apr 15 11:26:22 CEST 2024
port directory: /usr/ports/x11/kitty
package name: kitty-0.34.0
building for: FreeBSD 140amd64-default-job-01 14.0-RELEASE-p4 FreeBSD 14.0-RELEASE-p4 amd64
maintained by: nivit@FreeBSD.org
Makefile datestamp: -rw-r--r-- 1 root wheel 4191 Apr 15 08:46 /usr/ports/x11/kitty/Makefile
Ports top last git commit: 91f781afd4
Ports top unclean checkout: yes
Port dir last git commit: 91f781afd4
@nivit
nivit / 40_custom
Created June 28, 2023 15:26
Grub menuentry for FreeBSD (zfs)
#!/bin/sh
exec tail -n +3 $0
#
# File name: /etc/grub.d/40_custom
#
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
menuentry "FreeBSD - The Power To Server" {
@nivit
nivit / freebsd-forum.rss
Created January 15, 2023 13:45
RSS feed with newline in a title
<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/">
<channel>
<title>The FreeBSD Forums</title>
<description>The FreeBSD Forums</description>
<pubDate>Sun, 15 Jan 2023 13:35:33 +0000</pubDate>
<lastBuildDate>Sun, 15 Jan 2023 13:35:33 +0000</lastBuildDate>
<generator>The FreeBSD Forums</generator>
<link>https://forums.FreeBSD.org/</link>
<atom:link rel="self" type="application/rss+xml" href="https://forums.FreeBSD.org/forums/-/index.rss"/>
@nivit
nivit / 131amd64-default.log
Created November 17, 2022 15:45
Poudriere log for devel/py-Jinja2-doc (v. 3.1.2)
=>> Building devel/py-Jinja2-doc
build started at Thu Nov 17 15:46:02 CET 2022
port directory: /usr/ports/devel/py-Jinja2-doc
package name: py39-Jinja2-doc-3.1.2
building for: FreeBSD 131amd64-default-job-01 13.1-STABLE FreeBSD 13.1-STABLE amd64
maintained by: nivit@FreeBSD.org
Makefile datestamp: -rw-r--r-- 1 root wheel 244 Nov 17 13:55 /usr/ports/devel/py-Jinja2-doc/Makefile
Ports top last git commit: 4b8ee59e2
Ports top unclean checkout: yes
Port dir last git commit: 4b8ee59e2
@nivit
nivit / arte.it.rss
Last active March 28, 2022 11:58
RSS/Atom feed with wrong item URL (search "La città dell")
<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Arte.it Notizie</title>
<link>http://www.arte.it/</link>
<description>Tutte le notizie sul mondo dell'arte.</description>
<language>it</language>
<copyright>© 2020 - 2022 - ARTE.it</copyright>
<lastBuildDate>Mon, 28 Mar 2022 13:55:29 CEST</lastBuildDate>
@nivit
nivit / arteworld.it-feed.xml
Created March 18, 2022 16:31
Atom feed without a title
<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:wfw="http://wellformedweb.org/CommentAPI/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
>
<channel>
#!/bin/sh
chroot_path=/compat/ubuntu
get_pa_sock_path()
{
PA_SOCK_PATH=$(sockstat | awk -v me=$(whoami) -F'[ \t]+' '
$1 == me && $2 == "pulseaudio" && $6 ~ /native/ {
print $6;
exit 0
@nivit
nivit / www.arte.it-rss.xml
Created December 29, 2021 09:24
Example of RSS feed without some titles
<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Arte.it Notizie</title>
<link>http://www.arte.it/</link>
<description>Tutte le notizie sul mondo dell'arte.</description>
<language>it</language>
<copyright>© 2020 - 2021 - ARTE.it</copyright>
<lastBuildDate>Tue, 28 Dec 2021 22:34:39 CET</lastBuildDate>
@nivit
nivit / gist:3a7c15c656054b936c0dd16054b9b83a
Created May 25, 2020 15:48
Set up default browser in FreeBSD
* firefox
xdg-mime default firefox.desktop text/html
env BROWSER="" xdg-settings set default-web-browser firefox.desktop
env BROWSER="" xdg-settings set default-url-scheme-handler https firefox.desktop
env BROWSER="" xdg-settings set default-url-scheme-handler http firefox.desktop
* chrome (www/chromium)
xdg-mime default chromium-browser.desktop text/html
env BROWSER="" xdg-settings set default-web-browser chromium-browser.desktop
env BROWSER="" xdg-settings set default-url-scheme-handler https chromium-browser.desktop

Keybase proof

I hereby claim:

  • I am nivit on github.
  • I am nivit (https://keybase.io/nivit) on keybase.
  • I have a public key whose fingerprint is 989A 2360 266B 0DF7 EDAF 7E2E A51E 190C 4C08 08D0

To claim this, I am signing this object: