cd /etc/rspamd
- create
rspamd.conf.local
- create lists:
touch local_bl_from.map.inc local_bl_ip.map.inc local_bl_rcpt.map.inc \
local_wl_from.map.inc local_wl_ip.map.inc local_wl_rcpt.map.inc
- change permissions:
set timeout=3 | |
menuentry 'Linux diskless' --class os { | |
insmod efi_gop | |
insmod efi_uga | |
# set server from option 66 (tftp-server-name) if not exist, use next_server | |
if ! net_get_dhcp_option net_default_server ${net_default_interface} 66 string; then | |
echo ' using next_server option instead.' |
local read: IOPS=12308, BW=48.1MiB/s write: IOPS=4111, BW=16.0MiB/s
nfs3-ganesha read: IOPS=7039, BW=27.5MiB/s write: IOPS=2352, BW=9.2MiB/s
nfs3-kernel read: IOPS=6571, BW=25.7MiB/s
mkdir -p /tmp/1 | |
cd /tmp/1 | |
cat > Dockerfile <<\EOT | |
FROM i386/ubuntu:12.04 | |
RUN apt-get update \ | |
&& apt-get install -y firefox=11.0+build1-0ubuntu4 icedtea-6-plugin libstdc++5 | |
EOT | |
docker build -t firefox-jre . |
#!/bin/bash | |
# onevm monitoring for zabbix script | |
case $1 in | |
a* ) echo $(onevm list -l STAT | tail -n +2 | wc -l) ;; | |
r* ) echo $(onevm list -l STAT | tail -n +2 | grep 'runn\|boot' | wc -l) ;; | |
su* ) echo $(onevm list -l STAT | tail -n +2 | grep 'susp\|save' | wc -l) ;; | |
st* ) echo $(onevm list -l STAT | tail -n +2 | grep -v 'runn\|susp\|save\|boot\|err\|fail' | wc -l) ;; | |
e* ) echo $(onevm list -l STAT | tail -n +2 | grep 'err\|fail' | wc -l) ;; | |
* ) echo Need argument!; exit 1 ;; |
# linstor r c blbla --auto-place 4 --replicas-on-same opennebula-1=true -s thindata
ERROR:
Description:
Not enough available nodes
Details:
Not enough nodes fulfilling the following auto-place criteria:
* has a deployed storage pool named 'thindata'
* the storage pool 'thindata' has to have at least '104857600' free space
* the current access context has enough privileges to use the node and the storage pool
--- | |
apiVersion: cluster.x-k8s.io/v1beta1 | |
kind: Cluster | |
metadata: | |
name: test | |
namespace: test | |
spec: | |
clusterNetwork: | |
pods: | |
cidrBlocks: |
#!/bin/sh | |
run(){ | |
name="$1" | |
shift | |
( | |
set -x | |
# defailt parameters | |
fio -name="$name" -filename=$disk -output-format=json -ioengine=libaio -direct=1 -randrepeat=0 "$@" > results/$disk_dashed-$name.json | |
) |
Расскажу как круто можно ужимать видео с гопрошки без потери качества.
Видео как правило жмется очень хорошо, мне удавалось сжимать ролики до 70% безо всяких на то проблем.
Для windows-пользователей приложу инструкцию, linux-пользователи и так разберутся, все скрипты приведены ниже.
# make backup | |
kubectl get crds | grep -o ".*.internal.linstor.linbit.com" | xargs kubectl get crds -ojson > crds.json | |
kubectl get crds | grep -o ".*.internal.linstor.linbit.com" | xargs -i{} sh -xc "kubectl get {} -ojson > {}.json" | |
--- | |
# collect resources in weird states: | |
cat resources.internal.linstor.linbit.com.json | jq '.items[] | select(.spec.resource_flags>1024) | "\(.spec.resource_name) \(.spec.node_name) \(.spec.resource_flags)"' -r > list.txt | |
# reset them to 0: |