Skip to content

Instantly share code, notes, and snippets.

View Frankie-B's full-sized avatar
💭
New Day New Code

Frankie Bukenya Frankie-B

💭
New Day New Code
  • The Netherlands
View GitHub Profile
@Frankie-B
Frankie-B / .aliases
Created June 4, 2023 14:47 — forked from trulyronak/.aliases
Awesome Terminal Aliases (Featuring Brilliant Bash)
# fun stuff
alias lenny='echo \_(ツ)_/¯ | pbcopy'
alias tuxsay='cowsay -f tux '
alias fortunes='sh ~/.fortunes.sh'
alias life='figlet 42 | lolcat'
alias lol='while true; do sl; done;'
alias starwars='telnet towel.blinkenlights.nl'
alias fancy='figlet $@'
# to make people confused xD
@Frankie-B
Frankie-B / starship.toml
Created June 4, 2023 14:19 — forked from pythoninthegrass/starship.toml
Starship prompt setup
# SOURCE: https://starship.rs/config
# DEBUG via: `starship explain`
# Timeout for commands executed by starship (ms)
command_timeout = 500
# Replace the "❯"
[character]
success_symbol = "[λ](green)"
@Frankie-B
Frankie-B / main.js
Created March 12, 2023 16:33 — forked from kdzwinel/main.js
List all undefined CSS classes
/*
This script attempts to identify all CSS classes mentioned in HTML but not defined in the stylesheets.
In order to use it, just run it in the DevTools console (or add it to DevTools Snippets and run it from there).
Note that this script requires browser to support `fetch` and some ES6 features (fat arrow, Promises, Array.from, Set). You can transpile it to ES5 here: https://babeljs.io/repl/ .
Known limitations:
- it won't be able to take into account some external stylesheets (if CORS isn't set up)
- it will produce false negatives for classes that are mentioned in the comments.
@Frankie-B
Frankie-B / .editorconfig
Created March 12, 2023 00:21 — forked from markbrouch/.editorconfig
Base editorconfig for new projects
# Base editorconfig for new projects
root = true
[*]
end_of_line = lf
indent_style = space
tab_width = 4
charset = utf-8
trim_trailing_whitespace = true
@Frankie-B
Frankie-B / settings.json
Created March 11, 2023 18:14
My current vscode settings based on Kent C Dodds's
{
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true,
"editor.detectIndentation": true,
"editor.lightbulb.enabled": false,
"editor.fontFamily": "Operator Mono, Menlo, Monaco, 'Courier New', monospace",
"editor.fontLigatures": false,
"editor.rulers": [80],
"editor.snippetSuggestions": "top",
"editor.wordBasedSuggestions": false,
@Frankie-B
Frankie-B / obsidian.templater.quick-capture.js
Created February 23, 2023 14:24 — forked from GitMurf/obsidian.templater.quick-capture.js
Obsidian Quick Capture using templater. Activate from anywhere in your vault to record quick ideas, notes, time logging, etc. The Quick Capture file does NOT need to be open.
<%*
//v1.4: Adding option for including a header for each DNP day to fold
//'first' will add to top of file. 'last' will add to bottom of file
let firstOrLastLine = 'first';
//Name of the Quick Capture file. Do NOT include extension '.md'
let qcFileName = 'Quick Capture';
//Leave this blank if you want to use the default file path location (set to '/' to use root of vault)
@Frankie-B
Frankie-B / conventional-commits.md
Created November 14, 2022 10:12 — forked from Zekfad/conventional-commits.md
Conventional Commits Cheatsheet

Quick examples

  • feat: new feature
  • fix(scope): bug in scope
  • feat!: breaking change / feat(scope)!: rework API
  • chore(deps): update dependencies

Commit types

  • build: Changes that affect the build system or external dependencies (example scopes: gulp, broccoli, npm)
  • ci: Changes to CI configuration files and scripts (example scopes: Travis, Circle, BrowserStack, SauceLabs)
  • chore: Changes which doesn't change source code or tests e.g. changes to the build process, auxiliary tools, libraries
@Frankie-B
Frankie-B / HoverSupported.css
Created November 10, 2022 16:17 — forked from perjo927/HoverSupported.css
CSS: Support hover only on non-touch devices using media query
/*
* Compiled CSS:
*/
a {
color: green;
}
@media not all and (pointer: coarse) {
a:hover {
color: blue;
}
@Frankie-B
Frankie-B / eslintrc.js
Created May 24, 2022 18:12 — forked from adrianhajdin/eslintrc.js
ESLint Configuration
// eslintrc.js
module.exports = {
env: {
browser: true,
es6: true,
},
extends: [
'plugin:react/recommended',
'airbnb',
],
Liquid for Mephisto Cheatsheet
Compiled by Lee Leonard
Version 0.2 - 31 Jan 2007 (liquid 1.5.0; Mephisto 0.7.3)
This is a second draft -- corrections and suggestions are even more
encouraged. Send them to <l...@tempestprod.com>.
Basic Syntax
{{ (variable | string) ['|' filter1 ['|' filter2...]] }}
{% controltag %} [..] {% endcontroltag %}