This file contains hidden or 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 | |
# | |
# Author: Marin Atanasov Nikolov <[email protected]> | |
# | |
### BEGIN INIT INFO | |
# Provides: ksm | |
# Required-Start: | |
# Required-Stop: | |
# X-Start-Before: | |
# Default-Start: 2 3 4 5 |
This file contains hidden or 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
|------------------------------------------------------------------------------------------| | |
| WinMTR statistics | | |
| Host - % | Sent | Recv | Best | Avrg | Wrst | Last | | |
|------------------------------------------------|------|------|------|------|------|------| | |
| 192.168.1.1 - 0 | 88 | 88 | 2 | 4 | 15 | 6 | | |
| host-92-14-96-1.as43234.net - 0 | 88 | 88 | 23 | 25 | 40 | 25 | | |
| host-78-151-225-117.static.as13285.net - 0 | 88 | 88 | 24 | 26 | 35 | 25 | | |
| host-78-151-229-28.as13285.net - 0 | 88 | 88 | 23 | 28 | 127 | 26 | | |
| host-78-144-8-178.as13285.net - 0 | 88 | 88 | 24 | 26 | 45 | 26 | | |
| host-78-144-9-35.as13285.net - 4 | 76 | 73 | 0 | 33 | 52 | 34 | |
This file contains hidden or 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
Start: Tue May 9 20:14:38 2017 | |
HOST: loy Loss% Snt Last Avg Best Wrst StDev | |
1.|-- 37.139.24.254 0.0% 10 4.1 1.4 0.4 4.6 1.5 | |
2.|-- 138.197.250.28 0.0% 10 0.6 3.1 0.3 24.7 7.6 | |
3.|-- 138.197.250.8 0.0% 10 0.8 2.0 0.4 12.7 3.7 | |
4.|-- ae1-scr010.ams.as13285.net 0.0% 10 0.5 0.7 0.4 2.1 0.3 | |
5.|-- host-78-144-11-164.as13285.net 0.0% 10 6.0 6.9 6.0 11.2 1.5 | |
6.|-- host-78-144-9-38.as13285.net 0.0% 10 11.4 15.1 11.3 46.8 11.1 | |
7.|-- host-78-151-229-205.as13285.net 0.0% 10 12.3 12.0 11.7 13.2 0.0 | |
8.|-- host-62-24-215-129.as13285.net 0.0% 10 13.4 13.6 13.3 14.3 0.0 |
This file contains hidden or 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
[ 3360.470] | |
X.Org X Server 1.19.3 | |
Release Date: 2017-03-15 | |
[ 3360.471] X Protocol Version 11, Revision 0 | |
[ 3360.472] Build Operating System: Linux 4.9.11-1-ARCH x86_64 | |
[ 3360.474] Current Operating System: Linux archlinux-corsair 4.8.11-1-ARCH #1 SMP PREEMPT Sun Nov 27 09:26:14 CET 2016 x86_64 | |
[ 3360.474] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-linux root=UUID=6a6fe4ff-07eb-434a-aadf-8a8f82a11976 rw quiet | |
[ 3360.476] Build Date: 07 April 2017 05:42:48PM | |
[ 3360.477] | |
[ 3360.510] Current version of pixman: 0.34.0 |
This file contains hidden or 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
--- | |
provisioned_users: | |
- | |
name: user-one | |
encrypted_password: $1$@YMgS-5Y$2lH.vkVmawJ810djjkGp70 | |
public_keys: | |
- /home/$USER/.ssh/id_rsa.pub | |
sudo: true | |
adm: true | |
- |
This file contains hidden or 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
provisioned_users: | |
- {name: user-one, encrypted_password: $1$@YMgS-5Y$2lH.vkVmawJ810djjkGp70, public_keys: [/home/$USER/.ssh/id_rsa.pub], sudo: true, adm: true} | |
- {name: user-two, encrypted_password: $1$@YMgS-5Y$2lH.vkVmawJ810djjkGp70, public_keys: [/home/$USER/.ssh/id_rsa.pub, /home/$USER/.ssh/id_rsa.pub], sudo: true, adm: true} | |
- {name: user-three, encrypted_password: $1$@YMgS-5Y$2lH.vkVmawJ810djjkGp70, public_keys: [/home/$USER/.ssh/id_rsa.pub, /home/$USER/.ssh/id_rsa.pub, /home/$USER/.ssh/id_rsa.pub], sudo: false, adm: false} | |
- {name: user-four, encrypted_password: $1$@YMgS-5Y$2lH.vkVmawJ810djjkGp70, public_keys: [/home/$USER/.ssh/id_rsa.pub, /home/$USER/.ssh/id_rsa.pub, /home/$USER/.ssh/id_rsa.pub, /home/$USER/.ssh/id_rsa.pub], sudo: false, adm: false} |
This file contains hidden or 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
--- | |
provisioned_users: | |
- name: user-one | |
encrypted_password: $1$@YMgS-5Y$2lH.vkVmawJ810djjkGp70 | |
public_keys: | |
- /home/$USER/.ssh/id_rsa.pub | |
sudo: true | |
adm: true | |
This file contains hidden or 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
#! /usr/bin/env bash | |
# Initial | |
DROPLET_OS=`lsb_release -a | tail -n 3 | sed -n '1p' | awk '{$1=""; print substr($0,2)}'` | |
DROPLET_LOCAL_TIME=`timedatectl | sed -n '1p' | awk '{$1=""; print substr($0,8)}'` | |
DROPLET_TIMEZONE=`timedatectl | sed -n '4p' | awk '{$1=""; print substr($0,8)}'` | |
# Basic info | |
DROPLET_HOSTNAME=`uname -n` | |
DROPLET_IP=`wget -qO - ifconfig.co` |
This file contains hidden or 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
--- | |
- name: run the playbook tasks on the localhost | |
hosts: localhost | |
become: yes | |
tasks: | |
- name: print out the hostname of target | |
command: hostname | |
This file contains hidden or 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
[local] | |
localhost ansible_connection=local |