I hereby claim:
- I am hansdg1 on github.
- I am hansdg1 (https://keybase.io/hansdg1) on keybase.
- I have a public key ASB8pSId1DDLFUDda9DzPAhhkpfFVds37h3VUbQQWVMlTwo
To claim this, I am signing this object:
| #!/bin/bash | |
| # install the smartctl package first! (apt-get install smartctl) | |
| if sudo true | |
| then | |
| true | |
| else | |
| echo 'Root privileges required' |
| #!/usr/bin/env bash | |
| #set -x | |
| LAST_KERNEL=`/bin/rpm -q --last kernel | /usr/bin/head -1 | /usr/bin/perl -pe 's/^kernel-(\S+).*/$1/'` | |
| RUNNING_KERNEL=`uname -r` | |
| if [[ $LAST_KERNEL != $RUNNING_KERNEL ]]; | |
| then | |
| echo "**Reboot pending**" | |
| echo -e "Installed $LAST_KERNEL\nRunning $RUNNING_KERNEL" | column -t | |
| else |
| # DESTDIR is defined in dh_auto_install | |
| # Ref: https://www.debian.org/doc/manuals/maint-guide/modify.ja.html | |
| BINDIR=$(DESTDIR)/usr/local/bin | |
| BIN1_DEST=bin/tmux-xpanes | |
| BIN2_DEST=bin/xpanes | |
| MANDIR=$(DESTDIR)/usr/local/share/man/man1 | |
| MAN1_DEST=man/tmux-xpanes.1 | |
| MAN2_DEST=man/xpanes.1 | |
| INSTALL?=/usr/bin/install | |
| RM?=/bin/rm -f |
I hereby claim:
To claim this, I am signing this object:
| server { | |
| listen 80 default_server; | |
| listen [::]:80 default_server ipv6only=on; | |
| server_name blog2.hansguthrie.com www.blog2.hansguthrie.com; | |
| include /etc/nginx/snippets/letsencrypt.conf; | |
| location / { | |
| return 301 https://blog2.hansguthrie.com$request_uri; | |
| } |
| import javax.crypto.Cipher; | |
| class CipherTest { | |
| public static void main(String args[]) { | |
| try { | |
| int maxKeyLen = Cipher.getMaxAllowedKeyLength("AES"); | |
| if(maxKeyLen < 256) { | |
| System.out.println("FAILED: Max key length too small! (" + maxKeyLen + ")."); | |
| } else { | |
| System.out.println("PASSED: Max key length OK! (" + maxKeyLen + ")."); | |
| } |
| Homebrew build logs for ffmpeg on macOS 10.11.6 | |
| Build date: 2017-02-08 00:02:12 |
| tmux is a "terminal multiplexer", it enables a number of terminals to be accessed and controlled from a single terminal. | |
| If you use Debian/Ubuntu, you can just run apt-get install tmux, and voila. | |
| Since the title was about centos 7, then do the following step to install tmux. | |
| (1). tmux has a library dependency on libevent which, of course, isn’t installed by default. | |
| $ wget https://github.com/downloads/libevent/libevent/libevent-2.0.21-stable.tar.gz | |
| $ tar xzvf libevent-2.0.21-stable.tar.gz | |
| $ cd libevent-2.0.21-stable |
| alias rbr2="if [ -f /var/run/reboot-required ]; then cat /var/run/reboot-required; echo -e 'Packages pending reboot:'; cat /var/run/reboot-required.pkgs | sed 's/^/ /' ; fi" |
| #!/bin/bash | |
| # Installed by: Hans Guthrie | |
| # Date: 11/6/2016 | |
| # Install dir: /config/scripts/post-config.d/ | |
| # Notes: The purpose of this file is to automatically install packages after a firmware upgrade to the | |
| # ERLite. After every upgrade, the /config directory is copied to the new image. | |
| # Followed steps from here: | |
| # https://help.ubnt.com/hc/en-us/articles/204961814-EdgeMAX-Are-my-changes-lost-when-I-upgrade-the-firmware-image- | |
| # |