Skip to content

Instantly share code, notes, and snippets.

View fizzvr's full-sized avatar
🏳️
2023

Vladimir Rodríguez fizzvr

🏳️
2023
View GitHub Profile
@fizzvr
fizzvr / einvoice.py
Created June 15, 2023 16:15 — forked from ajepe/einvoice.py
Electronic Document SRI Ecuador
# -*- coding: utf-8 -*-
##############################################################################
#
# E-Invoice Module - Ecuador
# Copyright (C) 2014 VIRTUALSAMI CIA. LTDA. All Rights Reserved
# alcides@virtualsami.com.ec
# $Id$
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@fizzvr
fizzvr / validar_cedula_ecuador.js
Created July 4, 2021 20:28 — forked from vickoman/validar_cedula_ecuador.js
Algoritmo para validar cedulas ecuatorianas.
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js" type="text/javascript"></script>
<script>
$(function(){
/**
* Algoritmo para validar cedulas de Ecuador
* @Author : Victor Diaz De La Gasca.
* @Fecha : Quito, 15 de Marzo del 2013
* @Email : vicmandlagasca@gmail.com
* @Pasos del algoritmo
// This function converts the byte to the corresponding amount, be it kilo, mega, GB, etc.
const convertWeightByte = (byte) => {
let sizekiloByte = (byte / 1024);
let sizeMega = (sizekiloByte / 1024);
let sizeGigabyte = (sizeMega / 1024);
let sizeTerabyte = (sizeGigabyte / 1024);
let sizePetabyte = (sizeTerabyte / 1024);
let sizeExabyte = (sizePetabyte / 1024);
if(sizekiloByte > 0 && sizekiloByte <= 1024){
// This function converts the byte to the corresponding amount, be it kilo, mega, GB, etc.
const convertWeightByte = (byte) => {
let sizekiloByte = (byte / 1024);
let sizeMega = (sizekiloByte / 1024);
let sizeGigabyte = (sizeMega / 1024);
let sizeTerabyte = (sizeGigabyte / 1024);
let sizePetabyte = (sizeTerabyte / 1024);
let sizeExabyte = (sizePetabyte / 1024);
if(sizekiloByte > 0 && sizekiloByte <= 1024){
@fizzvr
fizzvr / Github Webhook Tutorial.md
Created December 21, 2018 19:45 — forked from jagrosh/Github Webhook Tutorial.md
Simple Github -> Discord webhook

Step 1 - Make a Discord Webhook

  1. Find the Discord channel in which you would like to send commits and other updates

  2. In the settings for that channel, find the Webhooks option and create a new webhook. Note: Do NOT give this URL out to the public. Anyone or service can post messages to this channel, without even needing to be in the server. Keep it safe! WebhookDiscord

Step 2 - Set up the webhook on Github

  1. Navigate to your repository on Github, and open the Settings Settings
@fizzvr
fizzvr / README.md
Created August 8, 2016 19:37 — forked from joelverhagen/README.md
Jekyll YouTube Embed Plugin

This is a plugin meant for Jekyll.

Example use:

Easily embed a YouTube video. Just drop this file in your _plugins directory.

{% youtube oHg5SJYRHA0 %}
@fizzvr
fizzvr / install.sh
Created May 11, 2016 07:54 — forked from claudiosanches/install.sh
Ubuntu - Install Strem.io
#!/usr/bin/env bash
sudo su
curl -SO# http://178.62.254.47/Stremio3.5.1.linux.tar.gz
mkdir -p /opt/stremio
tar -xvzf Stremio3.5.1.linux.tar.gz -C /opt/stremio
curl -SO# http://www.strem.io/3.0/stremio-white-small.png
mv stremio-white-small.png /opt/stremio/
curl -SO# https://gist.githubusercontent.com/claudiosmweb/797b502bc095dabee606/raw/52ad06b73d90a4ef389a384fbc815066c89798eb/stremio.desktop
mv stremio.desktop /usr/share/applications/
@fizzvr
fizzvr / gist:01418f7c714c06ed3ec1
Created October 8, 2015 02:23 — forked from nisanthchunduru/gist:4608499
Installing nodejs on debian using checkinstall
#!/bin/sh
##############################################################
#
# Rock-Solid Node.js Platform on Ubuntu
# Auto-config by apptob.org
# Author: Ruslan Khissamov, email: rrkhissamov@gmail.com
# GitHub: https://github.com/rushis
#
##############################################################
<!DOCTYPE html>
<html>
<head><title>aXe Rule Descriptions</title></head>
<body>
<table>
<thead><tr><th scope="col">Rule ID</th><th scope="col">Description</th><th scope="col">Tags</th></tr></thead>
<tbody><tr><td>accesskeys</td><td>Ensures that each element on the page with an accesskey attribute has a unique value</td><td>wcag2a, wcag211</td></tr>
<tr><td>area-alt</td><td>Checks the &lt;area&gt; elements of image maps to ensure that they have an alternative text</td><td>wcag2a, wcag111, section508, section508a</td></tr>
<tr><td>aria-allowed-attr</td><td>Checks all attributes that start with &#39;aria-&#39; to ensure that they are all official WAI-ARIA attributes</td><td>wcag2a, wcag411</td></tr>
<tr><td>aria-required-attr</td><td>Checks all elements that contain WAI-ARIA roles to ensure that all required aria- attributes are present</td><td>wcag2a, wcag411</td></tr>
SELECT orders.customerid,
orders.transactiondate,
orders.transactionamount,
cohorts.cohortdate
FROM orders
JOIN (SELECT customerid,
Min(transactiondate) AS cohortDate
FROM orders
GROUP BY customerid) AS cohorts
ON orders.customerid = cohorts.customerid;