This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "Version": "2012-10-17", | |
| "Statement": [ | |
| { | |
| "Sid": "AllowAllUsersToListAccounts", | |
| "Effect": "Allow", | |
| "Action": [ | |
| "iam:ListAccountAliases", | |
| "iam:ListUsers", | |
| "iam:GetAccountPasswordPolicy", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| if [ $# -eq 0 ]; then | |
| echo "Usage: ./pushover <message> [title]" | |
| exit | |
| fi | |
| MESSAGE=$1 | |
| TITLE=$2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); | |
| // IMPORTANT - Replace the following line with your path to the escpos-php autoload script | |
| require_once __DIR__ . '\..\..\autoload.php'; | |
| use Mike42\Escpos\PrintConnectors\NetworkPrintConnector; | |
| use Mike42\Escpos\PrintConnectors\FilePrintConnector; | |
| use Mike42\Escpos\Printer; | |
| class ReceiptPrint { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function urlencode(str) | |
| if (str) then | |
| str = string.gsub (str, "\n", "\r\n") | |
| str = string.gsub (str, "([^%w ])", | |
| function (c) return string.format ("%%%02X", string.byte(c)) end) | |
| str = string.gsub (str, " ", "+") | |
| end | |
| return str | |
| end |
NewerOlder