I hereby claim:
- I am roziscoding on github.
- I am roziscoding (https://keybase.io/roziscoding) on keybase.
- I have a public key whose fingerprint is 6C59 D01E 490C B533 6D3A A070 C60E 898E 61D6 AE2F
To claim this, I am signing this object:
#! /usr/bin/env zsh | |
realpath=${1:-$2} | |
batcommand=$(if type batcat > /dev/null; then echo 'batcat'; else echo 'bat'; fi) | |
if [[ ! -r $realpath ]]; then | |
where $realpath; | |
elif [[ -d $realpath ]]; then | |
exa -1 -lah --git --icons --color=always --octal-permissions --no-time --no-permissions --group-directories-first -s name $realpath; | |
elif [[ $realpath:t:e = "png" || $realpath:t:e = "jpg" ]]; then |
#!/usr/bin/env zx | |
const SERVICE_NAME = 'community-api-public'; | |
const reloadNginx = () => | |
quiet($`docker compose exec nginx /usr/sbin/nginx -s reload > /dev/null`); | |
const trim = (promise) => | |
promise.then((result) => result.stdout).then((output) => output.trim()); | |
const getHealthStatus = (id) => |
" SETTINGS ----------------------------------------------------------- {{{ | |
" Disable compatibility with vi which can cause unexpected issues. | |
set nocompatible | |
" Enable type file detection. Vim will be able to try to detect the type of file in use. | |
filetype on | |
" Enable plugins and load plugin for the detected file type. | |
filetype plugin on | |
" Load an indent file for the detected file type. | |
filetype indent on |
echo "Installing curl" | |
sudo apt install curl | |
echo "Installing git" | |
sudo apt install git | |
echo "Installing xclip" | |
sudo apt install xclip | |
echo "Installing zinit" | |
sh -c "$(curl -fsSL https://raw.githubusercontent.com/zdharma/zinit/master/doc/install.sh)" | |
echo "Installing homebrew" | |
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" |
# Adds `brew` to PATH | |
eval $(/home/linuxbrew/.linuxbrew/bin/brew shellenv) | |
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc. | |
# Initialization code that may require console input (password prompts, [y/n] | |
# confirmations, etc.) must go above this block; everything else may go below. | |
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then | |
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" | |
fi | |
# Fixing completions |
I hereby claim:
To claim this, I am signing this object:
export const fromCToK = (value: number) => value * 1.8 + 32 | |
export const fromCToF = (value: number) => value + 273.15 | |
export const fromFToC = (value: number) => (value - 32) / 1.8 | |
export const fromFToK = (value: number) => fromFToK(value) + 273.15 | |
export const fromKToC = (value: number) => value - 273.15 | |
export const fromKToF = (value: number) => (value * 1.8) - 459.67 | |
export const convert = (value: number) => ({ |
I hereby claim:
To claim this, I am signing this object:
git clone