Skip to content

Instantly share code, notes, and snippets.

View T-rex2017's full-sized avatar
🐢

T-rex2017 T-rex2017

🐢
View GitHub Profile
@T-rex2017
T-rex2017 / youtube-dl-termux
Last active May 5, 2023 06:19
youtube to mp3,m4a,mp4 on android using termux
#single command
pkg install curl && curl https://pastebin.com/raw/stMateZB -o install.sh && dos2unix install.sh && chmod u+x install.sh && ./install.sh
# line by line
pkg install curl
curl https://pastebin.com/raw/stMateZB -o install.sh
dos2unix install.sh
chmod u+x install.sh
./install.sh
LM8LUU/LM8UU
• robu.in – 90 / 110
• diy3d.in – 75 / 118
• novo3d.in – 0 / 60
• techtonics.in _ 0 / 99
• roboticspitstop.in _ 0 / 60
• tomsonelectronics.com _ 0 / 83
E3D v6 Hotend
• robu.in – 499
• diy3d.in – 500
#!/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
endstop holder & endstops
printbed btm upport
z axis
cooling fan/duct
ramps holder
power switch
display holde0
control knob
@T-rex2017
T-rex2017 / peters conversation
Last active October 2, 2020 08:36
peter is some random person who came in to p1m community at some point a shed some light on issues related to booting based on different versions of lcm and touch
hello guys, is there any chance to get p1m with aftermarket display working with LOS14.1 3.18.19 ? Phone boots with oem cracked display, but not with new aftermarket one. I have set up serial console to take a look on boot process, but I just cannot find the cause...
Is it version lineage-14.1-20180102_172327-UNOFFICIAL-P1m.zip ?
well I am able to flash it, but it will not boot with aftermarket display
yup, I have made some research: https://forum.xda-developers.com/android/help/how-to-debug-kenrel-bootloop-adb-t3820790#post77172298
but still no luck to fix it in kernel
@T-rex2017
T-rex2017 / build_rom
Last active October 2, 2020 08:32
rom compiling guide
# not an actual script but you could convert it though
# links are for lenovo vibe P1m nougat roms for other devices and android version these may or ma not be different
# selecting the os
# you could use any varient of ubuntu but i suggest to use on above 16.xx
#update what you have
sudo apt-get update && sudo apt-get upgrade
# install all the tools
@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 :::::
  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

Sanitizer Dispenser

BOM

  1. arduino
  2. dc pump
  3. relay
  4. leds
  5. buttons
  6. ir sensor

DIY UV Box For Sanitizing Objects

BOM

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