Skip to content

Instantly share code, notes, and snippets.

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

Canis Majoris wagura-maurice

🏠
Working from home
View GitHub Profile
@wagura-maurice
wagura-maurice / recaptcha-v3.md
Created August 29, 2025 01:46 — forked from geosem42/recaptcha-v3.md
Integrating Google ReCaptcha v3 in Laravel Jetstream with Inertia

This gist will guide you through the process of integrating Google ReCaptcha v3 into a Laravel Jetstream w/ Inertia application.

API Keys and Configuration

First, obtain your ReCaptcha v3 API keys from the Google ReCaptcha Admin Console. Add these keys to your .env file:

RECAPTCHA_SITE_KEY=your_site_key_here
RECAPTCHA_SECRET_KEY=your_secret_key_here

Next, update your config/services.php file to include the ReCaptcha configuration. This configuration allows us to access our ReCaptcha keys throughout the application using Laravel's config helper. It keeps our sensitive keys secure by referencing environment variables.

mkdir -p /etc/apt/keyrings
wget -O - https://packages.adoptium.net/artifactory/api/gpg/key/public | tee /etc/apt/keyrings/adoptium.asc
echo "deb [signed-by=/etc/apt/keyrings/adoptium.asc] https://packages.adoptium.net/artifactory/deb $(awk -F= '/^VERSION_CODENAME/{print$2}' /etc/os-release) main" | tee /etc/apt/sources.list.d/adoptium.list
apt update
apt install temurin-8-jdk
@wagura-maurice
wagura-maurice / deb12laravel-setup.sh
Created July 15, 2025 11:31 — forked from askdkc/deb12laravel-setup.sh
Laravel Dev Env Setup Script for Debian 12
# PHP
sudo apt -y -V install wget curl php php8.2-fpm php8.2-cli php8.2-dev php8.2-pgsql \
php8.2-sqlite3 php8.2-gd php8.2-curl php8.2-imap php8.2-mysql \
php8.2-mbstring php8.2-xml php8.2-zip php8.2-bcmath php8.2-soap \
php8.2-intl php8.2-readline php8.2-gmp php8.2-redis php8.2-memcached \
php8.2-msgpack php8.2-igbinary
curl -sS https://getcomposer.org/installer | php
sudo mv composer.phar /usr/local/bin/composer
@wagura-maurice
wagura-maurice / postman_installation.md
Created September 9, 2023 15:58 — forked from Akhil-Suresh/postman_installation.md
Installing Postman on Ubuntu/Debian

Installing Postman

Step 1

If any version of postman is installed we need to remove it

sudo rm -rf /opt/Postman

Step 2

@wagura-maurice
wagura-maurice / modify-dom.txt
Created May 1, 2023 21:51 — forked from ahliang85/modify-dom.txt
Chrome Extension - Modify DOM
Background page is kind of like you own mini server - it is a completely isolated page that has nothing to do with pages a user visits. It is used for controlling the rest of extension components as it is always running in background.
Content scripts are pieces of javascript code that are getting injected into actual pages a user visits and can access and modify parent page's DOM.
So to get your extension working you need to remove
<script src="jquery.min.js"></script>
<script src="content.js"></script>
from background page, and inject jquery as a content script either through manifest:
@wagura-maurice
wagura-maurice / AbstractController.php
Created August 2, 2022 08:19 — forked from dinhquochan/AbstractController.php
Abstract Controller for Laravel (version 8.x)
<?php
namespace App\Http\Controllers;
use Illuminate\Contracts\Auth\Authenticatable;
use Illuminate\Foundation\Auth\Access\AuthorizesRequests;
use Illuminate\Foundation\Bus\DispatchesJobs;
use Illuminate\Foundation\Validation\ValidatesRequests;
use Illuminate\Http\JsonResponse;
use Illuminate\Routing\Controller as BaseController;
@wagura-maurice
wagura-maurice / AppServiceProvider.php
Created July 18, 2022 12:07 — forked from simonhamp/AppServiceProvider.php
A pageable Collection implementation for Laravel
<?php
namespace App\Providers;
use Illuminate\Support\Collection;
use Illuminate\Pagination\LengthAwarePaginator;
class AppServiceProvider extends ServiceProvider
{
public function boot()
@wagura-maurice
wagura-maurice / generate-ssh-key.sh
Created May 9, 2020 21:51 — forked from grenade/01-generate-ed25519-ssh-key.sh
Correct file permissions for ssh keys and config.
ssh-keygen -t rsa -b 4096 -N '' -C "rthijssen@gmail.com" -f ~/.ssh/id_rsa
ssh-keygen -t rsa -b 4096 -N '' -C "rthijssen@gmail.com" -f ~/.ssh/github_rsa
ssh-keygen -t rsa -b 4096 -N '' -C "rthijssen@gmail.com" -f ~/.ssh/mozilla_rsa
@wagura-maurice
wagura-maurice / install_lamp_16.sh
Created April 14, 2018 09:10 — forked from ankurk91/install_lamp_ubuntu.sh
Ubuntu 16.04 - PHP development (php 7.1, MySQL 5.7, apache 2.4)
#!/bin/bash
set -euo pipefail
IFS=$'\n\t'
# Ubuntu 16.04 Dev Server
# Run like - bash install_lamp.sh
# Script should auto terminate on errors
echo -e "\e[96m Adding PPA \e[39m"
sudo add-apt-repository -y ppa:ondrej/apache2