private-git-server public repository public_html / 95a1b15
Update contents Shakiba Moshiri 10 months ago
3 changed file(s) with 19 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
1414
1515 <?php echo file_get_contents( "src/html/footer.html" ); ?>
1616 </main>
17 <script type="application/javascript" src="/vendor/js/prism-5.js"></script>
17 <script type="application/javascript" src="/vendor/js/prism.js"></script>
1818 </body>
1919 </html>
2020
55 <meta name="viewport" content="width=device-width, initial-scale=1.0">
66
77 <link rel="stylesheet" type="text/css" href="/build/css/desktop.css" />
8 <link rel="stylesheet" type="text/css" href="/vendor/css/prism-5.css" />
8 <link rel="stylesheet" type="text/css" href="/vendor/css/prism.css" />
99 <!--
1010 <link rel="apple-touch-icon" sizes="57x57" href="./favicon/apple-icon-57x57.png">
1111 <link rel="apple-touch-icon" sizes="60x60" href="./favicon/apple-icon-60x60.png">
1515 <h3 class="sub-title">Phone based monitoring</h3>
1616 <p>If we like to receive a kind of notification on our phone, we can setup Text Message Notification.</p>
1717 <p>This is an asynchronous notification that unlike emailing we do not have to check our email periodically.</p>
18 <p>For example using ndoe.js, or bash API like so:</p>
19 <pre><code class="language-bash">#!/bin/bash
20
21 # Get the API KEY from your xxxxxxxxx.com account
22 readonly API_KEY='our-api-key';
23
24 to="$1"
25 from="$2"
26 text="$3"
27
28 echo "$(date) ${text} ${from} $to" &amp;&gt;&gt; /tmp/sms.log
29
30 curl -X POST "http://api.xxxxxxxxx.com/v2/sms/send/simple" \
31 -H "apikey: ${API_KEY}" \
32 -H 'cache-control: no-cache' \
33 -H 'content-type: application/x-www-form-urlencoded' \
34 -d "message=${text}&amp;linenumber=${from}&amp;receptor=${to}" &amp;&gt;&gt; /tmp/sms.log</code></pre>
1835
1936
2037 <h3 class="sub-title">SSH based monitoring</h3>