Skip to content

Instantly share code, notes, and snippets.

View uxDaniel's full-sized avatar

Daniel Garcia uxDaniel

View GitHub Profile

virtualenvs in python 3

  • creates a virtualenv

    python3 -m venv venv

  • activates the virtualenv

    source venv/bin/activate

@uxDaniel
uxDaniel / my git flow.md
Last active July 29, 2023 23:28
My git flow

My usual git flow:

  • Start from the branch I need, in this case main

    git checkout main

  • Update the branch

    git fetch -a -p && git rebase origin/main

@uxDaniel
uxDaniel / .gitignore
Last active June 4, 2022 00:26 — forked from cejaramillof/visa.py
ais usvisa reschedule - Colombian Adaptation
config.ini
@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;
})();
@uxDaniel
uxDaniel / xiaomi_dns_block.lst
Last active May 7, 2020 20:10
PiHole DNS Blocklist Xiaomi
# This is a DNS blocklist for the PiHole (https://pi-hole.net/) to block unnecessary connections to Xiaomi.
#
# License: GPL-3.0-or-later
#
# Please help to collect domains!
abtest.mistat.intl.xiaomi.com
abtest.mistat.xiaomi.com
account.preview.n.xiaomi.net
account.xiaomi.com
@uxDaniel
uxDaniel / essentialjsdesignpatterns.css
Last active August 29, 2015 14:22
Styles for printing correctly the book "Learning JavaScript Design Patterns" by Addy Osmani
/*
Styles for printing correctly the book
"Learning JavaScript Design Patterns" by Addy Osmani
http://addyosmani.com/resources/essentialjsdesignpatterns/book/
*/
@media print {
/* resets */
body {
background: none;
@uxDaniel
uxDaniel / LogFailedSelectors.js
Last active December 17, 2015 01:28
Logs in the console all the failed selectors passed to jQuery calls
//Override the $ function in order to log failed selectors
function $(arg) {
if ( jQuery(arg).length == 0) {
console.log(arg+" fails");
}
return jQuery(arg);
}
//Reassign all the attributes
for (var attrname in jQuery) { $[attrname] = jQuery[attrname]; }