Skip to content

Instantly share code, notes, and snippets.

View alixti's full-sized avatar
🎯
Focusing

Diego Muñoz alixti

🎯
Focusing
View GitHub Profile
@danallison
danallison / downloadString.js
Created September 29, 2014 16:44
download string as text file
function downloadString(text, fileType, fileName) {
var blob = new Blob([text], { type: fileType });
var a = document.createElement('a');
a.download = fileName;
a.href = URL.createObjectURL(blob);
a.dataset.downloadurl = [fileType, a.download, a.href].join(':');
a.style.display = "none";
document.body.appendChild(a);
a.click();
@lukehedger
lukehedger / ffmpeg-compress-mp4
Last active July 28, 2024 11:11
Compress mp4 using FFMPEG
$ ffmpeg -i input.mp4 -vcodec h264 -acodec mp2 output.mp4
@edgardo001
edgardo001 / nacionalidad.sql
Created September 29, 2016 20:08
Insert SQL de nacionalidades, gentilicios e ISO de cada pais
INSERT INTO`nacionalidad`(`PAIS_NAC`,`GENTILICIO_NAC`,`ISO_NAC`)VALUES('Afganistán','AFGANA','AFG');
INSERT INTO`nacionalidad`(`PAIS_NAC`,`GENTILICIO_NAC`,`ISO_NAC`)VALUES('Albania','ALBANESA','ALB');
INSERT INTO`nacionalidad`(`PAIS_NAC`,`GENTILICIO_NAC`,`ISO_NAC`)VALUES('Alemania','ALEMANA','DEU');
INSERT INTO`nacionalidad`(`PAIS_NAC`,`GENTILICIO_NAC`,`ISO_NAC`)VALUES('Andorra','ANDORRANA','AND');
INSERT INTO`nacionalidad`(`PAIS_NAC`,`GENTILICIO_NAC`,`ISO_NAC`)VALUES('Angola','ANGOLEÑA','AGO');
INSERT INTO`nacionalidad`(`PAIS_NAC`,`GENTILICIO_NAC`,`ISO_NAC`)VALUES('AntiguayBarbuda','ANTIGUANA','ATG');
INSERT INTO`nacionalidad`(`PAIS_NAC`,`GENTILICIO_NAC`,`ISO_NAC`)VALUES('ArabiaSaudita','SAUDÍ','SAU');
INSERT INTO`nacionalidad`(`PAIS_NAC`,`GENTILICIO_NAC`,`ISO_NAC`)VALUES('Argelia','ARGELINA','DZA');
INSERT INTO`nacionalidad`(`PAIS_NAC`,`GENTILICIO_NAC`,`ISO_NAC`)VALUES('Argentina','ARGENTINA','ARG');
INSERT INTO`nacionalidad`(`PAIS_NAC`,`GENTILICIO_NAC`,`ISO_NAC`)VALUES('Armenia','ARMENIA','ARM');
@amboutwe
amboutwe / wordpress_robots_custom.php
Last active July 10, 2024 17:50
Filters and example code for Yoast SEO robots or WP robots.txt
<?php
/********* DO NOT COPY THE PARTS ABOVE THIS LINE *********/
/*
* Replace Disallow with Allow Generated Robots.txt
* Credit: Unknown
* Last Tested: June 09 2020 using WordPress 5.4.1
*/
add_filter('robots_txt','custom_robots');
@danferth
danferth / .htaccess
Created September 29, 2018 00:07
My standard htaccess file
# ######################################################################
# This below is extracted from the HTML5 boilerplate htaccess file. #
# ######################################################################
#
# Apache Server Configs v3.0.0 | MIT License
# https://github.com/h5bp/server-configs-apache
# (!) Using `.htaccess` files slows down Apache, therefore, if you have
# access to the main server configuration file (which is usually called
# `httpd.conf`), you should add this logic there.
@NewEraCracker
NewEraCracker / antiNSA.bat
Last active January 10, 2024 12:30
antiNSA.bat
@REM
@REM Absolute Computrace/Lojack/BeeInject Disabler
@REM
@REM Works around the Ring -3 Bootkit part of
@REM NSA/TAO and CIA/IOC Framework
@REM
@REM This tool will backup original Computrace/Lojack files,
@REM disable the services and then add dummy read-only copies.
@REM
@REM Edited to strengthen protection against removal
@vosidiy
vosidiy / basic.html
Created December 12, 2019 15:25
Offcanvas collapse
<nav class="navbar navbar-expand-lg navbar-dark bg-primary">
<a class="navbar-brand" href="#">Navbar</a>
<button class="navbar-toggler" type="button" data-trigger="#main_nav">
<span class="navbar-toggler-icon"></span>
</button>
<div class="navbar-collapse" id="main_nav">
<div class="offcanvas-header mt-3">
<button class="btn btn-outline-danger btn-close float-right"> &times Close </button>
<h5 class="py-2 text-white">Main navbar</h5>
</div>
@jcherven
jcherven / WindowsSystemFont-RestoreSegoeUI.reg
Created December 31, 2019 16:48
Restore Segoe UI as the Windows 10 system UI font (rolls back changes from companion script)
Windows Registry Editor Version 5.00
; This is a companion script for https://gist.github.com/jcherven/42b84294248674c29eb50cb711114315
; Rolls back changes made by the above registry patch script
; Don't edit this file; save and double click to run.
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts]
"Segoe UI (TrueType)"="segoeui.ttf"
@Dakedres
Dakedres / README.md
Last active July 29, 2024 03:29
A Windows 95/98 styled scrollbar for https://windows93.net

Install

Please note, this stylesheet may not work on all browsers, as the CSS scrollbar API is not standardized.

1.1.0

  • Made the checkerboard pattern translucent.

An guide how to activate Windows 11 Pro for free

Why?

Because you will get some more features like an Bitlocker and host your device as an External Desktop which can be accessed through the internet

Am i also able to switch from any other edition to Pro?

The answer is yes! You can switch from almost any edition to Pro completely for free!

Note for users with unactivated Pro edition

People which already have Pro, but not activated, can skip to this step.

Getting started

What you first need to do is open CMD (Command Prompt) as Administrator using this keyboard key: