Skip to content

Instantly share code, notes, and snippets.

View uxDaniel's full-sized avatar

Daniel Garcia uxDaniel

View GitHub Profile
@uxDaniel
uxDaniel / pasaporte.js
Created June 3, 2022 19:48 — forked from cejaramillof/pasaporte.js
Bookmark: Completar campos solicitar Pasaporte Antioquia
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 = "[email protected]";
document.getElementById("correo_ok").value = "[email protected]";
document.getElementById("acepto").checked = true;
})();
@cejaramillof
cejaramillof / pasaporte.js
Last active September 1, 2023 13:32
Bookmark: Completar campos solicitar Pasaporte Antioquia
// Realizar pago
// https://sedeelectronica.antioquia.gov.co/pasaporte/user/pago/
javascript: (function () {
document.getElementById("tipo_ide").value = "CC";
document.getElementsByName("data[tipo_ide]").value = "CC";
document.getElementById("num_ide").value = "cedula"; /* "00.000.000" */
document.getElementById("num_ide_confirm").value = "cedula"; /* "00.000.000" */
document.getElementById("nombre").value = "nombres";
document.getElementById("apellido").value = "apellidos";
document.getElementById("mobile").value = "cel";
@cejaramillof
cejaramillof / visa.py
Last active April 27, 2024 01:40 — forked from yaojialyu/visa.py
ais usvisa reschedule - Colombian Adaptation
# -*- coding: utf8 -*-
import time
import json
import random
import platform
from datetime import datetime
import requests
from selenium import webdriver
@bendog
bendog / django_functional_view_to_class_based_view.md
Last active February 17, 2022 23:46
Django functional view to class based view refactoring

Django functional view to class based view refactoring

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.

Setup the model and form

First let's setup the supporting files.

Create the models

@felipou
felipou / decrypt_dbeaver.py
Last active October 7, 2024 17:09
DBeaver password decryption script
# 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"
@ricardojba
ricardojba / windows_hardening.cmd
Last active October 28, 2024 09:17
A Windows hardening script
::##########################################################################################################################
::
:: This script can ruin your day, if you run it without fully understanding what it does, you don't know what you are doing,
::
:: OR BOTH!!!
::
:: YOU HAVE BEEN WARNED!!!!!!!!!!
::
:: This script is provided "AS IS" with no warranties, and confers no rights.
:: Feel free to challenge me, disagree with me, or tell me I'm completely nuts in the comments section,
#!/bin/bash
set -e
CONTENTS=$(tesseract -c language_model_penalty_non_dict_word=0.8 --tessdata-dir /usr/local/share/tessdata/ "$1" stdout -l eng | xml esc)
hex=$((cat <<EOF
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
@Ashung
Ashung / sketch_diff.sh
Last active January 21, 2020 12:26
Diff Sketch file with Kaleidoscope.
#!/usr/bin/env bash
sketchtool=/Applications/Sketch.app/Contents/Resources/sketchtool/bin/sketchtool
#echo $(python --version)
function extractSketchFile () {
sketchFile=$1
folder=${sketchFile%.sketch}
@alexellis
alexellis / timelapse.md
Created March 9, 2017 08:48 — forked from porjo/timelapse.md
ffmpeg time-lapse

Convert sequence of JPEG images to MP4 video

ffmpeg -r 24 -pattern_type glob -i '*.JPG' -i DSC_%04d.JPG -s hd1080 -vcodec libx264 timelapse.mp4

  • -r 24 - output frame rate
  • -pattern_type glob -i '*.JPG' - all JPG files in the current directory
  • -i DSC_%04d.JPG - e.g. DSC_0397.JPG
  • -s hd1080 - 1920x1080 resolution

Slower, better quality