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 / .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 / readme.md
Last active February 7, 2024 09:26
laravel force https in all routes

Place this in the AppServiceProvider in the boot() method

if($this->app->environment('production')) {
    \URL::forceScheme('https');
}
php
@mohamad-supangat
mohamad-supangat / README.md
Created February 10, 2023 02:46
Booting Android 10 without display / headless

remove system/vendor/bin/hw/vendor.lineage.touch@1.0-service.samsung

and also livedisplay service thats there, after that you might have to edit system/vendor/etc/vintf/manifest.xml and remove livedisplay and touch entry

add debug.sf.nobootanimation=1 to disable bootanimation in build.prop

@mohamad-supangat
mohamad-supangat / README.md
Created October 11, 2022 07:15
backup and restore boot and recovery using dd

backup with dd

dd if=/dev/block/mmcblk0 of=/storage/sdcard1/boot.img bs=4096 count=4096 skip=7552
dd if=/dev/block/mmcblk0 of=/storage/sdcard1/recovery.img bs=4096 count=4096 skip=11648
fash boot.img with dd
dd if=/sdcard/image-new.img of=/dev/block/platform/155a0000.ufs/by-name/BOOT
@mohamad-supangat
mohamad-supangat / readme.md
Last active January 6, 2024 03:29
Auto start boot in charging conencted

lineage os 14.1

init.rc

on charger
  class_start charger
  class_stop charger
  trigger late-init
@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 / crontab.sh
Last active October 30, 2023 09:24
Run php8 artisan queue:work in cpanel cronjob
/opt/alt/php81/usr/bin/php /home/u8071632/public_html/prakerin/api/artisan queue:work --queue=high,default >> /home/u8071632/public_html/prakerin/log_cron.txt 2>&1