Skip to content

Instantly share code, notes, and snippets.

View dyazincahya's full-sized avatar
🔥
plus ultra

Kang Cahya dyazincahya

🔥
plus ultra
View GitHub Profile
@dyazincahya
dyazincahya / file_get_contents_helper.php
Created February 11, 2024 10:25
Simple Helper file_get_contents PHP for access API with method GET POST PUT and DELETE
<?php
function makeApiRequest($url, $params = [], $method = 'GET') {
$options = [
'http' => [
'method' => $method,
'header' => 'Content-Type: application/x-www-form-urlencoded',
'content' => http_build_query($params),
],
];
@dyazincahya
dyazincahya / cURL_helper.php
Last active February 11, 2024 08:21
Simple Helper cURL PHP for access API with method GET POST PUT and DELETE
<?php
function makeApiRequest($url, $params = [], $method = 'GET') {
// Initialize cURL session
$ch = curl_init($url);
// Set common cURL options
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); // Return the response as a string instead of outputting it
// Set method-specific cURL options
if ($method === 'POST') {
@dyazincahya
dyazincahya / readme.md
Created October 20, 2023 13:58
Using AdGuard DNS over HTTPS (DoH) on Windows 11

Why

You may want to use AdGuard's DNS over HTTPS[^2] service if you

  1. Want to make it harder for your ISP to know what websites you are requesting
  2. Want to block most traditional ads from your web browsing experience across your entire PC

Setup instructions

  1. Open PowerShell
@dyazincahya
dyazincahya / gist:a5e148d1a102aeb9f6793db248be2ffe
Created October 4, 2023 02:55 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
@dyazincahya
dyazincahya / remove_bloatware_redmi_note11.bat
Created April 1, 2023 13:43
Bulk remove bloatware for Xiaomi Redmi Note 11
@echo off
set /p Y=Enter adb.exe folder path:
cd %Y%
adb devices
pause
for %%X in (
"com.xiaomi.glgm"
"pm uninstall 'com.google.android.apps.magazines"
"com.neptune.domino"
"com.jobstreet.jobstreet"
@dyazincahya
dyazincahya / slide-images.html
Created August 24, 2021 02:06
Simple slide image like app store web apple
<!DOCTYPE html>
<html>
<head>
<style>
.slide-ss-mobile:before {
content: 'Screenshoot';
display: block;
margin-bottom : 15px;
text-transform : uppercase;
font-weight: bold;
@dyazincahya
dyazincahya / list-experience.css
Last active August 15, 2021 07:40
Snippet Code Experience list HTML CSS
.experienceList{
text-align:center;
font-family: "Montserrat",sans-serif;
}
.experienceList > h2 { color: #616161; }
.experiencePart > h4 {
font-size: 14px;
text-transform: uppercase;
letter-spacing: 1px;
color: #424242;
@dyazincahya
dyazincahya / readme-config-firebase-nativescript.md
Last active March 21, 2021 13:35
Cara mengatur Nativescript v6+ Firebase
@dyazincahya
dyazincahya / simple-card-html-css-for-blogger.html
Last active March 17, 2021 10:32
Simple card for Blogger (HTML & CSS)
<style>
.app { font-family: 'Roboto'; border-radius: 5px; padding:15px; }
.app-icon { margin: 5px; width:70px; }
.app-name { font-size: 24px; margin:10px; }
.app-description { font-size: 18px; margin:10px; }
.app-download { font-size: 14px; margin:10px; background: #8BC34A; color:#FFF; border: none; border-radius:5px; padding:10px; text-decoration:none; }
.app-download:hover { background: #73a03d; color:#FFF; cursor: pointer; }
</style>
<table class="app" style="background:#8130FF;" width="100%">
@dyazincahya
dyazincahya / getCurrentDatetimeID.js
Created March 11, 2021 00:02
Get current date and time in Javascript (Bahasa indonesia)
var d = new Date();
var p = d.getFullYear(),
q = d.getMonth()+1,
r = d.getDate(),
s = d.getHours(),
t = d.getMinutes(),
u = d.getSeconds();
var months = ["Januari", "Februari", "Maret", "April", "Mei", "Juni", "Juli", "Agustus", "September", "Oktober", "November", "Desember"],