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 / 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.

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 / 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()
{

}
@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 / 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 / rain.cpp
Created July 30, 2020 00:36 — forked from thaenor/rain.cpp
openGL particle rain snow and hail effects
// May Ang
// [email protected]
// CS 161 - Animation & Visualization
// Final Project - Rain/Hail/Snow Simulation
//source: https://classes.soe.ucsc.edu/cmps161/Winter09/projects/mang/finalproject.html
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
import operator
# Estas cedulas fueron emitidas por la JCE, pero no cumplen con el
# digito verificador, por lo cual deben ser verificadas por separado.
excepcionesCedulas = ['00000000018', '11111111123', '00100759932', '00105606543', '00114272360', '00200123640',
'00200409772', '00800106971', '01200004166', '01400074875', '01400000282', '03103749672',
'03200066940', '03800032522', '03900192284', '04900026260', '05900072869', '07700009346',
'00114532330', '03121982479', '40200700675', '40200639953', '00121581750', '00119161853',
'22321581834', '00121581800', '09421581768', '22721581818', '90001200901', '00301200901',
'40200452735', '40200401324', '10621581792'];
@sgtrusty
sgtrusty / Efficient Encrypted UEFI-Booting Arch Installation
Created May 22, 2020 02:41 — forked from HardenedArray/Efficient Encrypted UEFI-Booting Arch Installation
An effcient method to install Arch Linux with encrypted root and swap filesystems and boot from UEFI. Multi-OS, and VirtualBox, UEFI-booting are also supported.
# OBJECTIVE: Install Arch Linux with encrypted root and swap filesystems and boot from UEFI.
# Note this encrypted installation method, while perfectly correct and highly secure, CANNOT support encrypted /boot and
# also CANNOT be subsequently converted to support an encrypted /boot!!! A CLEAN INSTALL will be required!
# Therefore, if you want to have an encrypted /boot or will want an encrypted /boot system at some point in the future,
# please ONLY follow my encrypted /boot installation guide, which lives here: