- Obtain cert (however you like). Rest of this assumes you have a .p12 with the cert, key, and appropriate CA certs.
- Extract the constituent parts of the p12:
openssl pkcs12 -in path_to_your_p12_file -nocerts -out privatekey.pem
openssl pkcs12 -in path_to_your_p12_file -clcerts -nokeys -out cert.pem
openssl pkcs12 -in path_to_your_p12_file -cacerts -nokeys -out cacerts.pem
- Unifi keystore is located in
/usr/local/share/java/unifi/data
. Change to the directory. - Convert the private key from 2a to PKCS#1 format:
openssl pkey -in privatekey.pem -traditional -out private.key
- Use
ace.jar
to import the key, cert, and CA cert chain to the keystore: java -jar ../lib/ace.jar import_key_cert private.key cert.pem cacerts.pem
This file contains hidden or 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 Github Golang PR Remove Vendor Files | |
// @namespace https://gist.github.com/clocklear/566edbfe5f302401bf9c47f6520ae09c | |
// @version 2025-02-07 | |
// @description Add a button to remove Golang vendor files from Github PRs | |
// @author Cory Locklear | |
// @match https://github.com/*/pull/* | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=github.com | |
// @grant none | |
// ==/UserScript== |
This file contains hidden or 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
(function(filterWords) { | |
function hideLiWithFilterWords(words) { | |
words.forEach(function(word) { | |
document.querySelectorAll(`#aws-unified-search-container ol li h3 a[href*="${word}"]`).forEach(function(element) { | |
const liElement = element.closest('li'); | |
if (liElement) { | |
liElement.style.setProperty('display', 'none', 'important'); | |
} | |
}); | |
}); |
This file contains hidden or 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
evergreen.segment.com | |
*.rvohealth.com | |
soonpubplatform.online | |
*.soonpubplatform.online |
I hereby claim:
- I am clocklear on github.
- I am corylocklear (https://keybase.io/corylocklear) on keybase.
- I have a public key ASBBk0t0a9aa4kmb09s7gMvkRpRNh16Tfq9DLd3o0xQnFwo
To claim this, I am signing this object:
This file contains hidden or 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 | |
PROGNAME=$(basename $0) | |
# change these to fit your needs | |
IPRANGE="10.96.0.0/24" | |
FLAGS="--memory 4096 --cpus 4" | |
sub_help(){ | |
echo "Usage: $PROGNAME <subcommand> [options]" | |
echo "" |
This file contains hidden or 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
# af-magic-shlvl.zsh-theme | |
# Repo: https://github.com/andyfleming/oh-my-zsh | |
# Direct Link: https://gist.github.com/clocklear/ba7ea8849d0a36141cd72e356d7e4a8a | |
if [ $UID -eq 0 ]; then NCOLOR="red"; else NCOLOR="green"; fi | |
local return_code="%(?..%{$fg[red]%}%? ↵%{$reset_color%})" | |
# primary prompt | |
PROMPT='$FG[237]------------------------------------------------------------%{$reset_color%} | |
$FG[032]%~\ |
This file contains hidden or 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 | |
# Colors! | |
BOLD='\033[1m' | |
GREEN='\033[32m' | |
WHITE='\033[37m' | |
RED='\033[91m' | |
YELLOW='\033[93m' | |
NC='\033[0m' # Reset everything |
This file contains hidden or 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
module.exports = function () { | |
return (+new Date() + Math.floor(Math.random() * 9999999).toString(36); | |
} |