Skip to content

Instantly share code, notes, and snippets.

@jankalfus
jankalfus / heic_heif_fedora.md
Last active May 15, 2025 10:30
HEIC/HEIF Fedora 42

H265 video support in VLC:

  1. Follow https://rpmfusion.org/Howto/Multimedia
  2. Then install libavcodec-freeworld: dnf install libavcodec-freeworld
  3. Install VLC from RPM Fedora Linux. Not flatpak! The flatpak version doesn’t work with this!

HEIC support in Gnome Image Preview and Nautilus (make sure to follow the above first):

  1. dnf install libheif-freeworld
  2. dnf install heif-thumbnailer
  3. (optional) dnf install ffmpegthumbnailer (get thumbnails in Nautilus also for MP4, MOV etc.)
  4. Log out/in
@jankalfus
jankalfus / auto-height-textarea.tsx
Last active October 7, 2020 17:51
Text area with auto height component for React
import React, {
TextareaHTMLAttributes,
useCallback,
useEffect,
useRef,
} from "react";
export function AutoHeightTextarea({
minRows = 1,
...props
@jankalfus
jankalfus / setup-boilerplate.md
Last active April 24, 2018 13:19
Setup linters, hooks

package.json dev dependencies

"devDependencies": {
	"eslint-watch": "^3.1.4",
	"husky": "^0.14.3",
	"prettier": "1.12.1",
	"pretty-quick": "^1.4.1",
	"stylelint": "^9.2.0",
	"stylelint-scss": "^3.0.1"
import React from "react"
import * as ReactNavigation from "react-navigation"
import { connect } from "react-redux"
import AppNavigation, { isDrawerOpen } from "./AppNavigation"
import { BackHandler } from "react-native"
import PropTypes from "prop-types"
class ReduxNavigation extends React.Component {
static propTypes = {