Skip to content

Instantly share code, notes, and snippets.

View thukuwanjiku's full-sized avatar
👓
Focusing

thukuwanjiku thukuwanjiku

👓
Focusing
  • Kenya
View GitHub Profile
@thukuwanjiku
thukuwanjiku / http-vhosts.conf
Last active December 22, 2021 07:18
Xampp host file for local usb printing setup (C:\xampp\apache\conf\extra)
# Virtual Hosts
#
# Required modules: mod_log_config
# If you want to maintain multiple domains/hostnames on your
# machine you can setup VirtualHost containers for them. Most configurations
# use only name-based virtual hosts so the server doesn't need to worry about
# IP addresses. This is indicated by the asterisks in the directives below.
#
# Please see the documentation at
@thukuwanjiku
thukuwanjiku / .htaccess-sample
Created August 28, 2021 06:42
Additions to .htaccess in cpal for https redirection
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
using LG_API.Models;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;
order_ref: 2
grand_total: 150
discount: 0
amount_payable: 150
payment_methods_string: Cash
amount_given: 150
amount_to_pay: 150
balance_name: Change
balance: 0.00
pos_user: John Doe
collections[]: Cash
collections[]: Mpesa
collections[]: Credit Card
collections[]: Cheque
collections[]: Bank Transfer
collections[]: Voucher
collections[]: Customer Account
collections[]: Loyalty Points
collections[]: Credit
collections[]: Paybill
@thukuwanjiku
thukuwanjiku / 00-default.conf
Last active September 24, 2020 15:13
Default config file for Laragon located ~/laragon/etc/apache2/sites-enabled/
#
# Virtual Hosts
#
# If you want to maintain multiple domains/hostnames on your
# machine you can setup VirtualHost containers for them. Most configurations
# use only name-based virtual hosts so the server doesn't need to worry about
# IP addresses. This is indicated by the asterisks in the directives below.
#
# Please see the documentation at
# <URL:http://httpd.apache.org/docs/trunk/vhosts/>