/etc/rspamd/local.d/multimap.conf:
IP_WHITELIST {
type = "ip";
prefilter = true;
map = "/${LOCAL_CONFDIR}/local.d/ip_whitelist.map";
action = "accept";
source 'https://rubygems.org' | |
gem 'icalendar' | |
gem 'activesupport' | |
# gem 'pry' |
for who ever this interest, if you enable krb5_store_password_if_offline in the SSSD configuration, the AD password for accounts is stored in plaintext in the kernel keyring | |
to dump the clear text password you can do : | |
``` | |
gdb -p <PID_OF_SSSD> | |
call system("keyctl show > /tmp/output") | |
``` | |
From the /tmp/output locate the key_id for the user you want | |
Example of an output is : |
{ | |
"info": { | |
"_postman_id": "16236cd9-63ed-4d5e-805b-5d25781090b0", | |
"name": "Audi Authentication", | |
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json" | |
}, | |
"item": [ | |
{ | |
"name": "Auth - 1 - Get OpenID configuration", | |
"protocolProfileBehavior": { |
*update: TBC, but this new might affect how easy it is to use this technique past August 2024: Authy is shutting down its desktop app | The 2FA app Authy will only be available on Android and iOS starting in August
This gist, based in part on a gist by Brian Hartvigsen, allows you to export from Authy your TOTP tokens you have stored there.
Those can be "standard" 6-digits / 30 secs tokens, or Authy's own version, the 7-digits / 10 secs tokens.
#!/usr/bin/python | |
# -- coding: utf-8 -- | |
''' | |
simple Day/Night detection in Python | |
require pyephem https://pypi.python.org/pypi/pyephem/ | |
''' | |
import ephem | |
import time |
This gist was essentially created out of my own rant about Netflix being hostile to IPv6 tunnel services since June 2016. You are welcome to read my opinion on the matter, this is the more technical side to the issue and how to combat it within your own network.
Since I wrote this, various GitHub users have contributed their thoughts and ideas which has been incorporated into this gist. Thank you to everyone who have contributed their own methods and implementations.
Netflix now treats IPv6 tunnel brokers (such as Hurricane Electric) as proxy servers. A while ago it became apparent to users and Netflix that somewhat by accident, IPv6 tunnel users were being served content outside of their geolocation because of the way Netflix was identifyi
Collection of License badges for your Project's README file.
This list includes the most common open source and open data licenses.
Easily copy and paste the code under the badges into your Markdown files.
Translations: (No guarantee that the translations are up-to-date)
Picking the right architecture = Picking the right battles + Managing trade-offs
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# addnote.py by JP Mens (September 2015), inspired by Martin Schmitt | |
# Usage: addnote subject "body (may be empty") [image ...] | |
# Adds a Notes.app (OSX and iOS) compatible message to the "Notes" | |
# IMAP folder. The IMAP store is configured from a file called | |
# `creds': | |
# | |
# [imap] | |
# hostname = |