Skip to content

Instantly share code, notes, and snippets.

View mohamad-supangat's full-sized avatar
:shipit:
Working from home

Mohmad Supangat mohamad-supangat

:shipit:
Working from home
View GitHub Profile
@mohamad-supangat
mohamad-supangat / reset.bat
Created October 21, 2024 04:27
Reset Navicat
@echo off
echo Deleting HKEY_CURRENT_USER\Software\PremiumSoft\NavicatPremium\Update
reg delete HKEY_CURRENT_USER\Software\PremiumSoft\NavicatPremium\Update /f
echo Delete HKEY_CURRENT_USER\Software\PremiumSoft\NavicatPremium\Registration[version and language]
for /f "tokens=*" %%i in ('REG QUERY "HKEY_CURRENT_USER\Software\PremiumSoft\NavicatPremium" /s ^| findstr /L "Registration"') do (
reg delete "%%i" /va /f
)
@mohamad-supangat
mohamad-supangat / _Notes.md
Created August 21, 2024 03:48 — forked from bassamsdata/_Notes.md
MiniFiles Git integration

Below is a code for Minifiles Git integration code snippet.

How to use it

Just insert the code below into this function in your Minifiles config:

config = function()
-- add the git code here
end
@mohamad-supangat
mohamad-supangat / printjurnal.php
Last active July 26, 2024 06:42
printjurnal MTS
<?php
ob_start();
require("../../config/database.php");
require("../../config/function.php");
require("../../config/functions.crud.php");
session_start();
// if (!isset($_SESSION['id_user'])) {
// die('Anda tidak diijinkan mengakses langsung');
// }
@mohamad-supangat
mohamad-supangat / .gitlab-ci.yml
Created May 6, 2024 06:26 — forked from amitavroy/.gitlab-ci.yml
Continuous Integration with Gitlab
stages:
- test
# Variables: these have to match
# the .env.example credentials in your Laravel app
# use the default homestead/secret combination, since
# that database gets created in the edbizarro/gitlab-ci-pipeline-php:7.1
# docker image.
variables:
MYSQL_ROOT_PASSWORD: root
@mohamad-supangat
mohamad-supangat / sales_quotation.xml
Last active March 27, 2024 02:35
odoo report xml
<div class="page" style="margin: 0px !important; padding: 0px !important; font-size:13px!important; color: black!important">
<div class="oe_structure" />
<div class="row justify-content-end">
<div>
<div class="d-inline" t-if="env.context.get('proforma', False) or is_pro_forma">
<h4 class="border border-dark rounded p-2">Proforma Invoice</h4>
</div>
<!--INVOICE DP-->
@mohamad-supangat
mohamad-supangat / auto_battery_100.sh
Created January 5, 2024 06:33
Auto Change Android Battery level to 100 every 3 second
#!/system/bin/sh
while true
do
dumpsys battery set level 100
sleep 5
done
@mohamad-supangat
mohamad-supangat / fstab.example
Last active January 4, 2024 07:14
Install Armbian to EMMC
#/var/swap none swap sw 0 0
#/dev/root / auto noatime,errors=remount-ro 0 1
#proc /proc proc defaults 0 0
/dev/root / ext4 defaults,noatime,errors=remount-ro 0 1
tmpfs /tmp tmpfs defaults,nosuid 0 0
LABEL=BOOT_EMMC /boot vfat defaults 0 2
@mohamad-supangat
mohamad-supangat / odoo.md
Last active December 28, 2023 04:09
Perintah Penting Odoo

Masuk PSQL odoo

docker exec -it -u root odoo-clone-jvm-odoo-1   psql -h db -U odoo -W restore

update default password to Donatelo

UPDATE "res_users" set "password" = '$pbkdf2-sha512$25000$IMSY8x7j/H.vlVJKCcF4jw$4Y9C8FdNwz9FdaJJpOAVhhrlKbYQGuQhnh7nUhZZndkb7R8ndgqPvmvO5pFTvznBtyOqYVZR0alxIFzXTgz9rg';
@mohamad-supangat
mohamad-supangat / account.report_payment_receipt_document.md
Last active September 30, 2023 01:51
Print Kuitansi Pembayaran

id: account.report_payment_receipt_document

<?xml version="1.0"?>
<t t-name="account.report_payment_receipt_document">
        <t t-call="web.external_layout">
            <t t-set="o" t-value="o.with_context(lang=lang)"/>

            <div class="page" style="font-size: 12px;">
              <div class="row justify-content-end" t-if="o.partner_type">
@mohamad-supangat
mohamad-supangat / Transactional.php
Created September 13, 2023 03:35 — forked from aambrozkiewicz/Transactional.php
Laravel Middleware with Database transaction
<?php
namespace App\Http\Middleware;
use Closure;
class Transactional
{
public function handle($request, Closure $next)
{