Skip to content

Instantly share code, notes, and snippets.

View rozsival's full-sized avatar
🤘
I do what I like

Vít Rozsíval rozsival

🤘
I do what I like
View GitHub Profile
@rozsival
rozsival / ProtectedEmail.js
Last active May 15, 2018 22:32
React protected email - simple stateless component to HEX encode displayed email addresses
// @flow
import React from 'react';
import { createHtml, encode } from './utils';
import type { ProtectedEmailProps } from './types';
const ProtectedEmail = (props: ProtectedEmailProps) => (
<span
className="__react-protected-email"
@rozsival
rozsival / sphp
Created March 3, 2021 16:16
Easy Brew PHP-FPM switch
#!/usr/bin/env bash
latest="8.0"
versions=("7.0" "7.1" "7.2" "7.4" "$latest")
valid=$(printf "|%s" "${versions[@]}")
switch="$1"
ERROR=$(tput setaf 1)
SUCCESS=$(tput setaf 2)
if [ -z "$switch" ]