Skip to content

Instantly share code, notes, and snippets.

@wendelb
wendelb / Why was this page not found.md
Last active July 24, 2019 08:22
A copy of FT.com's explanation for the 404 page

Why wasn't this page found?

We asked some leading economists.

Stagflation

The cost of pages rose drastically, while the page production rate slowed down.

General economics

There was no market for it.

Liquidity traps

@wendelb
wendelb / Readme.md
Last active May 6, 2019 07:14
Disable Anoymous Access Settings in Confluence

Disable Anoymous Access Settings in Confluence

Add this script in one of the custom html sections in your Confluence Administration.

This will hide the table where you can view and edit the permissions for anonymous users. But only if the currently logged in user is not a system admin.

If you don't need to show the anonymous permission table to the system admin, you may also look at: https://gist.github.com/dvdsmpsn/5748806

@wendelb
wendelb / Readme.md
Created September 27, 2017 07:38
How to properly setup Software Restriction Policy

Software Restriction Policy (SRP) when set up correctly can greatly enhance security.

The following links will help you in doing so:

@wendelb
wendelb / Language.md
Created September 13, 2016 12:58
sysPASS Language Additions

Here are the english and german translations for the new fail2ban feature for sysPASS. Since I haven't worked with gettext yet, the translations are provided in a table.

Key English German
Activar Fail2Ban Enable logging for Fail2Ban Aktiviere Syslog für Fail2Ban
Activar Fail2Ban - Description This option enables logging to syslog, so that Fail2Ban can detect and handle hosts with unreasonable amounts of failed logins. Wenn diese Option aktiviert ist, dann wird bei jedem fehlgeschlagenen Anmeldeversuch eine Nachricht an Syslog gesendet, die von Fail2Ban empfangen werden kann. So ist es möglich, Hosts mit einer ungewöhnlich hohen Anzahl an fehlgeschlagenen Loginversuchen besonders zu behandeln.
@wendelb
wendelb / Readme.md
Created September 13, 2016 12:48
sysPASS Fail2Ban Configuration

This is the needed fail2ban configuration to block offending clients for sysPass Password Manager. For this to work, you will need all the changes introduced in https://github.com/wendelb/sysPass .

Installation

  • Put the file filter.d-sysPass.local into /etc/fail2ban/filter.d
  • Put the file jail.d-sysPass.local into /etc/fail2ban/jail.d
  • Enable Fail2Ban-Logging in sysPass

You are good to go!

@wendelb
wendelb / logoff.ps1
Created October 11, 2014 14:29
Auto-Lock your workstation after Idle-Timeout with PowerShell
#
# This background job automatically locks your Workstation after a specified amount of
# time. It will come in handy if you cannot access the screensaver settings due to policy
# restriction but want to lock your screen after a idle timeout. Or you could just
# press [Win]+[L] everytime you leave your desk ;) .
#
# start with
# powershell.exe -windowstyle hidden -executionpolicy Unrestricted P:\ATH\TO\logoff.ps1
#
# `-windowstyle hidden` will make your PowerShell disappear/run in background