Skip to content

Instantly share code, notes, and snippets.

View catwhocode's full-sized avatar

Cat who code catwhocode

  • Jakarta, Indonesia
  • 19:26 (UTC +07:00)
View GitHub Profile
@denihida1216
denihida1216 / Bridging BPJS Aplicares (Ketersediaan Kamar)
Last active August 8, 2023 01:50
Bridging BPJS Aplicares (Ketersediaan Kamar)
Bridging Kamar BPJS 2021 Implementasi Bridging di RSUD ALIHSAN
Ketersediaan Kamar
#Monitoring Hasil bridging Live Production
https://faskes.bpjs-kesehatan.go.id/aplicares/#/app/dashboard
#Base Url
Development: https://dvlp.bpjs-kesehatan.go.id:8888/
Production: https://new-api.bpjs-kesehatan.go.id/
#Referensi Kamar
# [CONFIGURATION]
# Ensure WSL2 container is started and SSH is running
wsl sudo /etc/init.d/ssh start
# Ports to be forwarded
$ports = @(22) + @(6543,6544) + @(6800..6810);
# Change $addr to restrict connections to a particular interface IP
$listen_addr = '0.0.0.0';
@gh640
gh640 / cookie_with_puppeteer.js
Created July 22, 2021 01:42
Sample: Use cookie with Puppeteer
@scr2em
scr2em / Batch-convert-webp-to-png.md
Created November 21, 2020 16:54
convert bulk of files from webp to png
@appkr
appkr / guzzle_req_res_middleware.php
Last active May 7, 2024 10:08
Guzzle RequestResponseLog Middleware Example
<?php
namespace App\Providers;
use GuzzleHttp\Client;
use GuzzleHttp\Exception\RequestException;
use GuzzleHttp\HandlerStack;
use GuzzleHttp\Middleware;
use GuzzleHttp\Promise\PromiseInterface;
use Illuminate\Contracts\Foundation\Application;
@Stunext
Stunext / HandlePutFormData.php
Created November 20, 2018 20:12
Laravel: Middleware to support multipart/form-data in PUT, PATH and DELETE requests
<?php
namespace App\Http\Middleware;
use Closure;
use Symfony\Component\HttpFoundation\ParameterBag;
/**
* @author https://github.com/Stunext
*
@wildiney
wildiney / bearer-token.php
Last active February 11, 2024 18:55
[deprecated] PHP - How to get and set Bearer Token
<?php
/**
* ALERT! There are more than ten years since I wrote the first version (adaptation) of this code with PHP 5.6,
* then I changed my code stack and I couldn't mantain this code anymore. Ten years ago worked like a charm.
* Fell free to test, use, fork, update, etc. and if possible put in the comments how to fix,
* if it doesn't work for you as it is, so other people could find answers.
**/
/**
* Get hearder Authorization
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ablunier
ablunier / PrintServerApi.php
Last active April 17, 2024 23:11
This a print connector implementation to communicate the mike42/escpos-php package with the ablunier/escpos-print-api API
<?php
namespace Ablunier\Escpos\PrintConnectors\Connectors;
use Mike42\Escpos\PrintConnectors\PrintConnector;
use GuzzleHttp\Client;
/**
* Class PrintServerApi
*/
@surferxo3
surferxo3 / curl.php
Last active May 15, 2024 09:12
Script to demonstrate how to extract Header and Body from the Curl response in PHP.
<?php
/*#############################
* Developer: Mohammad Sharaf Ali
* Designation: Web Developer
* Version: 1.0
*/#############################
// SETTINGS
ini_set('max_execution_time', 0);