This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -euo pipefail | |
# Redirect everything to stdout and logfile | |
exec > >(tee -a erase_tape.log) 2>&1 | |
# {{ ansible_managed }} | |
TAPE="{{ tape_backup__tape_drive }}" | |
if [[ ! -c "${TAPE}" ]]; then |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM mcr.microsoft.com/windows/servercore:ltsc2022 | |
SHELL ["powershell", "-NoProfile", "-Command", "$ErrorActionPreference='Stop'; $ProgressPreference='SilentlyContinue'; $VerbosePreference='Continue'; "] | |
RUN $hash = 'a6058d7c4c16bfa5bcd6fde051a92de8c68535fd7ebade55fc0ab1c41be3c8d5' \ | |
; Invoke-WebRequest -OutFile 'git_setup.exe' 'https://github.com/git-for-windows/git/releases/download/v2.43.0.windows.1/Git-2.43.0-64-bit.exe' \ | |
; if (Compare-Object $hash $(Get-FileHash 'git_setup.exe').Hash) { Write-Error 'CHECKSUM VERIFICATION FAILED!' -ErrorAction Stop } \ | |
; Start-Process -Wait 'git_setup.exe' -ArgumentList '/verysilent' \ | |
; Remove-Item -Force 'git_setup.exe' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[CmdletBinding()] | |
param( | |
[Parameter(Mandatory=$true)][string]$CommandLine = '' | |
) | |
$ErrorActionPreference = 'Stop' | |
# lifted from https://stackoverflow.com/questions/16686122/calling-createprocess-from-powershell | |
Add-Type -TypeDefinition @" | |
using System; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -euf -o pipefail | |
recipients=( | |
'root' | |
) | |
journal_filter=( | |
--priority 4 | |
--since -1d |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Duplicate Kleinanzeigen Post | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description Bietet eine "Anzeige duplizieren" Funktion beim Bearbeiten einer vorhandenen Anzeige in eBay Kleinanzeigen. | |
// @license CC0 | |
// @match https://www.ebay-kleinanzeigen.de/p-anzeige-bearbeiten.html?adId=* | |
// @grant none | |
// ==/UserScript== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM python:3.6-slim | |
RUN apt-get update && apt-get install --no-install-recommends -y \ | |
libgl1 \ | |
libglib2.0-0 \ | |
curl | |
RUN extractor='extractor_2.h5' \ | |
&& extractor_sha256='cdda15f239331b9535d80a94b4d75889ccb3b61d7b030c921bd2bfd7862b0adc' \ | |
&& extractor_path='/usr/local/lib/python3.6/site-packages/fawkes/model' \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM golang:1.16-alpine as builder-linux | |
RUN apk add \ | |
vips-dev \ | |
gcc \ | |
musl-dev | |
RUN mkdir /go/pkg \ | |
&& mkdir /tmp/go-cache \ | |
&& chmod ugo=rwX /go/pkg /tmp/go-cache |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Unblock Instagram scroll lock | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @author You | |
// @match https://www.instagram.com/* | |
// @grant none | |
// ==/UserScript== | |
(function() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Price Per Square Meter | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description Display price per square meter | |
// @author You | |
// @match https://www.ebay-kleinanzeigen.de/s-wohnung-kaufen/* | |
// @match https://www.ebay-kleinanzeigen.de/s-auf-zeit-wg/* | |
// @match https://www.ebay-kleinanzeigen.de/s-immobilien/* | |
// @match https://www.ebay-kleinanzeigen.de/s-wohnung-mieten/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import logging | |
import sys | |
import vobject | |
import requests | |
from requests.auth import HTTPBasicAuth | |
from requests.packages.urllib3.poolmanager import PoolManager | |
# https://stackoverflow.com/questions/26479039/python-requests-direct-pem-pinning-with-self-signed-cert |
NewerOlder