Skip to content

Instantly share code, notes, and snippets.


Twaambo Haamucenje twmbx

View GitHub Profile
View ussd_app.php
// set up db connection
$TenantTransactionId = $_GET["TransactionType"];
$ApplicationID = $_GET["ApplicationID"];
$USSD_string = $_GET["USSD_string"];
enricofoltran / main.go
Last active Sep 25, 2022
A simple golang web server with basic logging, tracing, health check, graceful shutdown and zero dependencies
View main.go
package main
import (
karllhughes / compose.yml
Last active Apr 8, 2021
laravel php docker compose file
View compose.yml
version: "2"
image: karllhughes/php-fpm-mysql:latest
restart: always
- database
- redis
bekarice / filter-wc-orders-by-gateway.php
Last active Apr 2, 2022
Filters WooCommerce Orders by Payment Gateway Used
View filter-wc-orders-by-gateway.php
* Plugin Name: Filter WooCommerce Orders by Payment Method
* Plugin URI:
* Description: Filters WooCommerce orders by the payment method used :)
* Author: SkyVerge
* Author URI:
* Version: 1.0.0
* Text Domain: wc-filter-orders-by-payment
View ussdAppSample.php
$ussdRequest = json_decode(@file_get_contents('php://input'));
$ussdResponse = new stdclass;
if ($ussdRequest != NULL)
switch ($ussdRequest->Type) {
case 'Initiation':
$ussdResponse->Message =
View ussd-app.php
$ussdRequest = json_decode(@file_get_contents('php://input'));
if($ussdRequest != NULL);
$ussdResponse = new stdClass;
case "Initiation":
electerious / Caddyfile
Created Aug 20, 2016
Most complete list of mime types in the correct format for the Caddy mime directive
View Caddyfile
mime {
.atom application/atom+xml
.json application/json
.map application/json
.topojson application/json
.jsonld application/ld+json
.rss application/rss+xml
.geojson application/vnd.geo+json
.rdf application/xml
.xml application/xml
abel-masila / index.php
Created Jul 13, 2016
A simple USSD registration application written in PHP
View index.php
/* Simple sample USSD registration application
* USSD gateway that is being used is Africa's Talking USSD gateway
// Print the response as plain text so that the gateway can read it
header('Content-type: text/plain');
/* local db configuration */
$dsn = 'mysql:dbname=dbname;host=;'; //database name
andrejIka /
Created Jun 10, 2016 — forked from matula/
Awesome PHP stuff in one Gist
matula /
Last active Jul 14, 2022
Awesome PHP stuff in one Gist