Skip to content

Instantly share code, notes, and snippets.

View sp1ke77's full-sized avatar
🏠
Working from home

Isaque Fernandes sp1ke77

🏠
Working from home
View GitHub Profile
@sp1ke77
sp1ke77 / Office 2016 ISO Links at Microsoft.md
Created November 27, 2024 00:08 — forked from Issykul/Office 2016 ISO Links at Microsoft.md
Office 2016 ISO Links at Microsoft
@sp1ke77
sp1ke77 / GPG-Simple-How-To.md
Created November 27, 2024 00:08 — forked from Issykul/GPG-Simple-How-To.md
GPG Simple How-To #gpg
@sp1ke77
sp1ke77 / 7zz_cheat_sheet.md
Created November 27, 2024 00:06 — forked from Issykul/7zz_cheat_sheet.md
A Cheat Sheet for the 7zz Linux Terminal Utility

7zz Cheat Sheet

Overview

7z [Args] [archive.7z] [files / folders to archive]

A file archiver with highest compression ratio

Args:
@sp1ke77
sp1ke77 / Office 2019 ISO Links at Microsoft.md
Created November 27, 2024 00:05 — forked from Issykul/Office 2019 ISO Links at Microsoft.md
Office 2019 ISO Download Links at Microsoft
Cloudflare (https://one.one.one.one/)
1.1.1.1 and 1.0.0.1
1.1.1.2 and 1.0.0.2
1.1.1.3 and 1.0.0.3
2606:4700:4700::1111 and 2606:4700:4700::1001
Google (https://developers.google.com/speed/public-dns/docs/using)
8.8.8.8 and 8.8.4.4
2001:4860:4860::8888 and 2001:4860:4860::8844
@sp1ke77
sp1ke77 / gist:3a9aa9b8278bb3dccd49a7c0dc74e1f8
Created December 11, 2021 02:35 — forked from dvlop/gist:fca36213ad6237891609e1e038a3bbc1
My long list of bad bots to block in htaccess, ready to copy and paste!
# Start Bad Bot Prevention
<IfModule mod_setenvif.c>
# SetEnvIfNoCase User-Agent ^$ bad_bot
SetEnvIfNoCase User-Agent "^12soso.*" bad_bot
SetEnvIfNoCase User-Agent "^192.comAgent.*" bad_bot
SetEnvIfNoCase User-Agent "^1Noonbot.*" bad_bot
SetEnvIfNoCase User-Agent "^1on1searchBot.*" bad_bot
SetEnvIfNoCase User-Agent "^3D_SEARCH.*" bad_bot
SetEnvIfNoCase User-Agent "^3DE_SEARCH2.*" bad_bot
SetEnvIfNoCase User-Agent "^3GSE.*" bad_bot
@sp1ke77
sp1ke77 / no_urls_allowed.php
Created December 7, 2021 16:44 — forked from galbaras/no_urls_allowed.php
Function to invalidate Contact Form 7 input, unless the fields is of type "url" or has "url" in its name, i.e. it is meant for URLs
add_filter( 'wpcf7_validate_text', 'no_urls_allowed', 10, 3 );
add_filter( 'wpcf7_validate_text*', 'no_urls_allowed', 10, 3 );
add_filter( 'wpcf7_validate_textarea', 'no_urls_allowed', 10, 3 );
add_filter( 'wpcf7_validate_textarea*', 'no_urls_allowed', 10, 3 );
function no_urls_allowed( $result, $tag ) {
$tag = new WPCF7_Shortcode( $tag );
$type = $tag->type;
$name = $tag->name;
Edgar Rodrigues Sandi
Edgar Sandi
tw/@EdgarSandi
fb/EdgarSandi
G+/EdgarSandi
Ln/EdgarSandi
Oracle PL/SQL - 24h
Aula 1 - 17/01
@sp1ke77
sp1ke77 / trap_focus.js
Created June 4, 2021 22:17 — forked from myogeshchavan97/trap_focus.js
Code for trapping focus inside modal
// add all the elements inside modal which you want to make focusable
const focusableElements =
'button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])';
const modal = document.querySelector('#exampleModal'); // select the modal by it's id
const firstFocusableElement = modal.querySelectorAll(focusableElements)[0]; // get first element to be focused inside modal
const focusableContent = modal.querySelectorAll(focusableElements);
const lastFocusableElement = focusableContent[focusableContent.length - 1]; // get last element to be focused inside modal

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example