Skip to content

Instantly share code, notes, and snippets.

@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.

Installation guide for ORB-SLAM on UBUNTU 22LTS

1. Installation of ORB-SLAM 3 on a fresh installed Ubuntu 22.04

Install all liberay dependencies.

sudo apt update
@cirrusUK
cirrusUK / skeet_xhamster.sh
Created April 19, 2024 21:43
xhamster.sh
#!/bin/bash
#
# ▓▓▓▓▓▓▓▓▓▓
# ░▓ author ▓ cirrus <cirrus@archlinux.info>
# ░▓ code ▓ https://gist.github.com/cirrusUK
# ░▓ mirror ▓ http://cirrus.turtil.net
# ░▓▓▓▓▓▓▓▓▓▓
# ░░░░░░░░░░
<center>
<body background="bg.gif" >
<pre> <FONT COLOR="17885C">
<title>A Webpage</title> <center> </font><FONT COLOR="#c22e13">Powered by Archlinux Arm + Raspberry Pi</font>
<pre></FONT></pre>
<a href='https://alpha.app.net/cirrusuk' class='adn-button' target='_blank' data-type='follow' data-width='277' data-height='27' data-user-id='@cirrusuk' data-show-username='1' rel='me'><FONT COLOR="C4BE24">Follow me on App.net</FONT> </a><script>(function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src='//d2zh9g63fcvyrq.cloudfront.net/adn.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'adn-button-js'));</script>
https://geo.itunes.apple.com/us/album/perfect/id1193701079?i=1193701400&app=music
<iframe src="http://tools.applemusic.com/embed/v1/song/1193701400?country=us" height="110px" width="100%" frameborder="0"></iframe>
@senthilmpro
senthilmpro / arch1ve-acc-create.js
Last active April 27, 2024 05:49
arch1ve account create - except captcha verification
async function createAccount(){
var USER_PREFIX = 'USER_PREFIX'; // change here.
var USER_PASS = 'USER_PASSWORD'; // change-here
var TIMER_DELAY = 300;
// password
await delay(TIMER_DELAY);
var password = document.getElementById('password1');
password.value = USER_PASS;
@dmmeteo
dmmeteo / 1.srp.py
Last active April 27, 2024 05:48
SOLID Principles explained in Python with examples.
"""
Single Responsibility Principle
“…You had one job” — Loki to Skurge in Thor: Ragnarok
A class should have only one job.
If a class has more than one responsibility, it becomes coupled.
A change to one responsibility results to modification of the other responsibility.
"""
class Animal:
def __init__(self, name: str):