Open PowerShell with Admin rights and run wsl --install -d Ubuntu-24.04.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ////////////////////// | |
| // QUERIES | |
| ////////////////////// | |
| const Query = (function() { | |
| const receiptsWithCounts = { | |
| name: 'receiptsWithCounts', | |
| query: `{"query":"query | |
| receiptsWithCounts($startDate: String!, $endDate: String!, $documentType: String!, $documentSubType: String!) { | |
| receiptsWithCounts(startDate: $startDate, endDate: $endDate, documentType: $documentType, documentSubType: $documentSubType) { | |
| receipts { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| async function scrollDown() { | |
| const wrapper = document.querySelector("#search-page-list-container"); | |
| await new Promise((resolve, reject) => { | |
| var totalHeight = 0; | |
| var distance = 600; | |
| var timer = setInterval(async () => { | |
| var scrollHeightBefore = wrapper.scrollHeight; | |
| wrapper.scrollBy(0, distance); | |
| totalHeight += distance; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| javascript: (function () { | |
| document.getElementById("num_ide").value = "cedulaaaaaaa"; | |
| document.getElementById("fecha_pago").value = "fechaaaaa"; | |
| document.getElementById("tipo_solic").value = 1; | |
| document.getElementById("num_tel").value = "cel"; | |
| document.getElementById("correo").value = "correo@gmail.com"; | |
| document.getElementById("correo_ok").value = "correo@gmail.com"; | |
| document.getElementById("acepto").checked = true; | |
| })(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Realizar pago | |
| // https://sedeelectronica.antioquia.gov.co/pasaporte/user/pago/ | |
| javascript: (function () { | |
| document.getElementById("tipo_ide").value = "CC"; /** CC, TI, RC */ | |
| document.getElementsByName("data[tipo_ide]").value = "CC"; /** CC, TI, RC */ | |
| document.getElementById("num_ide").value = "numero de cedula"; /* "00000000" */ | |
| document.getElementById("num_ide_confirm").value = "numero de cedula"; /* "00000000" */ | |
| document.getElementById("nombre").value = "nombres"; | |
| document.getElementById("apellido").value = "apellidos"; | |
| document.getElementById("email").value = "correo"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # -*- coding: utf8 -*- | |
| import time | |
| import json | |
| import random | |
| import platform | |
| from datetime import datetime | |
| import requests | |
| from selenium import webdriver |
Moved to a repository. 👍
To understand what's happening with django generic class based views, lets create a function view where we handle all of the functionality explicity, then migrate the functionality to a class.
First let's setup the supporting files.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # https://stackoverflow.com/questions/39928401/recover-db-password-stored-in-my-dbeaver-connection | |
| import sys | |
| import base64 | |
| print(sys.argv[1]) | |
| PASSWORD_ENCRYPTION_KEY = b"sdf@!#$verf^wv%6Fwe%$$#FFGwfsdefwfe135s$^H)dg" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # This is a blocklist to block samsung smart tv's sending meta data at home. | |
| # Please help to collect domains! | |
| # It could be that the TV does not receive any more updates or other services no longer work. Please report such an incident. | |
| abtauthprd.samsungcloudsolution.com | |
| acr0.samsungcloudsolution.com | |
| ad.samsungadhub.com | |
| ads.samsungads.com | |
| amauthprd.samsungcloudsolution.com | |
| api-hub.samsungyosemite.com |
NewerOlder