Skip to content

Instantly share code, notes, and snippets.

View matovu-ronald's full-sized avatar

Matovu Ronald matovu-ronald

View GitHub Profile
We can make this file beautiful and searchable if this error is corrected: It looks like row 5 should actually have 29 columns, instead of 13. in line 4.
region,village,district,source_name,lab_identifier_code,source_type,easting,northing,latitude,longitude,ecoli,ph,electrical_conductivity,turbidity,color_apparent,total_dissolved_salts,total_alkalinity,bi_carbonates,total_hardness,calcium_hardness,magnesium_hardness,flouride,chloride,sulphate,nitrites,nitrates_n,ammonium_n,phosphates_p,water_quality
Eastern,Bugembe,Jinja,Kilikwani tap,E23/00103,Tap,526362,51478,0.465733503,33.23691573,0,6.9,103,2.34,22,0,43,0,33,18,0,0.26236,0,4.10009,0.01509,0.3225,0.16075,0.03779,not admissible
Eastern,Masese,Jinja,Ndiba Roseline tap,E23/00104,Tap,526349,49702,0.449665627,33.23679838,0,6.7,111,2.23,20,0,48,0,35,19,0,0.22605,0,3.72661,0.00318,2.49162,0.002,0.09726,not admissible
Eastern,Masese,Jinja,Ndiba Roseline tap,E23/00104,Tap,526921,48543,0.449665627,33.23679838,0,6.8,101,2.92,15,0,41,0,27,19,0,0.25573,0,4.27461,0.0076,0.51466,0.03963,0.05778,not admissible
Eastern,Rubaga hill,Jinja,Jinja college Borehole,E23/00109,Bore Hole,523658,49584,0.448598801,33.21261446,0,6.6,64
[
{
"region": "Eastern",
"village": "Bugembe",
"district": "Jinja",
"source_name": "Kilikwani tap",
"lab_identifier_code": "E23/00103",
"source_type": "Tap",
"easting": 526362,
"northing": 51478,
@matovu-ronald
matovu-ronald / gist:1fe50bcbc7b4ee5f37ed8d3c2cc01a0a
Created June 3, 2022 15:48
Filament PHP Two Section Form Snippet
return $form
->schema([
Forms\Components\Group::make()
->schema([
// Enter form fields/cards here
Forms\Components\Card::make()
->schema([
// Enter form fields here
Forms\Components\TextInput::make('number')
@matovu-ronald
matovu-ronald / .htaccess
Created July 31, 2020 14:49
Stack cpanel .htaccess file for laravel application
<IfModule mod_rewrite.c>
RewriteEngine On
# Fake 404 for all files in /
RewriteCond %{REQUEST_FILENAME} -f
RewriteRule ^/?[^/]+$ - [R=404,L]
# Protect rewrite loop: exclude /public
RewriteCond %{REQUEST_URI} !^/?public(/.*)?$
RewriteRule ^(.*)$ /public/$1 [L]
module.exports = ({ env }) => {
if(env('NODE_ENV') === 'production'){
return {
defaultConnection: 'default',
connections: {
default: {
connector: 'bookshelf',
settings: {
client: 'postgres',
ssh root@your_server_ip
  > yes

Add repositories

add-apt-repository -y ppa:nginx/development
add-apt-repository -y ppa:ondrej/php
add-apt-repository -y ppa:certbot/certbot
@matovu-ronald
matovu-ronald / httpd-ssl.conf
Created December 12, 2019 13:52
httpd-ssl.conf for apache ssl configuration for VM Xampp
#
# This is the Apache server configuration file providing SSL support.
# It contains the configuration directives to instruct the server how to
# serve pages over an https connection. For detailed information about these
# directives see <URL:http://httpd.apache.org/docs/trunk/mod/mod_ssl.html>
#
# Do NOT simply read the instructions in here without understanding
# what they do. They're here only as hints or reminders. If you are unsure
# consult the online docs. You have been warned.
#