I hereby claim:
- I am risdenk on github.
- I am risdenk (https://keybase.io/risdenk) on keybase.
- I have a public key whose fingerprint is 8AFC 9BA4 561C 7050 CA53 5247 12D5 1C2D E72B 5D09
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
wget -qO test.sh \
https://gist.githubusercontent.com/risdenk/bd2c48dea8a5c60d2b7746d8b96c7ac2/raw/a2d62088e35cfed4536132e77d6a47821195e831/test.sh \
&& chmod +x test.sh \
&& ./test.sh
/* | |
* Licensed to the Apache Software Foundation (ASF) under one or more | |
* contributor license agreements. See the NOTICE file distributed with | |
* this work for additional information regarding copyright ownership. | |
* The ASF licenses this file to You under the Apache License, Version 2.0 | |
* (the "License"); you may not use this file except in compliance with | |
* the License. You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* |
license: gpl-3.0 |
#change the hardstatus settings to give an window list at the bottom of the | |
#screen, with the time and date and with the current window highlighted | |
hardstatus alwayslastline | |
hardstatus string '%{= kG}[ %{G}%H %{g}][%= %{= kw}%?%-Lw%?%{r}(%{W}%n*%f%t%?(%u)%?%{r})%{w}%?%+Lw%?%?%= %{g}][%{B} %m-%d %{W}%c %{g}]' |
/** | |
* Licensed to the Apache Software Foundation (ASF) under one | |
* or more contributor license agreements. See the NOTICE file | |
* distributed with this work for additional information | |
* regarding copyright ownership. The ASF licenses this file | |
* to you under the Apache License, Version 2.0 (the | |
* "License"); you may not use this file except in compliance | |
* with the License. You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 |
<?xml version="1.0" encoding="UTF-8"?> | |
<!-- | |
Licensed to the Apache Software Foundation (ASF) under one or more | |
contributor license agreements. See the NOTICE file distributed with | |
this work for additional information regarding copyright ownership. | |
The ASF licenses this file to You under the Apache License, Version 2.0 | |
(the "License"); you may not use this file except in compliance with | |
the License. You may obtain a copy of the License at | |
http://www.apache.org/licenses/LICENSE-2.0 |
BEGIN MESSAGE. | |
3192zbjgLMA4oiK 8Zh6qVJjBn7smgs cdz0fSyeNS0NN0I ogJyxL3fuCyoSBz | |
3B87ns59sAjkUvo xdwQyATe96VTCKq 6Xr2MZHgg4h81bp LTGwnDUGwsCL2bf | |
7unqGRS0ENzy6ek ceWua0myhYg9cW7 rN8qcrH0McdzAHM b0JlRS6PFL32pWC | |
x9QGV5Pxh4oA997 onF5So4TcDVzf2b A44xe2IP. | |
END MESSAGE. |
/** | |
* MIT License | |
* | |
* Copyright (c) 2018 Chris Passarello <www.insecurity.co> | |
* | |
* Permission is hereby granted, free of charge, to any person obtaining a copy | |
* of this software and associated documentation files (the "Software"), to deal | |
* in the Software without restriction, including without limitation the rights | |
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
* copies of the Software, and to permit persons to whom the Software is |
ssh root@192.168.1.1 "grep -F 'ubios-udapi-server: ubios-udapi-server: wanFailover: eth8 is' /var/log/messages* | cut -d':' -f 2- | sort | tail" 2>/dev/null
example output:
Jun 14 20:08:19 UDM-Pro user.info ubios-udapi-server: ubios-udapi-server: wanFailover: eth8 is down: {"alarm":true,"dns_alarm":0,"id":"eth8","lat_avg":14933,"loss_pct":21.052600860595703,"std_dev":1399,"type":"wanFailover"}
Jun 14 20:08:19 UDM-Pro user.info ubios-udapi-server: ubios-udapi-server: wanFailover: no change (eth8: down, eth9: down+off)