Skip to content

Instantly share code, notes, and snippets.

@BoresXP
BoresXP / clear-git.ps1
Created Dec 2, 2019
Script to clear git branches without upstream
View clear-git.ps1
<#
.SYNOPSIS
Used to clean branches in git repo.
.DESCRIPTION
Script to clean branches without upstream in git repo. Uses git commands to work with repo.
.PARAMETER dryRun
Prevent script from doing any real actions.
View .eslintrc.json
{
"env": {
"browser": true,
"es6": true
},
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"plugin:promise/recommended",
"plugin:sonarjs/recommended",
@BoresXP
BoresXP / sign.sh
Created Sep 7, 2018
Script to generate keys and sign zone for DNSSEC.
View sign.sh
#!/bin/bash
if [ $# -eq 0 ]; then
echo "Script that generates keys for domain."
fi
if [ $# -lt 1 -o $# -gt 2 ]; then
echo "Illegan number of arguments!"
echo "Usage:"
echo " $0 <domain> [mode]"
echo "Where:"
echo " domain - domain name."
@BoresXP
BoresXP / ldns-signzone.sh
Created Sep 7, 2018 — forked from jedisct1/ldns-signzone.sh
ldns-signzone wrapper that understands $INCLUDE statements #dnssec #nsd
View ldns-signzone.sh
#! /bin/sh
LDNS_SIGNZONE="ldns-signzone"
errx() {
echo "$1" >&2
exit 1
}
parse_opts() {