Skip to content

Instantly share code, notes, and snippets.

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

Mohmad Supangat mohamad-supangat

Working from home
View GitHub Profile
mohamad-supangat / .gitlab-ci.yml
Created May 6, 2024 06:26 — forked from amitavroy/.gitlab-ci.yml
Continuous Integration with Gitlab
- 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.
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 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>
mohamad-supangat /
Created January 5, 2024 06:33
Auto Change Android Battery level to 100 every 3 second
while true
dumpsys battery set level 100
sleep 5
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 /
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 /
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 / Transactional.php
Created September 13, 2023 03:35 — forked from aambrozkiewicz/Transactional.php
Laravel Middleware with Database transaction
namespace App\Http\Middleware;
use Closure;
class Transactional
public function handle($request, Closure $next)
mohamad-supangat / UDID
Created August 14, 2023 01:41 — forked from rvill/UDID
get iOS device UDID without xcode or itunes, using linux cmd line
lsusb -v 2> /dev/null | grep -e "Apple Inc" -A 2
mohamad-supangat /
Created June 5, 2023 02:13
Change /var/lib/docker folder

Stop the server:

sudo systemctl stop docker

Create/edit the configuration at /etc/docker/daemon.json, for example:

    "data-root": "/new/path/docker-data-root"