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
# Powershell refuses to connect to the Netbox API on our setup without this. | |
add-type @" | |
using System.Net; | |
using System.Security.Cryptography.X509Certificates; | |
public class TrustAllCertsPolicy : ICertificatePolicy { | |
public bool CheckValidationResult( | |
ServicePoint srvPoint, X509Certificate certificate, | |
WebRequest request, int certificateProblem) { | |
return true; | |
} |
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 ruby | |
## contrib via https://github.com/ytti/oxidized/issues/67 | |
require 'open-uri' | |
require 'json' | |
critical = false | |
pending = false | |
critical_nodes = [] |
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 -u | |
occ_wrapper='docker exec -it -u 33 nextcloud-app /var/www/html/occ' | |
mysql_wrapper='docker exec nextcloud-db mysql nextcloud' | |
upgrades_db() { | |
_scmds="db:add-missing-columns | |
db:add-missing-indices | |
db:add-missing-primary-keys | |
db:convert-filecache-bigint |
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
[appstream] | |
name=CentOS Stream $releasever - AppStream | |
mirrorlist=http://mirrorlist.centos.org/?release=$stream&arch=$basearch&repo=AppStream&infra=$infra&cc=de | |
#baseurl=http://mirror.centos.org/$contentdir/$stream/AppStream/$basearch/os/ | |
gpgcheck=1 | |
enabled=1 | |
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial |
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
# source: https://github.com/MSAdministrator/PoshCodeMarkDown/blob/master/docs/Delete-Old-Shadow-Copies.ps1.md | |
# modified... | |
# TODO: only handle c: | |
# TODO: Never delete the last snapshot, or even better the last two? | |
Get-WmiObject Win32_Shadowcopy | ForEach-Object { | |
.InstallDate $strShadowID = $.ID $dtmSnapShotDate = [management.managementDateTimeConverter]::ToDateTime($WmiSnapShotDate) $strClientAccessible = $_.ClientAccessible $dtmCurDate = Get-Date | |
$dtmTimeSpan = New-TimeSpan $dtmSnapShotDate $dtmCurDate $intNumberDays = $dtmTimeSpan.Days |
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/sh | |
# source in blogpost comment at | |
# https://technicalexperiments.wordpress.com/2015/10/30/zte-mf831-for-use-with-openwrt-serial-modem-instead-of-cdc_ether/comment-page-1/ | |
wLog(){ | |
case $debug in | |
0) | |
logger "${0##*/}: $1" | |
;; | |
esac | |
return 0 |
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
https://schroederdennis.de/allgemein/mellanox-connectx-3-40gbit-ethernet-unlock-freischalten-crossflashing-anleitung-tutorial-howto/#comment-1573 | |
~# ls -l | |
total 3872 | |
-rw-r--r-- 1 root root 2666684 Mar 17 2021 2103011801.7z | |
-rw-r--r-- 1 root root 485262 Nov 15 12:37 fw-ConnectX3-rel-2_36_5000-ConnectX3-A1-JFP-QDR.bin.zip | |
-rw-r--r-- 1 root root 796616 Nov 15 12:37 fw-ConnectX3-rel-2_42_5000-MCX353A-FCB_A2-A5-FlexBoot-3.4.752.bin | |
-rw-r--r-- 1 root root 5120 Nov 15 12:33 fwsettings.ini | |
drwxr-xr-x 2 root root 6 Feb 24 2021 tmp |
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
-startup | |
plugins/org.eclipse.equinox.launcher_1.6.200.v20210416-2027.jar | |
--launcher.library | |
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.2.200.v20210429-1609 | |
-data | |
@user.home/verinice/workspace | |
-vmargs | |
-Xms512m | |
-Xmx4g | |
-Dorg.osgi.service.http.port=8800 |
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
$AllRegAppEntries = Get-ChildItem -Path HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall,HKLM:\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall | ForEach-Object {Get-ItemProperty -Path $_.pspath} | |
$FilteredApps = New-Object System.Collections.ArrayList | |
foreach ($App in $AllRegAppEntries) { | |
if ($App.DisplayName -ilike "*chromi*") { | |
Write-Host $App |
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 json | |
from deepdiff import DeepDiff | |
# Read the JSON files | |
with open("appcluster11.json") as file: | |
appcluster11 = json.load(file) | |
with open("appcluster12.json") as file: | |
appcluster12 = json.load(file) |