Skip to content

Instantly share code, notes, and snippets.

View ertush's full-sized avatar
😎
code frenzy ..

eric@mutua ertush

😎
code frenzy ..
View GitHub Profile
@ertush
ertush / Delete account & Data
Created March 15, 2021 15:13
How to delete user data from agrarian
Once logged in naviagte to MyProfile and scroll down to Delete account section, then click the Delete button and you will be prompted to enter your email or username;
after which your account will be deleted together with all the data related to that account.
'My profile > Delete Account'
@ertush
ertush / Question 7
Created February 9, 2021 11:43
Random Number API
package main
import (
"fmt"
"log"
"math/rand"
"net/http"
"time"
)
@ertush
ertush / Question 3
Created February 9, 2021 11:42
.gitlab.ci.yml
stages:
- test
- build
- deploy
test:
stage: test
script: echo "Running tests"
@ertush
ertush / Question 2
Created February 9, 2021 11:39
Live Users API with 2 endpoints
package main
import (
"fmt"
"log"
"net/http"
"regexp"
"strconv"
"strings"
"time"
@ertush
ertush / LICENSE
Created August 22, 2020 19:40
Agrarian Website License
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
@ertush
ertush / Requirements.md
Last active April 26, 2020 10:27
Qualities required for a developer working on Agrarian Project (Software)

Qualities desired from a developer

  • Working Knowledge of version contorl systems like git and gitlab
  • Working knowledge of docker or any other containerization platform e.g kubenertes, openshift, Linux containers
  • Proficient in UI/UX design for both mobile and desktop Apps
  • Working Knowledge of any of the following libraries and frameworks: Angular, Vue, React, Sevelt, hapijs, Nodejs etc
  • Must be proficient in Nodejs as it is our primary backend
  • Working Knowledge of any of the following DBs: Mongo Db, Influx Db, and Redis
  • Added advantage if proficient in Node-Red
  • Must have experience in Mobile App development preferably mobile app PWAs or Android using kotlin.
@ertush
ertush / RELEASE_NOTES.md
Last active April 12, 2020 22:28
ping_scan module release notes

Ping Scan Wiki

About the tool

Ping Scan is a module that allows you to ping a range of addresses at one go and can be used alongside other programs like nmap by through pipe ridirection. It is much faster than nmap when ping a range of IPs or hostnames and offers you extra statistics on the ping results. Below is an example of the output to expect

Name           Value
----           -----

Num_alive_host 30

@ertush
ertush / yz-me-ussd-app.php
Last active April 12, 2020 17:41
Simple ussd app to facilitate cashless payments in a vending machine
<?php
/*
Author: Eric Mutua
*/
// Reads the variables sent via POST
$sessionId = $_POST["sessionId"];
$serviceCode = $_POST["serviceCode"];
$phoneNumber = $_POST["phoneNumber"];
$text = $_POST["text"];