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
@bassamsdata
bassamsdata / _Notes.md
Last active April 21, 2025 07:46
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 / README.md
Created February 10, 2023 02:46
Booting Android 10 without display / headless

remove system/vendor/bin/hw/[email protected]

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 / auto_wifi.sh
Last active February 7, 2022 02:38
Android auto connect to wifi from shell
#!/system/bin/sh
# i use https://github.com/steinwurf/adb-join-wifi for auto connect to wifi
# tanks
# wait for boot to finish completely
while [[ `getprop sys.boot_completed` -ne 1 ]]
do
sleep 1
done
@nakamuraos
nakamuraos / reset-trial-navicat.sh
Last active April 20, 2025 12:08
Reset trial Navicat 15, Navicat 16, Navicat 17 on Linux
#!/bin/bash
# Author: NakamuraOS <https://github.com/nakamuraos>
# Latest update: 03/19/2025
# Tested on Navicat 15.x, 16.x, 17.x on Debian, Ubuntu.
BGRED="\e[1;97;41m"
ENDCOLOR="\e[0m"
echo -e "${BGRED} ${ENDCOLOR}"
@danmana
danmana / example_model.py
Created August 16, 2021 15:08
Add support for custom json fields in Odoo
from odoo import models, fields, api
from json_field import JsonField
class Person(models.Model):
_name = 'example.person'
_description = 'Person with json details'
details = JsonField() # a json object represented as dict / list / python primitives
@ziadoz
ziadoz / Dockerfile
Last active June 30, 2022 06:53
Install glibc on PHP Alpine Docker Image
FROM php:8-cli-alpine
# @see: @see: https://stackoverflow.com/a/65969295
RUN apk --no-cache add binutils curl \
&& GLIBC_VER=$(curl -s https://api.github.com/repos/sgerrand/alpine-pkg-glibc/releases/latest | grep tag_name | cut -d : -f 2 | tr -d \",' ') \
&& curl -sL https://alpine-pkgs.sgerrand.com/sgerrand.rsa.pub -o /etc/apk/keys/sgerrand.rsa.pub \
&& curl -sLO https://github.com/sgerrand/alpine-pkg-glibc/releases/download/${GLIBC_VER}/glibc-${GLIBC_VER}.apk \
&& curl -sLO https://github.com/sgerrand/alpine-pkg-glibc/releases/download/${GLIBC_VER}/glibc-bin-${GLIBC_VER}.apk \
&& apk add --no-cache \
glibc-${GLIBC_VER}.apk \
@thewh1teagle
thewh1teagle / gist:bbd324a13087e206fee2ef0b4db8753f
Created November 17, 2020 22:35
skip samsung setup wizard
adb shell settings put global setup_wizard_has_run 1
adb shell settings put secure user_setup_complete 1
adb shell settings put global device_provisioned 1
adb shell mv /system/system/priv-app/SamsungExperienceService/SamsungExperienceServic
e.apk /system/system/priv-app/SamsungExperienceService/SamsungExperienceService
.apk.bkp
adb shell mv /system/system/priv-app/SetupWizard/SetupWizard.apk /system/system/priv-app/SetupWizard
@benoitpetit
benoitpetit / docker-compose.yml
Last active April 12, 2025 07:07
complete Gitlab installation and a runner with docker
version: '4.5'
services:
# GITLAB
gitlab-web:
image: 'gitlab/gitlab-ce:latest'
restart: always
container_name: gitlab-web
hostname: '192.168.0.14'
environment:
@dbkinghorn
dbkinghorn / netplan2NM.sh
Created June 23, 2020 17:07
Change Ubuntu 20.04 server netplan to use NetworkManager instead of networkd
#!/usr/bin/env bash
# netplan2NM.sh
# Ubuntu server 20.04 Change from netplan to NetworkManager for all interfaces
echo 'Changing netplan to NetowrkManager on all interfaces'
# backup existing yaml file
cd /etc/netplan
cp 01-netcfg.yaml 01-netcfg.yaml.BAK
@rufoa
rufoa / patch.sh
Last active March 24, 2025 07:26
sublime merge 2 build 2068 linux
#!/bin/bash
set -o errexit
set -o nounset
set -o pipefail
target="${1:-/opt/sublime_merge/sublime_merge}"
check_sha() {
local sha_valid