Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env bash
# This program is free software: you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation, either version 3 of the License, or (at your
# option) any later version. Please see LICENSE.txt at the top level of
# the source code distribution for details.
set -euo pipefail
@fbouynot
fbouynot / main.cf
Last active June 19, 2024 20:02
Filtering part of main.cf
###
# Reject message immediately when rejected by an ACL (or it could pass the auth phase)
smtpd_delay_reject = no
# Requires HELO or EHLO before sending an EMAIL
smtpd_helo_required = yes
# Filtering order # Informations available at that step
# 1 smtpd_client_restrictions # remote IP address, its DNS reverse, forward of the reverse
# 2 smtpd_helo_restrictions # + name presented
# This program is free software: you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation, either version 3 of the License, or (at your
# option) any later version. Please see LICENSE.txt at the top level of
# the source code distribution for details.
# /etc/profile.d/prompt.sh
PROMPT_COMMAND='lstatus=$?'
# Print date and space separator
@fbouynot
fbouynot / install_cachet.sh
Last active December 24, 2024 11:41
Cachet 3.x installation
#!/usr/bin/env bash
#
# This program is free software: you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation, either version 3 of the License, or (at your
# option) any later version. Please see LICENSE.txt at the top level of
# the source code distribution for details.
#
# @package install_cachet.sh
# @author <[email protected]>
try { Invoke-WebRequest -Uri https://198.51.100.1/ -Headers @{Host='www.example.com'} -Method HEAD -UseBasicParsing | Select-Object -ExpandProperty Headers } catch { $_.Exception.Response.StatusCode ; $_.Exception.Response.Headers.ToString() }
@fbouynot
fbouynot / dist-upgrade.service
Last active September 27, 2023 14:48
Fedora dist-upgrade
[Unit]
Description=Scheduled Dist Upgrade
[Service]
Type=oneshot
ExecStart=/opt/dist-upgrade.sh
#!/usr/bin/env bash
#
# This program is free software: you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation, either version 3 of the License, or (at your
# option) any later version. Please see LICENSE.txt at the top level of
# the source code distribution for details.
#
# @package nftables-apply
# @author <[email protected]>
@fbouynot
fbouynot / fedora_setup.sh
Last active April 18, 2024 15:12
My post-installation tasks for Fedora Workstation
#!/usr/bin/env bash
#
# This program is free software: you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation, either version 3 of the License, or (at your
# option) any later version. Please see LICENSE.txt at the top level of
# the source code distribution for details.
#
# @package fedora_setup.sh
# @author <[email protected]>
@fbouynot
fbouynot / about:config
Last active March 9, 2023 13:41
Configuration of Firefox
network.http.max-connections 1500
network.http.max-persistent-connections-per-server 10
gfx.webrender.all true
network.dns.disablePrefetch true
network.trr.custom_uri https://doh3.dns.nextdns.io/xxxxx
network.trr.mode 3
network.trr.uri https://doh3.dns.nextdns.io/xxxxx
fission.autostart.session true
cookiebanners.service.mode 2
cookiebanners.service.mode.privateBrowsing 2
@fbouynot
fbouynot / netbox_upgrade.sh
Last active September 21, 2023 11:18
Upgrade Netbox to the latest stable version.
#!/usr/bin/env bash
#
# This program is free software: you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation, either version 3 of the License, or (at your
# option) any later version. Please see LICENSE.txt at the top level of
# the source code distribution for details.
#
# @package netbox_upgrade.sh
# @author <[email protected]>