- Create authorization
root@cephhost:~# ceph fs authorize cephfs client.clientname /some/path rw [client.clientname] key = ...............
Save it in the machine where you wanna mount, at /etc/ceph/ceph.client.clientname.keyring
#!/usr/bin/env bash | |
# | |
# ai.sh - invoke llm from command line | |
# | |
# Usage: | |
# * Run interactively | |
# ai.sh | |
# | |
# * Invoke a single inference from command line | |
# ai.sh ffmpeg convert all mp4 in this folder to mp3 |
; Set the name or path of the executable | |
; https://github.com/MScholtes/VirtualDesktop | |
Global virtualDesktopExe := "VirtualDesktop11.exe" | |
SwitchDesktop(desktopNum) { | |
Run, %virtualDesktopExe% /Switch:%desktopNum%,, Hide | |
} | |
MoveWindowToDesktop(desktopNum) { | |
Run, %virtualDesktopExe% /GetDesktop:%desktopNum% /MoveActiveWindow,, Hide |
#!/bin/sh | |
command_exists() { | |
command -v "$@" > /dev/null 2>&1 | |
} | |
do_install() { | |
set -e | |
user="$(id -un 2>/dev/null || true)" |
#!/usr/bin/env bash | |
set -euo pipefail | |
model_name="$1" | |
if [[ -z "$model_name" ]]; then | |
echo "Usage: $0 <model_name>" | |
exit 1 | |
fi |
#!/usr/bin/env bash | |
python -m venv venv | |
. ./venv/bin/activate | |
python -m pip install jupyter jupyterlab ipywidgets notebook numpy pandas scipy matplotlib Pillow seaborn tqdm | |
python -m jupyter lab |
apiVersion: v1 | |
kind: Config | |
clusters: | |
- name: dummy | |
cluster: | |
api-version: v1 | |
server: http://example.com | |
contexts: | |
- name: dummy | |
context: |
<# | |
.SYNOPSIS | |
Prune and compact the Docker VHDX disk file | |
#> | |
# Check if running as administrator | |
$CurrentUser = New-Object Security.Principal.WindowsPrincipal ` | |
$([Security.Principal.WindowsIdentity]::GetCurrent()) | |
if (-not $CurrentUser.IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator)) { | |
# Restart as administrator |
--- json.hpp 2023-01-09 15:13:04.871631532 +0800 | |
+++ json2.hpp 2023-01-09 15:13:24.414084972 +0800 | |
@@ -6054,7 +6054,7 @@ | |
{ | |
case value_t::array: | |
{ | |
- return *lhs.m_value.array < *rhs.m_value.array; | |
+ return (*lhs.m_value.array) < (*rhs.m_value.array); | |
} | |
case value_t::object: |
# Options to pass to earlyoom | |
# /etc/default/earlyoom | |
EARLYOOM_ARGS="-r 3600 -n --avoid '(^|/)(init|systemd|Xorg|sshd|pipewire(-pulse)?|dunst|nitrogen|polybar|NetworkManager|dbus-daemon|xss-lock|nm-applet)$' --prefer '(^|/)(Discord|thunderbird|rust-analyzer|lens|telegram-desktop|firefox|chromium)$'" |