Skip to content

Instantly share code, notes, and snippets.

View bartekkois's full-sized avatar

Bartek Kois bartekkois

  • x3s.pl Bartosz Kois
  • Jasło, Poland
View GitHub Profile
@bartekkois
bartekkois / backup
Created October 16, 2016 08:34
Script for periodical backup of /etc directory
#!/bin/sh
# ------------ BACKUP 1.0.0 "rc.backup" -------------
# All rights reserved for B@roo 2000-2016
# -----------------------------------------------------
#set -x
# ------------------- Configuration -------------------
DIR=/var/log/backup
# ------------------- Create backup -------------------
@bartekkois
bartekkois / unifi_restart_site
Last active September 24, 2017 13:01
Shell script for restarting all Unifi APs for specified site
#!/bin/sh
#
# Shell script for restarting all Unifi APs for specified site
# Usage: unifi_count_site username password baseurl site
# Requirements: shell, jq (https://stedolan.github.io/jq/)
#
username=$1
password=$2
baseurl=$3