# Virtual Host config for myhost.com
NameVirtualHost *:80
<VirtualHost *:80>
ServerName myhost.com| #!/usr/bin/env perl | |
| use warnings; | |
| use strict; | |
| use Date::Parse; | |
| use Net::SSH::Expect; | |
| use POSIX qw(strftime); | |
| # set to a known host on your network |
| #!/usr/bin/env perl | |
| use strict; | |
| use warnings; | |
| use feature ':5.12'; | |
| use version; | |
| use Text::SimpleTable; | |
| my @versionstrings = ( | |
| '0.0.4', |
# uname -a
Linux base 4.0.5-gentoo #1 SMP Wed Jul 1 02:23:16 JST 2015 x86_64 Intel(R) Xeon(R) CPU E5-2640 0 @ 2.50GHz GenuineIntel GNU/Linux# emerge -pvq openldap openssh sssd sudo
[ebuild R ] net-nds/openldap-2.4.38-r2 USE="berkdb crypt gnutls ipv6 minimal sasl ssl syslog tcpd -cxx -debug -experimental -icu -iodbc -kerberos -odbc -overlays -perl -samba (-selinux) -slp -smbkrb5passwd" ABI_X86="(64) -32 (-x32)" | #!/bin/bash | |
| # | |
| # Script to remove GPG key from git-crypt | |
| # | |
| # It will re-initialize git-crypt for the repository and re-add all keys except | |
| # the one requested for removal. | |
| # | |
| # Note: You still need to change all your secrets to fully protect yourself. | |
| # Removing a user will prevent them from reading future changes but they will | |
| # still have a copy of the data up to the point of their removal. |
| #!/usr/bin/env bash | |
| #################################################################################### | |
| # Slack Bash console script for sending messages. | |
| #################################################################################### | |
| # Installation | |
| # $ curl -s https://gist.githubusercontent.com/andkirby/67a774513215d7ba06384186dd441d9e/raw --output /usr/bin/slack | |
| # $ chmod +x /usr/bin/slack | |
| #################################################################################### | |
| # USAGE | |
| # Send message to slack channel/user |
You can use ssacli (smart storage administrator command line interface) tool to manage any of supported HP Smart Array Controllers in your Proxmox host without need to reboot your server to access Smart Storage Administrator in BIOS. That means no host downtime when managing your storage.
CLI is not as convenient as GUI interface provided by BIOS or desktop utilities, but still allows you to fully manage your controller, physical disks and logical drives on the fly with no Proxmox host downtime.
ssacli replaces older hpssacli, but shares the same syntax and adds support for newer servers and controllers.
Some repositories have git-crypt enabled, which encrypts certain files. This doc describes how to add and remove users, using their GPG keys, and has associated scripts. (You can also just share the repo's symmetric key, which is simpler, but not covered here.)
A repo that has been git-crypt'd should have in its repo:
.gitattributes- defines which files should be encrypted.git-crypt/keys/default/0/*.gpg- .gpg file for every user (Each .gpg file is the repo's symmetric encryption key, which has been encrypted for a particular user with their individual public key. The filename is the user key's fingerprint.)
| #!/bin/bash | |
| # | |
| # For the git repo in the current directory, this script will re-initialize | |
| # git-crypt with a new secret and re-add all the gpg keys. | |
| # | |
| # Purpose: by running this script, users who used to have their GPG keys in this | |
| # git-crypt'd repo will not be able to view future changes. | |
| # | |
| # Notes: | |
| # 1. Before running this you should have already removed GPG keys of old users. |