Skip to content

Instantly share code, notes, and snippets.

View noviluni's full-sized avatar
📈
Growing up!

Marc Hernández noviluni

📈
Growing up!
View GitHub Profile
@noviluni
noviluni / admin.py
Last active March 7, 2024 16:18 — forked from safar/admin.py
Large Table Paginator for Django: Scale Django admin pages and avoid timeouts.
from django.contrib.admin import ModelAdmin
from .paginator import LargeTablePaginator
class MyTableAdmin(ModelAdmin):
...
paginator = LargeTablePaginator
show_full_result_count = False # Recommended to avoid another count()
...
scrapy/scrapy/__init__.py:23:80: --> 80
scrapy/scrapy/cmdline.py:86:80: --> 88
scrapy/scrapy/cmdline.py:158:80: --> 81
scrapy/scrapy/cmdline.py:170:80: --> 88
scrapy/scrapy/cmdline.py:171:80: --> 147
scrapy/scrapy/crawler.py:53:80: --> 80
scrapy/scrapy/crawler.py:266:80: --> 91
scrapy/scrapy/crawler.py:298:80: --> 88
scrapy/scrapy/crawler.py:335:80: --> 81
scrapy/scrapy/dupefilters.py:63:80: --> 82
scrapy/tests/test_utils_sitemap.py:26 --> 237
scrapy/tests/test_utils_sitemap.py:41 --> 202
scrapy/tests/test_utils_iterators.py:163 --> 172
scrapy/tests/test_utils_url.py:31 --> 150
scrapy/tests/test_responsetypes.py:81 --> 149
scrapy/scrapy/cmdline.py:171 --> 147
scrapy/tests/test_exporters.py:335 --> 141
scrapy/tests/test_spider.py:123 --> 140
scrapy/tests/test_utils_sitemap.py:200 --> 139
scrapy/tests/test_linkextractors.py:437 --> 138
var solutions = {
"Albania": 27, "Austria": 29, "Bélgica": 30, "Bulgaria": 31,
"Bosnia y Herzegovina": 32, "Bielorrusia": 33, "Suiza": 34,
"República Checa": 35, "Alemania": 36, "Dinamarca": 37, "España": 40,
"Estonia": 41, "Finlandia": 42, "Francia": 43, "Reino Unido": 46,
"Grecia": 49, "Croacia": 52, "Hungría": 53, "Islandia": 54, "Irlanda": 55,
"Italia": 56, "Kosovo": 60, "Lituania": 61, "Luxemburgo": 62, "Letonia": 63,
"Moldavia": 64, "Macedonia del Norte": 65, "Países Bajos": 66,
"Montenegro": 67, "Noruega": 68, "Polonia": 73, "Portugal": 74, "Rumania": 75,
"Rusia": 76, "República de Serbia": 90, "Eslovenia": 91, "Eslovaquia": 92,
var solutions = {
"Albania": 0, "Austria": 2, "Bélgica": 3, "Bulgaria": 4, "Bosnia y Herzegovina": 5,
"Bielorrusia": 6, "Suiza": 7, "República Checa": 8, "Alemania": 9, "Dinamarca": 10,
"España": 11, "Estonia": 12, "Finlandia": 13, "Francia": 14, "Reino Unido": 15,
"Grecia": 16, "Croacia": 17, "Hungría": 18, "Islandia": 19, "Irlanda": 20,
"Italia": 21, "Kosovo": 22, "Lituania": 23, "Luxemburgo": 24, "Letonia": 25,
"Moldavia": 26, "Macedonia del Norte": 27, "Países Bajos": 28, "Montenegro": 29,
"Noruega": 30, "Polonia": 31, "Portugal": 32, "Rumania": 33, "Rusia": 34,
"República de Serbia": 35, "Eslovenia": 36, "Eslovaquia": 37, "Suecia": 38,
"Ucrania": 39, "Georgia": 40, "Turquía": 41, "Mónaco": 42, "Liechtenstein": 43,
@noviluni
noviluni / frida_multiple_unpinning.js
Created August 26, 2021 09:10 — forked from akabe1/frida_multiple_unpinning.js
Another Android ssl certificate pinning bypass for various methods
/* Android ssl certificate pinning bypass script for various methods
by Maurizio Siddu
Run with:
frida -U -f [APP_ID] -l frida_multiple_unpinning.js --no-pause
*/
setTimeout(function() {
Java.perform(function () {
console.log('');
// Since some time ago EliteTorrent and other websites require to go through
// an annoying process for getting the links. This JS piece allows to skip it.
// You can automatically inject this with JSInjector or similar.
// Feel free to adapt it.
// (URL is usually base64 encoded several times and then encrypted with the Caesar Cipher)
if (window.location.href.indexOf("https://www.elitetorrent.nz") != -1) {
var link = document.getElementsByClassName('enlace_torrent')[0].href;
var url_encoded = link.slice(link.indexOf('?i=') + 3);
var url = atob(atob(atob(atob(atob(url_encoded)))));
@noviluni
noviluni / segurosdevida.js
Created April 3, 2022 18:45
Skip segurosdevida.site annoying redirects (descargaranimes.net)
// This code allows to skip some annyoing redirects in websites like descargaranimes.net, etc.
// It can be automatically injected with JS Injector, etc.
if (window.location.href.indexOf("segurosdevida.site") != -1) {
document.getElementById('wpsafe-link').getElementsByTagName('a')[0].click()
}