Skip to content

Instantly share code, notes, and snippets.

@mandiwise
mandiwise / Count lines in Git repo
Last active April 27, 2024 06:00
A command to calculate lines of code in all tracked files in a Git repo
// Reference: http://stackoverflow.com/questions/4822471/count-number-of-lines-in-a-git-repository
$ git ls-files | xargs wc -l
@aamiaa
aamiaa / CompleteDiscordQuest.md
Last active April 27, 2024 05:59
Complete Recent Discord Quest

Complete Recent Discord Quest

Note

This no longer works in browser!

Note

This no longer works if you're alone in vc! Somebody else has to join you!

How to use this script:

  1. Accept the quest under User Settings -> Gift Inventory
@adrianopteodoro
adrianopteodoro / MSIAfterburner.cfg
Last active April 27, 2024 05:59
MSI Afterburner profile cfg
[Settings]
Language=PTBR
Views=
LastUpdateCheck=5FC968C8h
UpdateCheckingPeriod=3
LowLevelInterface=1
MMIOUserMode=1
HAL=1
Driver=1
Skin=MSIMystic.usf
@cirrusUK
cirrusUK / ftphost.txt
Created June 14, 2022 15:33
urls of various video
http://ftphost.nohum.org/video/10 Days That Changed America/10 Days That Changed America Vol 1_2.mp4
https://ftphost.nohum.net/video/10 Days That Changed America/10 Days That Changed America Vol 1_2.mp4
https://ftphost.nohum.net/video/10 Days That Changed America/10 Days That Changed America Vol 1_3.mp4
https://ftphost.nohum.net/video/10 Days That Changed America/10 Days That Changed America Vol 1_4.mp4
https://ftphost.nohum.net/video/10 Days That Changed America/10 Days That Changed America Vol 1_5.mp4
https://ftphost.nohum.net/video/10 Days That Changed America/10 Days That Changed America Vol 2_2.mp4
https://ftphost.nohum.net/video/10 Days That Changed America/10 Days That Changed America Vol 2_3.mp4
https://ftphost.nohum.net/video/10 Days That Changed America/10 Days That Changed America Vol 2_4.mp4
https://ftphost.nohum.net/video/10 Days That Changed America/10 Days That Changed America Vol 3_2.mp4
https://ftphost.nohum.net/video/10 Days That Changed America/10 Days That Changed America Vol 3_3.mp4
@cirrusUK
cirrusUK / yt651.m3u
Last active April 27, 2024 05:53
mostly true crime documentaries from you stare.
#EXTM3U
# Playlist created by SMPlayer 22.2.0 (revision 10060)
#EXTINF:0,https://www.youtube.com/watch?v=-8gIahvAcas
https://www.youtube.com/watch?v=-8gIahvAcas
#EXTINF:0,https://www.youtube.com/watch?v=-D_54aJrhzk
https://www.youtube.com/watch?v=-D_54aJrhzk
#EXTINF:0,https://www.youtube.com/watch?v=-Pk0ti9jn6Q
https://www.youtube.com/watch?v=-Pk0ti9jn6Q
#EXTINF:0,https://www.youtube.com/watch?v=-VhZKipyMKY
https://www.youtube.com/watch?v=-VhZKipyMKY
@mibli
mibli / flashing-magisk-a320fl.md
Last active April 27, 2024 05:53
Flashing Magisk on Samsung A3 2017 on Linux

Rooting Samsung A3 2017 (A320FL, a3y17lt) on Linux, the cautious way

First off, I'm not responsible for any damage to Your devices, I'm sharing my experience and it should not be taken as a replacement for manual and common sense. You're following the guide at Your own risk!!

The purpose of this document is to help understand me the process of flashing. The issue with a lot of guides is that they describe only the necessary steps, and provide pre-patched archives and images, pre-downloaded binaries, which is not a very assuring or secure way of approaching things. I will try to describe where to get original binaries, how to patch the original image.

Don't treat the document as an oracle, go check and verify things. Cautious is the way!

Backup your data.

@cirrusUK
cirrusUK / flyrics
Last active April 27, 2024 05:53
Fuzzy find lyrics and show on scren with on screen display
#!/bin/sh
# Get song lyrics from your chosen source_dir (mp3 folder) lyrico will save lyric files in defined lyrics_dir
# DEPENDENCY : lyrico https://github.com/abhimanyuPathania/lyrico, pv : https://github.com/icetee/pv, \
# osd_cat : http://www.linuxintro.org/wiki/Osd_cat and fzf : https://github.com/junegunn/fzf
dir=(/home/cirrus/.lyrics)
get_selection() {
for p in $dir; do
ls "$p"
done \
| fzf --ansi --height 80% --color fg:-1,bg:-1,hl:4,fg+:3,bg+:233,hl+:4 --color info:150,prompt:3,spinner:150,pointer:3,marker:174,border:11 --border=sharp --prompt='' --exit-0
@cirrusUK
cirrusUK / d0cum3ntaries.m3u
Created October 2, 2022 23:29
934 documentaries m3u plsylist
#EXTM3U
# Playlist created by SMPlayer 22.7.0 (revision 10091)
#EXTINF:0,https://doc.downloadha.com/Behnam/Documentaries/February2018/Animals.with.Cameras.S01E01.PROPER.WEBRip.x264-ION10_www.Downloadha.com_.mp4
https://doc.downloadha.com/Behnam/Documentaries/February2018/Animals.with.Cameras.S01E01.PROPER.WEBRip.x264-ION10_www.Downloadha.com_.mp4
#EXTINF:0,https://doc.downloadha.com/Behnam/Documentaries/February2018/Animals.with.Cameras.S01E01.REPACK.1080p.AMZN.WEB-DL.DDP2.0.H.264-NTb_www.Downloadha.com_.mkv
https://doc.downloadha.com/Behnam/Documentaries/February2018/Animals.with.Cameras.S01E01.REPACK.1080p.AMZN.WEB-DL.DDP2.0.H.264-NTb_www.Downloadha.com_.mkv
#EXTINF:0,https://doc.downloadha.com/Behnam/Documentaries/February2018/Animals.with.Cameras.S01E01.REPACK.720p.AMZN.WEBRip.DDP2.0.x264-NTb_www.Downloadha.com_.mkv
https://doc.downloadha.com/Behnam/Documentaries/February2018/Animals.with.Cameras.S01E01.REPACK.720p.AMZN.WEBRip.DDP2.0.x264-NTb_www.Downloadha.com_.mkv
#EXTINF:0,https://doc.downloadha.com/B
@cirrusUK
cirrusUK / alacritty.toml
Last active April 27, 2024 05:52
alacritty migrate from .yml to .toml format
# $HOME/.config/alacritty/alacritty.toml
# by Rito Ghosh 2023-10-06
# Alacritty now uses TOML formatting for its config files.
# This is a simple example.
# There are the specification here: https://github.com/alacritty/alacritty/blob/master/extra/man/alacritty.5.scd
# It is not obvious how it translates to TOML. But it is extremely straightforward.
# example: WINDOW, COLORS, etc. are tables, and should be represented as [window], [colors], respectively.