Skip to content

Instantly share code, notes, and snippets.

View bernardoadc's full-sized avatar
🚀
Escaping the past by embracing the future

Bernardo A. Dal Corno bernardoadc

🚀
Escaping the past by embracing the future
View GitHub Profile
:root {
--dark0: #2e3440;
--dark1: #3b4252;
--dark2: #434c5e;
--dark3: #4c566a;
--light0: #d8dee9;
--light1: #e5e9f0;
--light2: #eceff4;
@bernardoadc
bernardoadc / dotfiles.md
Last active January 5, 2021 18:45
dotfiles & other defaults Sync
@bernardoadc
bernardoadc / vanilla.md
Last active November 18, 2019 18:25
Vanilla gists
@juniorcesarabreu
juniorcesarabreu / How to Install Older version of Chrome Extensions.md
Last active July 17, 2024 10:06
How to Install Older version of Chrome Extensions
@grimzy
grimzy / git-pull-all
Created September 15, 2017 02:15
Git pull all remote branches
#!/usr/bin/env bash
git branch -r | grep -v '\->' | while read remote; do git branch --track "${remote#origin/}" "$remote"; done
git fetch --all
git pull --all
@jarrettmeyer
jarrettmeyer / Enable_OLE_Automation.sql
Last active April 6, 2024 07:42
Demonstrates how to send an HTTP request with SQL Server using OLE Automation.
EXEC sp_configure 'Ole Automation Procedures', 1;
GO
RECONFIGURE;
GO
@pierrejoubert73
pierrejoubert73 / markdown-details-collapsible.md
Last active July 17, 2024 20:17
How to add a collapsible section in markdown.

How to add a collapsible section in markdown

1. Example

Click me

Heading

  1. Foo
  2. Bar
    • Baz
  • Qux
@lmcneel
lmcneel / remove-node-modules.md
Last active July 9, 2024 19:06
How to remove node_modules after they have been added to a repo

How to remove node_modules

Create a .gitignore file

  1. Check for an existing .gitignore file in the project directory
ls -a
@ppseprus
ppseprus / entropy-in-short.js
Last active February 27, 2022 14:19 — forked from jabney/entropy.js
Javascript implementation of a Shannon entropy calculation in bits per symbol
// Shannon entropy
const entropy = str => {
return [...new Set(str)]
.map(chr => {
return str.match(new RegExp(chr, 'g')).length;
})
.reduce((sum, frequency) => {
let p = frequency / str.length;
return sum + p * Math.log2(1 / p);
}, 0);
@fntlnz
fntlnz / self-signed-certificate-with-custom-ca.md
Last active July 15, 2024 09:31
Self Signed Certificate with Custom Root CA

Create Root CA (Done once)

Create Root Key

Attention: this is the key used to sign the certificate requests, anyone holding this can sign certificates on your behalf. So keep it in a safe place!

openssl genrsa -des3 -out rootCA.key 4096