- login
cloudflared tunnel login
- create a tunnel
cloudflared tunnel create [name]
@echo off | |
title Ollama Portable | |
set OLLAMA_ORIGINS=* | |
set OLLAMA_HOST=0.0.0.0 | |
set userprofile=%cd%\data | |
set localappdata=%cd%\data\AppData\Local | |
cmd /k ollama.exe |
docker rm -f $(docker ps -qa); docker volume rm $(docker volume ls -q); docker rmi -f $(docker images -q) |
pnpm install -D tailwindcss postcss autoprefixer | |
pnpx tailwindcss init -p | |
cat > tailwind.config.js <<EOF | |
/** @type {import('tailwindcss').Config} */ | |
export default { | |
content: [ | |
"./index.html", | |
"./src/**/*.{js,ts,jsx,tsx}", | |
], |
{ | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"type": "node-terminal", | |
"name": "Run Script: dev", | |
"request": "launch", | |
"command": "npm run dev", | |
"cwd": "${workspaceFolder}", | |
"internalConsole": "integratedTerminal", |
#!/bin/sh | |
# | |
# Change definition of the screen on line 6. | |
file=$(mktemp /tmp/wallpaper.XXX.jpg) | |
curl --output $file 'https://unsplash.it/1920/1080/?random' | |
gsettings set org.gnome.desktop.background picture-uri file://$file |
function lightOrDark(color) { | |
// Check the format of the color, HEX or RGB? | |
if (color.match(/^rgb/)) { | |
// If HEX --> store the red, green, blue values in separate variables | |
color = color.match(/^rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*(\d+(?:\.\d+)?))?\)$/); | |
r = color[1]; | |
g = color[2]; |
https://commondatastorage.googleapis.com/chromium-browser-snapshots/index.html?prefix=Win_x64/1181217/ |
# Refresh Msys2 Installation | |
# Paths | |
$msys2_extract_dir = "$PWD\msys2" | |
# Variables | |
$msys2_repository = "msys2/msys2-installer" | |
$release_api = "https://api.github.com/repos/$msys2_repository/releases/latest" | |
$msys2_nightly_file = "msys2-nightly.sfx.exe" |
# https://docs.anaconda.com/free/miniconda/index.html#quick-command-line-install | |
mkdir -p ~/miniconda3 | |
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O ~/miniconda3/miniconda.sh | |
bash ~/miniconda3/miniconda.sh -b -u -p ~/miniconda3 | |
rm -rf ~/miniconda3/miniconda.sh | |
# Init Miniconda | |
~/miniconda3/bin/conda init bash | |
# Resource Bash |