Skip to content

Instantly share code, notes, and snippets.

View T-rex2017's full-sized avatar
🐢

T-rex2017 T-rex2017

🐢
View GitHub Profile
ROMNAME=lineage-14.1
LINK=https://github.com/LineageOS/android
BRANCH=cm-14.1
THREAD_COUNT_SYNC=8
echo -e "# Installing necessary packages..."
sudo apt install bc pxz wput
echo -e "# Installed"
echo -e "# Installing repo..."

changes & fixes for lenovo vibe p1m stock rom

  1. remove bloatware from system/app, system/vendor/app, system/vendor/provider/app, system/priv-app
  2. fix external write permission issues by editing system/etc/permissions/platform.xml
  3. remove stock dialer, conatcts app replace with google dialer & contacts
  4. change boot & shutdown animations

RF transmitter reciver based seashore safety system using arduino

parts

  1. arduino * 2
  2. rf transmitter
  3. rf reciver
  4. buzzer *2
  5. push to on button * 2
  6. 12v led strip / set * 2
  7. bc547 transistor * 2

DIY UV Box For Sanitizing Objects

BOM

  1. arduino
  2. UV light
  3. relay
  4. limit switch
  5. leds
  6. pot
  7. push buttons

Sanitizer Dispenser

BOM

  1. arduino
  2. dc pump
  3. relay
  4. leds
  5. buttons
  6. ir sensor
  1. Resistor-1 : R-EU_0207/7 , R-EU_0207/10
  2. Capacitor-Elctrolytic : CPOL-EUE2.5-6 , CPOL-EUE5-10.5
  3. Capacitor-Ceramic : C-EU025-025X050 , C-EU050-030X075
  4. Diode : 1N5408
  5. Crystal oscillator : CRYSTALHC49U70
  6. 78XX Voltage Regulator : 7805TV
  7. LED : LED3MM , LED5MM
  8. Buzzer : F/CM12P
  9. Power Jack : CONN-08197
@T-rex2017
T-rex2017 / twrp_compile_errors
Last active October 2, 2020 08:30
logging compile errors during a failed twrp build and possible fixes i found
02/10/2020 11:15AM--------------------------------------------------
error :::::
system/core/mkbootimg/mkbootimg.c: In function 'main':
system/core/mkbootimg/mkbootimg.c:212:9: error: 'strncpy' specified bound 1024 equals destination size [-Werror=stringop-truncation]
212 | strncpy((char *)hdr.extra_cmdline, cmdline, BOOT_EXTRA_ARGS_SIZE);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
scinario :::::
endstop holder & endstops
printbed btm upport
z axis
cooling fan/duct
ramps holder
power switch
display holde0
control knob
#!/bin/sh
echo "input file : "$1
echo "G0 S0 >> G0 Z4.5"
sed -i 's/G0 S0/G0 Z4.5/g' $1
echo "G0 S255 >> G0 Z3.9"
sed -i 's/G0 S255/G0 Z3.9/g' $1