Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View Fania's full-sized avatar
🧙‍♀️

Fania Eve Fania

🧙‍♀️
View GitHub Profile
@Fania
Fania / Styles.css
Last active November 5, 2021 14:34
Markdown Stylesheet
body {
background: #1E1E1E;
}
font {
color: #ccc;
}
@Fania
Fania / .gitconfig
Created March 4, 2021 14:06
git history log
[alias]
history = log --graph --date=short --pretty=format:"%h%x09%ad%x09%s"
@Fania
Fania / bump-macOS
Last active December 18, 2023 19:19
pre-commit
#!/bin/sh
PATH="/usr/local/bin:${PATH}"
echo "Patching version numbers..."
# -o only matching
# -P Perl Regex
# -E Extended Regex
match=$(git grep -oP 'magic-v\d+\.\d+\.\d+' sw.js)
@Fania
Fania / gist:2c50eb46b95fa3e2e6220a9ac0e7106d
Created November 11, 2020 10:18
Highlight Overflowing Elements
let w = document.documentElement.offsetWidth;
let t = document.createTreeWalker(document.body, NodeFilter.SHOW_ELEMENT);
let b;
while (t.nextNode()) {
b = t.currentNode.getBoundingClientRect();
if (b.right > w || b.left < 0) {
t.currentNode.style.setProperty('outline', '1px dotted red', 'important');
console.log(t.currentNode);
}
}
@Fania
Fania / .bashrc
Last active August 17, 2022 19:20
Custom bash colours
# on server (for ssh connection colours)
# replace all lines of PS1 = '...' with the following
# replace `/h` host with 'servername'
HISTCONTROL=ignoreboth:erasedups
shopt -s histappend
alias ls='ls -hal --color'
# USER BASHRC
PS1='${debian_chroot:+($debian_chroot)}\[\e[36;49m\]\u\[\e[37;49m\]@\[\e[32;49m\]SERVERNAME\[\e[37;49m\]: \w\[\e[35;49m\]\n\$ \[\e[37;49m\]'
@Fania
Fania / cloudSettings
Last active October 5, 2021 14:03
Visual Studio Code Settings Sync Gist
{"lastUpload":"2021-10-05T14:03:55.917Z","extensionVersion":"v3.4.3"}

Keybase proof

I hereby claim:

  • I am fania on github.
  • I am fania (https://keybase.io/fania) on keybase.
  • I have a public key ASBYktNLfUpc254LWcTuDlA6Z0gxHb9Q0-cLmHS7zgvqVAo

To claim this, I am signing this object: