Skip to content

Instantly share code, notes, and snippets.

@ridwanbejo
ridwanbejo / Google Cloud Skill Boost - FREE!
Last active May 8, 2024 17:42
These are totally free courses from Google Cloud Skill Boost. You just need a gmail account to access thouse courses .
Google Cloud Skill Boost - FREE!
--------------------------------
Gogle Cloud Platform:
- Course
Site Reliability Engineering: Measuring and Managing Reliability -> https://www.cloudskillsboost.google/course_templates/59
Developing a Google SRE Culture -> https://www.cloudskillsboost.google/course_templates/95
@ridwanbejo
ridwanbejo / ridwan-cfp-pycon-id-2021.md
Created September 9, 2021 07:25
Call for Proposal example

Title

Monitoring and Logging Django Web Application with Prometheus, ELK and Sentry

Elevator Pitch

Hi I am Ridwan,

@ridwanbejo
ridwanbejo / queue-test.sh
Created June 12, 2020 11:43
laravel-queue-sqs - queue-test.sh
#!/bin/bash
sleep 5
for i in {1..10}
do
curl -XGET http://localhost:8000/test-queue
echo "";
sleep 1
@ridwanbejo
ridwanbejo / web.php
Created June 12, 2020 00:16
laravel-queue-sqs - routes/web.php v2
<?php
use Illuminate\Support\Facades\Storage;
use App\Jobs\ExampleJob;
use App\Jobs\HelloWorldJob;
use Ramsey\Uuid\Uuid;
...
$router->get('/test-queue', function () use ($router){
@ridwanbejo
ridwanbejo / HelloWorldJob.php
Last active June 12, 2020 00:13
laravel-queue-sqs - HelloWorldJob.php v2
<?php
namespace App\Jobs;
class HelloWorldJob extends Job
{
protected $uuid;
protected $message;
/**
@ridwanbejo
ridwanbejo / web.php
Created June 6, 2020 14:45
laravel-queue-sqs - routes/web.php
<?php
/** @var \Laravel\Lumen\Routing\Router $router */
/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
@ridwanbejo
ridwanbejo / HelloWorldJob.php
Last active June 6, 2020 14:49
laravel-queue-sqs - HelloWorldJob.php v1
<?php
namespace App\Jobs;
class HelloWorldJob extends Job
{
protected $message;
/**
* Create a new job instance.
*
@ridwanbejo
ridwanbejo / ExampleJob.php
Last active June 6, 2020 14:40
laravel-queue-sqs - ExampleJob.php
<?php
namespace App\Jobs;
class ExampleJob extends Job
{
/**
* Create a new job instance.
*
* @return void
@ridwanbejo
ridwanbejo / serverless.yml
Created May 28, 2020 05:08
bref-pokemon-api serverless.yml definition
service: bref-pokemon-api
provider:
name: aws
region: us-east-1
runtime: provided
plugins:
- ./vendor/bref/bref
@ridwanbejo
ridwanbejo / web.php
Last active May 28, 2020 05:11
bref-pokemon-api routes/web.php
<?php
/** @var \Laravel\Lumen\Routing\Router $router */
/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.