Skip to content

Instantly share code, notes, and snippets.

cat network251.txt | grep Cisco | awk '{print " ""\x27"tolower($2)"\x27"":""\n"" - "tolower($2)"_pillar\n"" - saltmine"}'
cat network251.txt | grep Cisco | awk '{print "sudo systemctl start salt-proxy@"tolower($2)}'
grep -vE "Minion" fix.txt | sed -e 's/://g' | xargs -L 1 sudo salt-key -y -d
grep -vE "Minion" fix.txt | sed -e 's/://g' | xargs -L 1 -i sudo systemctl start salt-proxy@{}
sudo systemctl start salt-proxy@db-dmz_sw01
sudo systemctl start salt-proxy@db-dmz_sw02
<!doctype html>
<HTML lang="zh_tw">
<HEAD>
<TITLE>PChome 線上購物 -- 郵遞區號</TITLE>
<meta charset="utf-8">
</HEAD>
<BODY bgColor=#ffffff>
<TABLE border=1 cellSpacing=0 cellPadding=0 width=700>
<TBODY>
<TR>
\ SORRY /
\ /
\ This page does /
] not exist yet. [ ,'|
] [ / |
]___ ___[ ,' |
] ]\ /[ [ |: |
] ] \ / [ [ |: |
] ] ] [ [ [ |: |
==========================================================
Separate redis container and use bridge network
==========================================================
mobex@docker-host2:~$ wrk -c 150 -d 30s -t 10 -H "Host: abc.web.com" http://10.7.7.7:8080/index.html
Running 30s test @ http://10.7.7.7:8080/index.html
10 threads and 150 connections
Thread Stats Avg Stdev Max +/- Stdev
Latency 28.97ms 8.87ms 69.72ms 83.87%
Req/Sec 520.08 116.69 757.00 78.00%
155390 requests in 30.02s, 92.02MB read
@broxio
broxio / synology ds916+ speed test.
Created July 21, 2017 03:36
synology ds916+ speed test. with WD Red Pro.
admin@NAS02:/$ sudo sync; sudo dd if=/dev/zero of=tempfile bs=1M count=1024; sudo sync
1024+0 records in
1024+0 records out
1073741824 bytes (1.1 GB) copied, 7.27588 s, 148 MB/s
admin@NAS02:/$ sudo dd if=tempfile of=/dev/null bs=1M count=1024
1024+0 records in
1024+0 records out
1073741824 bytes (1.1 GB) copied, 0.710544 s, 1.5 GB/s
pi@raspberrypi:~ $ sudo ppstest /dev/pps0
trying PPS source "/dev/pps0"
found PPS source "/dev/pps0"
ok, found 1 source(s), now start fetching data...
source 0 - assert 1500825589.100224786, sequence: 130320 - clear 1500825590.000222440, sequence: 130320
source 0 - assert 1500825590.100208640, sequence: 130321 - clear 1500825590.000222440, sequence: 130320
source 0 - assert 1500825590.100208640, sequence: 130321 - clear 1500825591.000199924, sequence: 130321
source 0 - assert 1500825591.100199518, sequence: 130322 - clear 1500825591.000199924, sequence: 130321
source 0 - assert 1500825591.100199518, sequence: 130322 - clear 1500825592.000198959, sequence: 130322
source 0 - assert 1500825592.100204396, sequence: 130323 - clear 1500825592.000198959, sequence: 130322
root@MADNAS:~# ls -al /
total 1048644
drwxr-xr-x 23 root root 4096 Jul 26 05:59 .
drwxr-xr-x 23 root root 4096 Jul 26 05:59 ..
lrwxrwxrwx 1 root root 7 Jul 15 00:24 bin -> usr/bin
drwxr-xr-x 6 root root 0 Jul 26 06:00 config
drwxr-xr-x 14 root root 19020 Jul 26 06:00 dev
drwxr-xr-x 45 root root 4096 Jul 27 06:26 etc
drwxr-xr-x 42 root root 4096 Jul 19 22:19 etc.defaults
drwxr-xr-x 2 root root 4096 Jul 13 06:50 initrd
object Host "mb2web01" {
address = "10.2.2.11"
check_command = "hostalive"
}
object Service "ping4" {
host_name = "mb2web01"
check_command = "ping4"
}
/ # icinga2 feature list
Disabled features: api compatlog debuglog gelf graphite ido-pgsql influxdb livestatus mainlog notification opentsdb perfdata statusdata syslog
Enabled features: checker command ido-mysql