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 bash | |
join_by() | |
{ | |
local IFS="$1" | |
shift | |
echo "$*" | |
} | |
data=$(curl -s https://www.intigriti.com/programs) |
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
class PGDB(): | |
LIMIT_RETRIES = 5 | |
def __init__(self, user:str, password:str, host:str, port:int, database:str, sslmode:str, reconnect:bool): | |
self.user = user | |
self.password = password | |
self.host = host | |
self.port = port | |
self.database = database | |
self._connection = None |
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 bash | |
#EDIT: just use `brew leaves` | |
brew deps --installed | awk -F'[: ]+' '{ | |
packages[$1]++ | |
for (i = 2; i <= NF; i++) | |
dependencies[$i]++ | |
} | |
END { |
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 alpine | |
# the group id of the docker group on the host | |
ENV HOST_DOCKER_GID 101 | |
# SECURITY CONSIDERATIONS: | |
# Only expose this via a dedicated internal, encrypted net to your webserver/.. | |
# Mount /var/run/docker.sock READONLY, make this container readonly too | |
RUN addgroup -g $HOST_DOCKER_GID docker \ |
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 bash | |
set -euo pipefail | |
shopt -s inherit_errexit 2>/dev/null || true | |
# this script will connect macOS to Cloudflare Warp using Wireguard | |
# note: this is *absolutely not* an official client from Cloudflare | |
# Copyright (C) 2019 Jay Freeman (saurik) | |
# Zero Clause BSD license {{{ |
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
package main | |
import ( | |
"bufio" | |
"net" | |
"os" | |
"syscall" | |
) | |
func println(msg string) { |
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
echo > CVE-2021-36934 fixer | |
echo See https://msrc.microsoft.com/update-guide/vulnerability/CVE-2021-36934 | |
echo Deleting current shadow copies... | |
vssadmin delete shadows /all /quiet | |
echo Fixing privilege issue... | |
icacls %windir%\system32\config\*.* /inheritance:e | |
echo Creating brand new shadow copy... |
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
package main | |
import ( | |
"flag" | |
"fmt" | |
"github.com/go-piv/piv-go/piv" | |
conf "github.com/hazcod/sop/config" | |
"github.com/pkg/errors" | |
"github.com/sirupsen/logrus" | |
"os" |
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
<wap-provisioningdoc id="1162DF07-F217-449B-95F8-FB85A34D3CA5" name="windows-printerspooler-disable"> | |
<characteristic type="com.airwatch.winrt.registryoperation" uuid="3fa91319-eac0-4a16-9d10-093ba845b698"> | |
<parm RegistryPath="HKLM\SYSTEM\CurrentControlSet\Services\Spooler" Action="Replace"> | |
<Value Name="Start" Data="4" Type="DWORD" /> | |
</parm> | |
</characteristic> | |
</wap-provisioningdoc> |
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
ssh xbian@IP_OF_YOUR_XBIAN | |
sudo apt-get install xboxdrv | |
mkdir xbox | |
nano xbox/mapping | |
``` | |
[xboxdrv] | |
silent = true | |
ui-clear = true |