Skip to content

Instantly share code, notes, and snippets.

View juanfernandes's full-sized avatar

Juan Fernandes juanfernandes

View GitHub Profile

Keybase proof

I hereby claim:

  • I am juanfernandes on github.
  • I am juanfernandes (https://keybase.io/juanfernandes) on keybase.
  • I have a public key ASCNPfnhhCmCmE2iGXsOlKcNB4MfPGdrKOm8AuoJDiYT7wo

To claim this, I am signing this object:

@AllThingsSmitty
AllThingsSmitty / css-not.scss
Last active November 28, 2018 16:16
Use CSS :not() instead of applying and unapplying borders on navigations
.nav-tab {
...
// instead of putting it on
border-right: 1px solid #424242;
&:last-child {
border-right: 0; // and then taking it off
}
// use CSS not() to only apply to the elements you want
&:not(:last-child) {
border-right: 1px solid #424242;
@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;
@mopemope
mopemope / config.fish
Last active June 23, 2022 11:37
config.fish
# Path to Oh My Fish install.
set -gx OMF_PATH /home/ma2/.local/share/omf
# Customize Oh My Fish configuration path.
#set -gx OMF_CONFIG /home/ma2/.config/omf
set fish_plugins pbcopy
set fish_greeting ""
set -x LC_CTYPE ja_JP.UTF-8
@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;
}
@juanfernandes
juanfernandes / 01_web-dev-setup-files.md
Last active November 10, 2022 15:06
Web Dev Environment Setup

Web Dev Environment Setup

Note: This was for my Ubuntu setup - need to update this for my macbook setup

@juanfernandes
juanfernandes / 01_sublime-text-setup.md
Last active July 27, 2023 14:40
Sublime Text Setup

Sublime Text setup files

@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;
@ModulesUnraveled
ModulesUnraveled / 01. Setup a new (M1) mac.md
Last active December 13, 2023 15:37
Setup a new (M1) mac

Before anything else:

  • 1Password: The best password manager (Need this early so that I can enter passwords for the rest of the stuff below)

App Store:

  • Mindnode: Mind Mapping
  • Keynote: Presentations
  • Numbers: Spreadsheets
  • Pages: Documents