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 / 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;
}
var mediaJSON = { "categories" : [ { "name" : "Movies",
"videos" : [
{ "description" : "Big Buck Bunny tells the story of a giant rabbit with a heart bigger than himself. When one sunny day three rodents rudely harass him, something snaps... and the rabbit ain't no bunny anymore! In the typical cartoon tradition he prepares the nasty rodents a comical revenge.\n\nLicensed under the Creative Commons Attribution license\nhttp://www.bigbuckbunny.org",
"sources" : [ "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4" ],
"subtitle" : "By Blender Foundation",
"thumb" : "images/BigBuckBunny.jpg",
"title" : "Big Buck Bunny"
},
{ "description" : "The first Blender Open Movie from 2006",
"sources" : [ "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/ElephantsDream.mp4" ],
@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',
],
@Frankie-B
Frankie-B / gist:81234ca6c7664f360e3b27032b8fc884
Created March 30, 2022 18:23 — forked from stilyng94/gist:0625bcd5b0a19ce862deb1debf449384
Install Shopify cli on Windows Sub-system For Linux (WSL)
sudo apt update
sudo apt-get update
sudo apt install nodejs
sudo apt-get install ruby-full
sudo apt-get install build-essential
sudo apt-get install bison openssl curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libxml2-dev autoconf libc6-dev ncurses-dev automake libtool
sudo gem install shopify-cli
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 %}
@Frankie-B
Frankie-B / .jshintrc.js
Created March 18, 2022 21:47 — forked from connor/.jshintrc.js
jshintrc example
// NOTE: I added the .js extension to this gist so it would have syntax highlighting. This file should have NO file extension
{
// Settings
"passfail" : false, // Stop on first error.
"maxerr" : 100, // Maximum error before stopping.
// Predefined globals whom JSHint will ignore.
"browser" : true, // Standard browser globals e.g. `window`, `document`.
@Frankie-B
Frankie-B / ffmpeg.md
Created March 18, 2022 20:33 — forked from Orangestar12/ffmpeg.md
quick ffmpeg cheat sheet

These are a few quick easy ffmpeg command lines that can be used to make oft-used video formats. I use them a lot so I wrote them down in a txt file but I converted it to markdown to upload here and access on all my pcs.

Feel free to use 'em. I've gathered them through superuser posts, wiki trawls, and personal experience.

General notes

  • Add -movflags faststart to make mp4 files have their headers at the beginning of the file, allowing them to be streamed (i.e. played even if only part of the file is downloaded).
  • The MP4 container supports MP3 files, so if libfdk_aac isnt available (it's the only good AAC enc) use libmp3lame.
    • Update: unless you're uploading them to Twitter. Twitter doesn't like MP4 files with MP3 audio. Fall back to AAC and provide a higher quality alternative somewhere else.
  • For MP4 files, use -preset X to use MP4 enc presets, like slow or superfast. (veryfast or fast is ok)
@Frankie-B
Frankie-B / ffmpeg.md
Created March 18, 2022 20:32 — forked from steven2358/ffmpeg.md
FFmpeg cheat sheet