Skip to content

Instantly share code, notes, and snippets.

@simpla
simpla / calcular_cuit.php
Last active May 13, 2024 13:42
Calcular y Validar el número de CUIT/CUIL en Argentina
<?php
/**
* Cálculo de CUIT/CUIL. La función no tiene en cuenta la posibilidad
* de CUITs repetidos ya que no tiene acceso a la DB de registros (puede
* ocurrir ya que algunos DNI coinciden con las LE y LC)
*
* @param char $tipo: tipo de CUIT, puede valer H, M y E (hombre, mujer, empresa)
* @param string $dni: número de DNI (a las empresas, la AFIP les asigna un nro.)
* @return string con el CUIT sin guiones o false en caso de error
@nrrrdcore
nrrrdcore / inset_input.css
Created August 9, 2012 23:35
The Perfect Inset Input CSS
input {
height: 34px;
width: 100%;
border-radius: 3px;
border: 1px solid transparent;
border-top: none;
border-bottom: 1px solid #DDD;
box-shadow: inset 0 1px 2px rgba(0,0,0,.39), 0 -1px 1px #FFF, 0 1px 0 #FFF;
}
@eduardoflorence
eduardoflorence / main.dart
Created December 24, 2020 20:03
GetX - Sample GetConnect
import 'package:flutter/material.dart';
import 'package:get/get.dart';
void main() {
runApp(GetMaterialApp(
initialRoute: '/home',
getPages: [
GetPage(
name: '/home',
page: () => HomePage(),
@Joao-Peterson
Joao-Peterson / gmk67-manual.md
Last active May 13, 2024 13:41
GMK67 manual (English)
@rmehner
rmehner / delete-databases.js
Last active May 13, 2024 13:40
Delete all indexedDB databases
// Credit to @steobrien from https://gist.github.com/rmehner/b9a41d9f659c9b1c3340#gistcomment-2940034
// for modern browsers, this works:
const dbs = await window.indexedDB.databases()
dbs.forEach(db => { window.indexedDB.deleteDatabase(db.name) })
// for older browsers, have a look at previous revisions of this gist.
@sekcompsci
sekcompsci / Comparison Espressif ESP MCUs.md
Created June 18, 2021 03:56 — forked from fabianoriccardi/Comparison Espressif ESP MCUs.md
Comparison table for ESP8266/ESP32/ESP32-S2/ESP32-S3/ESP32-C3/ESP32-C6

Comparison table for ESP8266/ESP32/ESP32-S2/ESP32-S3/ESP32-C3/ESP32-C6

A minimal table to compare the Espressif's MCU families.

ESP8266 ESP32 ESP32-S2 ESP32-S3 ESP32-C3 ESP32-C6
Announcement Date 2014, August 2016, September 2019, September 2020, December
@wavezhang
wavezhang / java_download.sh
Last active May 13, 2024 13:37
download java from oracle without login
wget -c --no-cookies --no-check-certificate --header "Cookie: oraclelicense=accept-securebackup-cookie" https://download.oracle.com/otn-pub/java/jdk/12.0.2+10/e482c34c86bd4bf8b56c0b35558996b9/jdk-12.0.2_linux-x64_bin.tar.gz
@kuri65536
kuri65536 / iptables_allow_hpprinter.sh
Last active May 13, 2024 13:36
iptables allow ports commands for HP Printer
if1=br0
if2=wlan1
net=192.168.2.0/24
ip=192.168.2.2
iptables -I FORWARD -i $if1 -o $if2 -s $net -d $ip -p udp -m multiport \
--dports 80,137,138,161,427,443,5222,5223,5297,5298,5353 \
-m state --state NEW -j ACCEPT
iptables -I FORWARD -i $if1 -o $if2 -s $net -d $ip -p tcp -m multiport \
--dports 80,137,139,427,443,5222,5223,5297,5298,5353,9100,9220,9500 \
-m state --state NEW -j ACCEPT
@devomman
devomman / office-activation.md
Created May 30, 2023 11:01
Office Activation Command by Omman

Office 2021

Method 1: Using my command line

Step 1.1: Open cmd program with administrator rights.

  • First, you need to open cmd in the admin mode, then run all commands below one by one.

Step 1.2: Get into the Office directory in cmd.

  • For x86 and x64
cd /d %ProgramFiles(x86)%\Microsoft Office\Office16
cd /d %ProgramFiles%\Microsoft Office\Office16
@bmaupin
bmaupin / free-database-hosting.md
Last active May 13, 2024 13:33
Free database hosting