start new:
tmux
start new with session name:
tmux new -s myname
| machine github.com | |
| login technoweenie | |
| password SECRET | |
| machine api.github.com | |
| login technoweenie | |
| password SECRET |
| ############################################################################### | |
| ## Monit control file | |
| ############################################################################### | |
| ## | |
| ## Comments begin with a '#' and extend through the end of the line. Keywords | |
| ## are case insensitive. All path's MUST BE FULLY QUALIFIED, starting with '/'. | |
| ## | |
| ## Below you will find examples of some frequently used statements. For | |
| ## information about the control file, a complete list of statements and | |
| ## options please have a look in the monit manual. |
| curl -v -H "Accept: application/json" -H "Content-type: application/json" -X POST -d '{"userid": "mohit", "password":"password"}' http://mmedwebdemo.ddns.comp.nus.edu.sg:8080/comp.nuhs.jaxb/api/usr/login |
| <?php | |
| $result = array(); | |
| $result_html = ''; | |
| if (isset($_POST['domain']) && !empty($_POST['domain'])) { | |
| $domain_regex = '/[a-z\d][a-z\-\d\.]+[a-z\d]/i'; | |
| if (preg_match($domain_regex, $_POST['domain'])) { | |
| if ($url = parse_url($_POST['domain'])) { //compatible when user post an url instead of a domain | |
| if (isset($url['host'])) { | |
| $result = dns_get_record($url['host'], DNS_A + DNS_AAAA + DNS_CNAME); | |
| } else if (isset($url['path'])) { |
| #!/bin/bash | |
| # heavily inspired by http://fitnr.com/showing-file-download-progress-using-wget.html | |
| URL=<YOUR DOWNLOAD URL> | |
| wget --progress=dot "$URL" 2>&1 |\ | |
| grep "%" |\ | |
| sed -u -e "s,\.,,g" | awk '{print $2}' | sed -u -e "s,\%,,g" | dialog --gauge "Download Test" 10 100 |
| #requires -Version 3.0 | |
| <# | |
| .SYNOPSIS | |
| My Veeam Report is a flexible reporting script for Veeam Backup and | |
| Replication. | |
| .DESCRIPTION | |
| My Veeam Report is a flexible reporting script for Veeam Backup and | |
| Replication. This report can be customized to report on Backup, Replication, |
| # --------------------------------------------------------------------------- | |
| # | |
| # Description: This file holds all my BASH configurations and aliases | |
| # | |
| # Sections: | |
| # 1. Environment Configuration | |
| # 2. Make Terminal Better (remapping defaults and adding functionality) | |
| # 3. File and Folder Management | |
| # 4. Searching | |
| # 5. Process Management |
| --- | |
| - name: Reboot a host and wait for it to return | |
| hosts: somehost | |
| remote_user: root | |
| tasks: | |
| # Send the reboot command | |
| - shell: shutdown -r now | |
| # This pause is mandatory, otherwise the existing control connection gets reused! | |
| - pause: seconds=30 |
/var/lib/lxc/mycontainer/config$HOME/.local/share/lxc/mycontainer/configlxc.mount directive, that follows the format below. Substitute proper paths as necessary:
lxc.mount.entry = /path/to/folder/on/host /path/to/mount/point none bind 0 0