Skip to content

Instantly share code, notes, and snippets.

@kangaroodev
kangaroodev / deploy.yaml
Created February 6, 2021 19:20 — forked from jonnitto/deploy.yaml
Deployment with Github Actions
name: CI-CD
on:
push:
branches:
- production
jobs:
deploy:
name: Deploy to Production
@kangaroodev
kangaroodev / main.yml
Created February 6, 2021 19:18 — forked from shanerbaner82/main.yml
Laravel Github Actions YAML
name: APP NAME
on:
pull_request:
branches: [ branches ]
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_URL }}
jobs:
tests:
runs-on: ubuntu-latest
name: Tests
@kangaroodev
kangaroodev / ci.yml
Created February 6, 2021 19:15 — forked from hhamon/ci.yml
Github Actions PHP CI
name: '[PROJECT NAME]'
'on':
push:
branches:
- master
- develop
- 'releases/**'
pull_request: null
env:
working_directory: ./application
@kangaroodev
kangaroodev / pos_setup.txt
Last active June 28, 2017 15:55
POS component setup
1) Go to Rules, scroll to the bottom and click on POS Setup to download a zip file.
2) Right click on KngPOSSettings.bat to run it as administrator, say yes
3) It will automatically create a folder in C:\kangaroopos and a shortcut on desktop
4) Go to desktop, right click on the shortcut, run it as administrator, say yes
5) Login as clerk on the tablet
6) Login with the same clerk credential on the pos component
7) Enter the tablet serial number
@kangaroodev
kangaroodev / gist:ae13feeabd7bc9549c4634391cfc3b65
Created November 14, 2016 20:47
Merchantos PrintTemplates
{#https://github.com/merchantos/PrintTemplates/tree/master/receipt#}
{#
***Begin Custom Options***
Toggle any of the options in this section between 'false' and 'true' in order to enable/disable them in the template
#}
{# Layout Adjustments #}
{% set print_layout = parameters.print_layout == "true" ? true : false %} {# Improves receipt layout for large display/paper size (A4/Letter/Email) #}
{% set chrome_right_margin_fix = false %} {# Fixes a potential issue where the right side of receipts are cut off in Chrome #}
@kangaroodev
kangaroodev / callback.php
Last active October 15, 2016 21:38
Callback sample code
<?php
require_once 'vendor/autoload.php';
session_start();
date_default_timezone_set('UTC');
const CLIENT_ID = {Client ID};
const CLIENT_SECRET = {Client Secret};
const REDIRECT_URI_MAIN = 'http://example.com/index.php';
const REDIRECT_URI_OAUTH = 'http://example.comp/callback.php';