Skip to content

Instantly share code, notes, and snippets.

View jedld's full-sized avatar

Joseph Emmanuel Dayo jedld

  • Manila, Philippines
View GitHub Profile
@jedld
jedld / printer.cfg
Created June 5, 2023 02:59
Klipper printer.cfg for my Ender 3 Pro running on an SKR 1.3 with BLtouch, Sensorless homing, E3D revo Hemera, TMC 2209 drivers, X,Y,Z and LV8729 for the Extruder
[include mainsail.cfg]
# This file contains common pin mappings for the BIGTREETECH SKR v1.3 board.
# To use this config, during "make menuconfig" select the
# "LPC176x (Smoothieboard, SBase, SKR, etc.)" micro-controller option.
[printer]
kinematics: cartesian
max_velocity: 300
max_accel: 3900
max_z_velocity: 20
@jedld
jedld / bulid_system_image.sh
Created August 17, 2017 23:02
Build android system image for samsung gtexslte
#!/bin/sh
~/android-work/out/host/linux-x86/bin/make_ext4fs -s -l 2147483648 -S ~/android-work/out/target/product/gtexslte/root/file_contexts -a system new_system.img ~/android-work/out/target/product/gtexslte/system
@jedld
jedld / build_boot.sh
Created August 17, 2017 23:00
Build android boot image
#!/bin/sh
# mkbootfs ~/Downloads/samsung_t285_hacks/omni_root_test | minigzip > boot_kitchen/boot.img-ramdisk-new.gz
# mkbootfs /home/jedld/Downloads/samsung_t285_hacks/PURE_CM13/extracted/boot | minigzip > boot_kitchen/boot.img-ramdisk-new.gz
mkbootfs ~/android-work/out/target/product/gtexslte/root | minigzip > boot_kitchen/boot.img-ramdisk-new.gz
# mkbootfs boot_kitchen/boot | minigzip > boot_kitchen/boot.img-ramdisk-new.gz
# degas-mkbootimg -o boot.img --base 0 --pagesize 2048 \
@jedld
jedld / gtexslte.xml
Last active August 15, 2017 07:08
Sailfish OS hardware adaptation local manifest
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<project path="external/degas-mkbootimg" name="jedld/degas-mkbootimg" remote="github" revision="galaxy_tab_a_smt285" />
<project path="device/generic/goldfish" name="device/generic/goldfish" groups="pdk" remote="aosp" />
<project path="device/samsung/gtexslte" name="jedld/device_samsung_gtexslte" revision="hybris-13.0"/>
<project path="kernel/samsung/gtexslte" name="jedld/kernel_samsung_gtexslte" revision="hybris-13.0"/>
<project path="rpm/" name="jedld/droid-hal-gtexslte" revision="master"/>
<project path="hybris/droid-configs" name="jedld/droid-config-gtexslte" revision="master"/>
<project path="hybris/droid-hal-version-gtexslte" name="jedld/droid-hal-version-gtexslte" revision="master"/>
</manifest>
@jedld
jedld / gist:84958d2412f1cae61fa9b2799ef73a44
Created February 17, 2017 18:46
patch so that screen does not turn upside down during power off fade out sequence
diff --git a/services/core/java/com/android/server/display/ColorFade.java b/services/core/java/com/android/server/display/ColorFade.java
index a16fcd2..fee6bd0 100644
--- a/services/core/java/com/android/server/display/ColorFade.java
+++ b/services/core/java/com/android/server/display/ColorFade.java
@@ -42,6 +42,7 @@ import android.view.Surface.OutOfResourcesException;
import android.view.Surface;
import android.view.SurfaceControl;
import android.view.SurfaceSession;
+import android.os.SystemProperties;
@jedld
jedld / gist:4f388496bda03b349f5744f367749a67
Created August 13, 2016 01:12
libsparse patch to make make_ext4fs generated images work with the samsung galaxy tab A 7.0 (2016) SM-T285 and possibly other newer devices
diff --git a/libsparse/output_file.c b/libsparse/output_file.c
index cd30800..da5b076 100644
--- a/libsparse/output_file.c
+++ b/libsparse/output_file.c
@@ -353,6 +353,7 @@ static int write_sparse_skip_chunk(struct output_file *out, int64_t skip_len)
chunk_header.reserved1 = 0;
chunk_header.chunk_sz = skip_len / out->block_size;
chunk_header.total_sz = CHUNK_HEADER_LEN;
+ chunk_header.samsung_magic = SAMSUNG_CHUNK_MAGIC;
ret = out->ops->write(out, &chunk_header, sizeof(chunk_header));