Skip to content

Instantly share code, notes, and snippets.

@musichook
musichook / tmbackup.sh
Last active Dec 31, 2019 — forked from aidmax/tmbackup.sh
Install Time Machine service on CentOS 7
View tmbackup.sh
# Install Time Machine service on CentOS 7
# Updated for netatalk 3.1.12
# install required packages for compiling from source
yum install -y rpm-build gcc make wget
# install Perl-IO-socket dependency for netatalk 3.1.12
yum install -y perl-IO-Socket-INET6 perl-interpreter perl-generators libxslt
# install netatalk
View install-full-node.sh
#!/bin/sh
###############################################################################
#
# install-full-node.sh
#
# This is the earn.com install script for Bitcoin full node based on Bitcoin Core.
#
# This script attempts to make your node automatically reachable by other nodes
# in the network. This is done by using uPnP to open port 8333 on your router
@musichook
musichook / install_bitcoin.sh
Last active Jul 12, 2019 — forked from hunanboy/install_bitcoin.sh
Install Bitcoin Node (CentOS 7)
View install_bitcoin.sh
#!/bin/bash
# WARNING: 1G size ram won't work! Bitcoin "make" consumes lots of ram. Add swap first: https://www.digitalocean.com/community/tutorials/how-to-add-swap-on-centos-7
# Adapted from: https://www.ndchost.com/wiki/how-to-install-bitcoin-on-centos-7
BITCOIN_TAG="v0.18.0"
# Install the EPEL repository
sudo yum install -y epel-release
@musichook
musichook / gulp.evironments.example
Created Jul 12, 2018
Using environments with Gulp example
View gulp.evironments.example
var gulp = require('gulp');
var _if = require('gulp-if');
// опущу подключение остальных плагинов
var production = process.env.NODE_ENV === 'production';
gulp.task('less', function () {
gulp.src('src/less/**/*.less')
.pipe(plumber()) // не даем ошибкам всплывать
.pipe(_if(!production, sourcemaps.init())) // для сорсмепов в дев-режиме
@musichook
musichook / avahi+netatalk.sh
Last active Jun 9, 2018
Install Time Machine service on CentOS 7
View avahi+netatalk.sh
# Install Time Machine service on CentOS 7
# Updated for netatalk 3.1.10
# install required packages for compiling from source
yum install -y rpm-build gcc make wget
# install Perl-IO-socket dependency for netatalk 3.1.10
yum install -y perl-IO-Socket-INET6
# install netatalk