Skip to content

Instantly share code, notes, and snippets.

View sgtrusty's full-sized avatar
💭
happy im heeeere

Santiago González sgtrusty

💭
happy im heeeere
View GitHub Profile
@sgtrusty
sgtrusty / regex-validation.js
Last active August 8, 2020 18:19
Password validation Regex
// Longitud entre 6 - 24 caracteres
// Al Menos una letra mayúscula (A-Z)
// Al Menos una letra minúscula (a-z)
// Al Menos un número (0-9)
// Máximo 2 caracteres repetitivos
// Ejemplos:
// "aa" is OK 👍
// "aaa" is NOT OK 👎
//
// Caracteres especiales soportados: ! @ # $ % ^ & * ( ) + = _ - { } [ ] : ; ” ’ ? < > , .
@sgtrusty
sgtrusty / delete-other-engines.js
Created August 16, 2020 01:28
Delete other search engines from google chrome
// source: https://superuser.com/a/1547727/1158937
const otherEngines = document.querySelector("body > settings-ui")
.shadowRoot.querySelector("#main")
.shadowRoot.querySelector("settings-basic-page")
.shadowRoot.querySelector("#basicPage > settings-section.expanded > settings-search-page")
.shadowRoot.querySelector("#pages > settings-subpage > settings-search-engines-page")
.shadowRoot.querySelector("#otherEngines").shadowRoot
let n = otherEngines.querySelector('iron-list').childElementCount - 1;
let rmbtn = otherEngines.querySelector('#frb0')
@sgtrusty
sgtrusty / 1_VsVimCookbook.md
Created October 2, 2020 04:11 — forked from dogfuntom/Vim Ideas.md
VsVim Registers and Marks Cheat Sheet #vs #vim #vsvim

Workarounds

Filling empty line between { and }

When you type a new method, VS aids you and you end up with this:

private void Foo()
{

}

Important URLs worth bookmarking

or checking out later

Blogging

  • Open-source self hosted comments for a static website url.

    This comparison table is inspired by staticsitegenerators.net. Contribute at github — add the missing data. Github-related data (stars, open issues + PR, etc.) are updated daily automatically. Want different columns? Noted a bug? Submit an issue.

@sgtrusty
sgtrusty / chrome-extensions.md
Last active September 27, 2021 17:44
Chrome Extensions
  • Ecosia - The search engine that plants trees: This extension sets your search engine to Ecosia and customizes your new tab page so you can plant trees with every search.
  • HTTPS Everywhere: Encrypt the Web! Automatically use HTTPS security on many sites.
  • Kaspersky Protection: Your protection on the Internet with extension from Kaspersky
  • NoScript: Maximum protection for your browser: NoScript allows active content only for trusted domains of your choice to prevent exploitation.
  • Privacy Badger: Privacy Badger automatically learns to block invisible trackers
  • Read Aloud: A Text to Speech Voice Reader: Read out loud the current web-page article with one click. Supports 40+ languages.
  • Tab Snooze: Save articles, videos and todos for later. They'll magically reopen when you need them.
  • The Great Suspender: Make your computer run smoothly by suspending the tabs you aren't using malware
    • or OneTab
  • Toby for Chrome: Better than bookmarks. Organize your browser tabs and access them quickly anywhere.
@sgtrusty
sgtrusty / tools.md
Last active October 24, 2020 23:38
useful tools
@sgtrusty
sgtrusty / docker-cmds.md
Created November 17, 2020 14:22
Docker Accesibility

Docker Accessibility & Commands

Networking

  • docker inspect --format "{{ .NetworkSettings.IPAddress }}"
@sgtrusty
sgtrusty / npp-theme.xml
Last active December 15, 2020 22:24
Deep Black (sg)
<?xml version="1.0" encoding="Windows-1252" ?>
<!--
Style Name: Deep Black
Description: Based on the theme Port VibrantInk by tyler
File name: Deep Black.xml
Created by: Mariusz Kasperkiewicz
Personalized by: Santiago González
Featured language: SQL, C, C++, Pascal, Php, Css, JavaScript, Html, XML, others?
Note: Feel free to modify this style and re-release it. This style is available under the terms of the GNU Free License.
@sgtrusty
sgtrusty / website-useful-codes.md
Last active February 9, 2021 01:39
Useful codes to use on the internet

useful codes to use on the internet

You can use these on the inspector's console, or save them as bookmarks by turning them into a oneliner and writing javascript: before the code.

optimization

  • Clear out website content in order to save RAM:
document.body.innerHTML = "";
document.head.innerHTML = "";