Skip to content

Instantly share code, notes, and snippets.

View catwhocode's full-sized avatar

Cat who code catwhocode

View GitHub Profile
@denihida1216
denihida1216 / Bridging BPJS Aplicares (Ketersediaan Kamar)
Last active March 20, 2025 13:24
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
@kangmasjuqi
kangmasjuqi / longest sql queries #2.txt
Last active August 1, 2024 12:35
longest sql queries #2
### the longest sql queries I've ever made in 2016
### QUERY 2
select table_keuangan.*, dzohir_target,dzohir_realisasi,dzohir_percentage,dzohir_satkeg
from
(
select __is_kegiatan.description as nmitem, table_data.*,
((anggaran_realisasi/anggaran_pagu)*100) as anggaran_percentage
from __is_kegiatan
join (
@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
@yidas
yidas / codeiginter-server-config.md
Last active March 8, 2025 15:25
Codeigniter 3 server configuration for Nginx & Apache

Codeigniter 3 server configuration for Nginx & Apache

Web Server Site Configuration

Recommended Apache Configuration

Use the following configuration in Apache's httpd.conf file or within a virtual host configuration. Note that you should set DocumentRoot and ServerName fit to your environment:

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.