Skip to content

Instantly share code, notes, and snippets.

View jgadjetx's full-sized avatar
:octocat:
Gasping for air.

Phumudzo Muvhango jgadjetx

:octocat:
Gasping for air.
  • South Africa
  • 22:20 (UTC +02:00)
  • X @heyphumu
View GitHub Profile
@jgadjetx
jgadjetx / mqttMacOS.txt
Last active May 30, 2023 09:07
MQTT MacOS setup
# Mosquitto MQTT Broker Configuration
# Name of the configuration file
#pid_file /var/run/mosquitto/mosquitto.pid
# Select the log destination. "stderr" means errors will be sent to stderr and "syslog" means messages will be sent to the system logger.
log_dest stdout
# Choose the log types that are enabled.
# Possible types are: debug, error, warning, notice, information, subscribe, unsubscribe, websockets, all, none.
return FlutterMap(
options: MapOptions(
maxZoom: 2,
minZoom: -3,
crs: CrsSimple(),
center: LatLng(0,0),
interactiveFlags: InteractiveFlag.pinchZoom | InteractiveFlag.drag,
enableMultiFingerGestureRace: false,
zoom: -3,
onTap: (tapPosition, latlong) async {
@jgadjetx
jgadjetx / getMeters.sql
Last active April 14, 2020 11:44
getMeters SQL Procedure
CREATE DEFINER=`root`@`localhost` PROCEDURE `getMeters`(IN `count` INT(10), IN `page` INT(10), IN `meterNum` VARCHAR(255), IN `routebookID` VARCHAR(255))
BEGIN
DECLARE offsetVar INT DEFAULT 0;
SET offsetVar = (page - 1) * count;
SELECT DISTINCT(ADDRESS.ADDRESSID),
METER.METERNUMBER,
METER_MASTER.UNITNUMBER,
ADDRESS.ADDRESSID,
---- STORAGE ----
//Require Auth
service firebase.storage {
match /b/{bucket}/o {
match /{allPaths=**} {
allow read, write: if request.auth != null;
}
}