start new:
tmux
start new with session name:
tmux new -s myname
| #!flask/bin/python | |
| from flask import Flask, jsonify, abort, request, make_response, url_for | |
| from flask_httpauth import HTTPBasicAuth | |
| app = Flask(__name__, static_url_path = "") | |
| auth = HTTPBasicAuth() | |
| @auth.get_password | |
| def get_password(username): | |
| if username == 'miguel': |
| #!/bin/bash | |
| # Usage: ./honeywell_settmp.sh [-c|-h|-o] [<temp(F)>|schedule] | |
| # Example: ./honeywell_settmp.sh -h 72 # set HEAT: temp=72F | |
| # ./honeywell_settmp.sh -c schedule # set COOL: follow shceduled temp | |
| # ./honeywell_settmp.sh -o # turn system OFF | |
| ######## Settings ######## | |
| LOGIN="YOUR_MAIL_ADDRESS" | |
| PASSWORD="YOUR_PASSWORD" |
| license: gpl-3.0 |
| #!/bin/sh | |
| # Parse audio track times from an audacity .aup project | |
| # Copyright (C) 2012 William Heinbockel <[email protected]> | |
| # | |
| # This program is free software: you can redistribute it and/or modify | |
| # it under the terms of the GNU General Public License as published by | |
| # the Free Software Foundation, either version 3 of the License, or | |
| # (at your option) any later version. | |
| # |
| Import-Module "PATH_TO_Microsoft.ServiceBus.dll" | |
| #Create the required credentials | |
| $tokenProvider = [Microsoft.ServiceBus.TokenProvider]::CreateSharedSecretTokenProvider("owner", "YOUR_ISSUERSECRET") | |
| $namespaceUri = [Microsoft.ServiceBus.ServiceBusEnvironment]::CreateServiceUri("sb", "YOUR_NAMESPACE", ""); | |
| $namespaceManager = New-Object Microsoft.ServiceBus.NamespaceManager $namespaceUri,$tokenProvider | |
| #Create a queue | |
| $queue = $namespaceManager.CreateQueue("MyPowershellQueue"); |
| ## Configure eth0 | |
| # | |
| # vi /etc/sysconfig/network-scripts/ifcfg-eth0 | |
| DEVICE="eth0" | |
| NM_CONTROLLED="yes" | |
| ONBOOT=yes | |
| HWADDR=A4:BA:DB:37:F1:04 | |
| TYPE=Ethernet | |
| BOOTPROTO=static |