Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

Buzz Zhang fengerzh

🎯
Focusing
Block or report user

Report or block fengerzh

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@fengerzh
fengerzh / match-ssh-keys
Last active Apr 1, 2018 — forked from mschmitt/match-ssh-keys
Matches Fingerprints from sshd logs (sshd on loglevel VERBOSE) against authorized_keys for the respective user.
View match-ssh-keys
#!/usr/bin/perl -w
use strict;
use diagnostics;
use File::Temp;
# Matches Fingerprints from sshd logs (sshd on loglevel VERBOSE) against
# authorized_keys for the respective user.
die "Please specify input file!\n" unless ($ARGV[0]);
@fengerzh
fengerzh / post-checkout
Created Feb 13, 2018
Git hook to update local username and email.
View post-checkout
#!/bin/bash
function warn {
echo -e "\n$1 Email and author not initialized in local config!"
}
email="$(git config --local user.email)"
name="$(git config --local user.name)"
if [[ $1 != "0000000000000000000000000000000000000000" || -n $email || -n $name ]]; then
You can’t perform that action at this time.