Skip to content

Instantly share code, notes, and snippets.

View wagura-maurice's full-sized avatar
🏠
Working from home

Maurice Wagura wagura-maurice

🏠
Working from home
View GitHub Profile
#!/bin/sh
git filter-branch --env-filter '
CORRECT_NAME="Wagura Maurice"
CORRECT_EMAIL="business@waguramaurice.com"
if [ "$GIT_COMMITTER_EMAIL" != "$CORRECT_EMAIL" ]
then
export GIT_COMMITTER_NAME="$CORRECT_NAME"
[
{
"id": 1,
"pid": "0001",
"name": "door to door",
"description": null,
"deleted_at": null,
"created_at": "2022-05-12T15:06:38.000000Z",
"updated_at": null
},
eval "$(ssh-agent -s)"
ssh-add ~/.ssh/id_rsa
chmod 700 ~/.ssh
chmod 644 ~/.ssh/authorized_keys
chmod 644 ~/.ssh/known_hosts
chmod 644 ~/.ssh/config
chmod 600 ~/.ssh/id_rsa
chmod 644 ~/.ssh/id_rsa.pub
@wagura-maurice
wagura-maurice / phpenv-install.sh
Last active December 9, 2021 11:33
phpenv install shell
#!/usr/bin/env bash
# vim: ai ts=2 sw=2 et sts=2 ft=sh
# Check OS.
# if [[ ! "${OSTYPE}" =~ "^linux" ]] || [[ ! "$(lsb_release -c 2>/dev/null)" =~ "xenial" ]]; then
# (>&2 echo "Error: This script is for Ubuntu 16.04 LTS (xenial) not '${OSTYPE}'.")
# exit 1;
# fi
sudo apt-get update
@wagura-maurice
wagura-maurice / AnyConnect.md5
Created July 2, 2021 10:21
How to Install Cisco VPN AnyConnect Client in Linux, Ubuntu
sudo apt-get istall libpangox-1.0.0 libcanberra-gtk-module -y
https://vpn.nic.in/resources/software/anyconnect-linux64-4.10.01075-k9.tar.gz
sudo ./vpn_install.sh
@wagura-maurice
wagura-maurice / duty_payable.php
Last active July 20, 2021 01:50
estimation of motor vehicle importation costs (including, importation duty payable) in Kenya.
<?php
/**
* A simple PHP function that calculates an estimation cost for car importation into kenya.
*
* @param int $cif This is the customs value of the vehicle i.e. the Cost, Insurance & Freight paid for the vehicle.
* @param int $clearance This is the clearing Agent's sum fee together with some other port handling charges.
* @param int $import_duty This is 25% of the CIF value of the vehicle.
* @param int $excise_duty This is 20% of the (CIF value + Import Duty).
* @param int $vat This is 16% of the (CIF value + Import Duty + Excise Duty).
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQC9h81rG/s+3hJ3nTEpxE78O+MFs1NtPfU+pn4/ZX9hs9PxoLkUrKmnLSqzNBlK1FKL3fz1dgL1WTh21rVb7qEmnh/7kBaiAObl/s4+M7BxZwwwIxj35LZOKoyAozcjdURpnblB8g7aUJ4Yayn466isFECo9BxDSfV07OOKOxbGC5GFgnkxU//XowGXgHzgJ3k76JBPFNV+gDQRa3As6XMqApn2aNAGs0wEwhxJa4FX0sEVcvZ84HUfjI7vDx6OueD5r8qgVsectHzNVAutUAQXOUfiahgOPKwlopqXGyvAfW2lirI1j9SPqBJquWelhODgG2WKTFE8AZGpXLhofEYtUSTgL/b8gca3xlZ+cfiqWMn0283oYoLBxNotsdGg4fY20EZBA0WmiyeTzYFo1RVCPpNxjJ7jUm+UQZ9wNaQsKxS0q1emG4lHusz26KKUjgCaoTgjrCBk2fwBsFkGKgvTDaiHelMgM7y5jSlspX1r45kZb5tfdxTDTBbQaOZDD5osjNXRlfcwXMP0WqRM69YOe+8Kv6YqQu+L3uv3y6eT9vGR3cv7LbTNEg2uKV3kgLT528fd9FT8fVpBFbmyeDoqQ2VJaOTkNFe7y4BY7o/v0XEFSomUXjYOKnavFdxHwXI2gA/ke2hmQYj3qvhBPdiIYujwB0FW/JTPdqnV0DACkw== business@waguramaurice.com
<?php
namespace App\Console\Commands;
use App\Sms;
use App\Traits\AT;
use Illuminate\Console\Command;
class SmsCron extends Command
{