Skip to content

Instantly share code, notes, and snippets.

View juanfernandes's full-sized avatar
💭
Available for contract / freelance work

Juan Fernandes juanfernandes

💭
Available for contract / freelance work
View GitHub Profile
@DMeechan
DMeechan / using-gpg.md
Created June 12, 2019 15:03
Using GPG

Prerequisites (Mac)

  • brew install gnupg

Setting up GitHub / GitLab

  1. Check public key ID: gpg --list-secret-keys --keyid-format LONG
  2. Then where it says sec rsa4096/KEY_ID, take the KEY_ID and put it into the command below:
  3. Copy public key: gpg --armor --export KEY_ID | pbcopy
  4. Open up GitHub (or GitLab): open https://github.com/settings/keys
@5t3ph
5t3ph / element-classes-and-ids-vanilla.css
Last active January 25, 2022 04:06
Tag HTML elements with their class names and IDs to visualize page structure
*[class],
*[id] {
position: relative;
outline: 2px dashed red;
}
*[class]::before, *[class]::after,
*[id]::before,
*[id]::after {
position: absolute;
@5t3ph
5t3ph / colorized-list-bullets.css
Created July 13, 2021 02:38
3 Quick Modern CSS Examples
/*
OLD hacky way
*/
ul {
list-style: none;
padding: 0;
}
li {
position: relative;
@justmarkup
justmarkup / userstyles-mastodon.css
Last active November 8, 2022 09:03
User stylesheet for Mastodon
/* Visually warn about inaccessible images in feed */
.status img:not([alt]),
.status img[alt=""] {
border-top: 2em solid red;
}
/* Highlight private toots, toots only mentioned people can see. From https://mastodon.social/@matuzo */
.status__wrapper-direct {
padding-inline-end: 20px;
}