To install tcptraceroute on Debian/Ubuntu:
$ sudo apt-get install tcptraceroute bc
To install tcptraceroute on CentOS/REHL, first set up RepoForge on your system, and then:
$ sudo yum install tcptraceroute bc
sudo zypper install git zsh; | |
chsh -s /usr/bin/zsh; | |
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"; | |
nano ~/.zshrc; # set ZSH_THEME="lambda"; | |
sudo rpm -v --import https://download.sublimetext.com/sublimehq-rpm-pub.gpg ; | |
sudo zypper addrepo -g -f https://download.sublimetext.com/rpm/stable/x86_64/sublime-text.repo ; | |
sudo zypper addrepo https://repo.skype.com/rpm/stable/skype-stable.repo ; | |
sudo zypper ar https://repo.vivaldi.com/archive/vivaldi-suse.repo | |
sudo rpm --import https://packages.microsoft.com/keys/microsoft.asc ; |
mixed-port: 7890 | |
allow-lan: false | |
log-level: silent | |
dns: | |
enable: true | |
ipv6: false | |
listen: 0.0.0.0:12353 | |
default-nameserver: | |
- 114.114.114.114 | |
- 223.5.5.5 |
# | |
# Only can use for local file system synchronisation. | |
# | |
# Usage: | |
# $ ruby joplin_clean_up_resources.rb /path/to/synchronise/directory | |
# | |
path = ARGV[0].chomp("/") | |
resources = `ls #{path}/.resource` | |
resources.split.each do |resource| |
#!/usr/bin/env bash | |
# ======================================================================================= | |
# | |
# A simple script to test Synology NAS disk speed with hdparm, dd and fio. | |
# | |
# How to use: | |
# | |
# 1. Save synology_disk_benchmark.sh and xfio.conf to your Synology NAS | |
# 2. Make it executable: chmod +x synology_disk_benchmark.sh |
#!/bin/bash | |
cd /usr/local/src | |
wget http://developer.axis.com/download/distribution/apps-sys-utils-start-stop-daemon-IR1_9_18-2.tar.gz | |
tar zxvf apps-sys-utils-start-stop-daemon-IR1_9_18-2.tar.gz | |
cd apps/sys-utils/start-stop-daemon-IR1_9_18-2 | |
gcc start-stop-daemon.c -o start-stop-daemon | |
cp start-stop-daemon /usr/sbin/ |
#!/bin/bash | |
that_ip=192.168.31.1 | |
server_ip=10.10.16.27 | |
my_ip=$(ip -f inet address show ens33| grep -oE '[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}/24'| grep -oE '[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}') | |
echo that_ip=$that_ip | |
echo server_ip=$server_ip | |
echo my_ip=$my_ip |
To install tcptraceroute on Debian/Ubuntu:
$ sudo apt-get install tcptraceroute bc
To install tcptraceroute on CentOS/REHL, first set up RepoForge on your system, and then:
$ sudo yum install tcptraceroute bc
#!/bin/bash | |
set -e | |
if [ $# -eq 0 ]; then | |
echo "USAGE: $0 plugin1 plugin2 ..." | |
exit 1 | |
fi | |
plugin_dir=/var/lib/jenkins/plugins |