Skip to content

Instantly share code, notes, and snippets.

View atharva-lipare's full-sized avatar

Atharva Lipare atharva-lipare

View GitHub Profile
@atharva-lipare
atharva-lipare / GT-P7500_info.txt
Last active July 5, 2021 16:46
GT-P7500 Stable AOSP 7.1 by decatf
decatf xda thread: https://forum.xda-developers.com/t/stable-aosp-7-1-setup-w-working-google-and-voice-achieved.3768344/
decatf files: https://androidfilehost.com/?w=files&flid=34770
decatf chromium link: https://drive.google.com/file/d/1H-Kt69zySarK1yhQvv6HjdG3DJjUcfDn/view
@atharva-lipare
atharva-lipare / pulse_commands.txt
Created June 30, 2021 20:07
useful pulseaudio commands
# create virtual sink with name Virtual_Sink
pacmd load-module module-null-sink sink_name=Virtual_Sink sink_properties=device.description=Virtual_Sink
# remove virtual sink with name Virtual_Sink
pactl list short modules | grep "sink_name=Virtual_Sink" | cut -f1 | xargs -L1 pactl unload-module
# record sound from virtual source with name Virtual_Sink and output file out.mp3
parec -d Virtual_Sink.monitor | lame -r -V0 - out.mp3
@atharva-lipare
atharva-lipare / edge_scroll_for_ff.txt
Created June 10, 2021 09:42
Microsoft edge like scrolling for firefox
about:config tweaks:
general.smoothScroll.msdPhysics.enabled = true
general.smoothScroll.msdPhysics.continuousMotionMaxDeltaMS = 250
general.smoothScroll.msdPhysics.motionBeginSpringConstant = 400
general.smoothScroll.msdPhysics.regularSpringConstant = 400
general.smoothScroll.msdPhysics.slowdownMinDeltaMS = 120
general.smoothScroll.msdPhysics.slowdownMinDeltaRatio = 0.4
general.smoothScroll.msdPhysics.slowdownSpringConstant = 5000
mousewheel.min_line_scroll_amount = 22
@atharva-lipare
atharva-lipare / rem_password_pdf.txt
Last active January 24, 2022 07:29
Remove password from pdf using qpdf
qpdf -password=<your-password> -decrypt /path/to/secured.pdf out.pdf
Source: https://askubuntu.com/questions/828720/how-to-remove-the-password-from-a-pdf
note down given IP's and password
@ end of linux16 -> rd.break
ctrl-x
<enter>
mount -o remount,rw /sysroot/
chroot /sysroot
passwd
<given-password>
touch /.autorelabel
ctrl-d
@atharva-lipare
atharva-lipare / gist:49da7e41659b61919691aa89394637dc
Created February 17, 2020 18:00
youtube-dl download playlist
Linux/ macOS: youtube-dl -cit <playlist-link> -f bestvideo+bestaudio/best
Windows: ./youtube-dl.exe -cit <playlist-link> -f bestvideo+bestaudio/best
-c, --continue Force resume of partially downloaded files. By default, youtube-dl will resume
downloads if possible.
-i, --ignore-errors Continue on download errors, for example to skip unavailable videos in a playlist
-f, --format FORMAT Video format code, see the "FORMAT SELECTION" for all the info