Skip to content

Instantly share code, notes, and snippets.

fishdust

Block or report user

Report or block fishdust

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
@fishdust
fishdust / CentOS 7 AFP Netatalk
Last active Aug 23, 2018 — forked from darcyliu/centos7_timechine.sh
Install Time Machine service on CentOS 7
View CentOS 7 AFP Netatalk
# Install AFP server on CentOS 7
# http://netatalk.sourceforge.net/wiki/index.php/Netatalk_3.1.7_SRPM_for_Fedora_and_CentOS
# http://confoundedtech.blogspot.com/2011/07/draft-draft-ubuntu-as-apple-time.html
yum install -y rpm-build gcc make wget
# install netatalk
yum install -y avahi-devel cracklib-devel dbus-devel dbus-glib-devel libacl-devel libattr-devel libdb-devel libevent-devel libgcrypt-devel krb5-devel mysql-devel openldap-devel openssl-devel pam-devel quota-devel systemtap-sdt-devel tcp_wrappers-devel libtdb-devel tracker-devel
yum install -y bison docbook-style-xsl flex dconf
@fishdust
fishdust / zfsonlinux_centos7.md
Last active Jan 10, 2017
Installing ZFS on Centos 7
View zfsonlinux_centos7.md

Here are the only commands used to install ZFS on Centos 7

First install from CentOS-7-x86_64-Minimal-1611.iso

yum -y install epel-release
yum -y update
reboot

after reboot

View Case insensitive tab complete
echo "set completion-ignore-case on" >> /etc/inputrc
@fishdust
fishdust / gcsfuse-setup.sh
Last active Aug 29, 2015
Mounting GCP bucket with gcsfuse
View gcsfuse-setup.sh
# Install necessary components
yum -y install fuse go git
echo "export GOPATH=$HOME/go" >> ~/.bash_profile
#modify .bash_profile to include the following:
PATH=$PATH:$HOME/bin:$HOME/go/bin:$HOME/google-cloud-sdk/bin
mkdir /mnt/gcp-online
gcsfuse gcp-online /mnt/gcp-online/
@fishdust
fishdust / gist:d09db08a3897335a94c7
Created Jan 15, 2015
TrippLite Keyspan USA-19HS on OS X 10.10
View gist:d09db08a3897335a94c7
screen /dev/tty.USA19H145P1.1 9600
@fishdust
fishdust / salt-curl-ftp
Last active Aug 29, 2015
Using salt to upload remote data to a FTP server via Curl
View salt-curl-ftp
salt 'salt-client.domain.com' cmd.run "curl -v -T /path/to/file.foo ftp://ftpuser:ftppass@domain.com/destination/path/"
@fishdust
fishdust / tina_cart
Last active Aug 29, 2015
Reading data from an Atempo TimeNavigator formatted cartridge
View tina_cart
# to read the data only:
tina_cart -type "IBM Ultrium 5" -device /dev/rmt/nst0 -list -skip 1 -all
# to extract the data off the tape
tina_cart -type "IBM Ultrium 5" -extract -all -format tar -device /dev/rmt/nst0 -skip 1
View zfs-healthcheck
#! /usr/local/bin/bash
#
# Calomel.org
# https://calomel.org/zfs_health_check_script.html
# FreeBSD 9.1 ZFS Health Check script
# zfs_health.sh @ Version 0.15
# Check health of ZFS volumes and drives. On any faults send email. In FreeBSD
# 10 there is supposed to be a ZFSd daemon to monitor the health of the ZFS
# pools. For now, in FreeBSD 9, we will make our own checks and run this script
@fishdust
fishdust / zfs-healthcheck cron
Created Dec 12, 2014
zfs health check cron entry
View zfs-healthcheck cron
SHELL=/bin/bash
PATH=/bin:/sbin:/usr/bin:/usr/sbin
#
#minute (0-59)
#| hour (0-23)
#| | day of the month (1-31)
#| | | month of the year (1-12 or Jan-Dec)
#| | | | day of the week (0-6 with 0=Sun or Sun-Sat)
#| | | | | commands
#| | | | | |
@fishdust
fishdust / history
Last active Aug 29, 2015
Makes bash history useful by time stamping, ignoring repeated commands, and allowing more history events
View history
HISTFILESIZE=2000000
HISTSIZE=100000
HISTTIMEFORMAT='%F %T '
HISTIGNORE="&:[ ]*"
# add to .bash_profile or .bashrc
# history will look like this:
#
# 4729 2014-11-30 12:11:50 cat .bash_profile
# 4730 2014-11-30 12:18:54 uptime
You can’t perform that action at this time.