Skip to content

Instantly share code, notes, and snippets.

@Joriks
Joriks / backupMVs.sh
Created July 30, 2021 10:16
OLD backup mv from repo to gist
#!/bin/bash
bk_date=`date "+%Y-%m-%d"`
mkdir "backups_"$bk_date
for vm_name in `virsh list --all | tail -n +3 | head -n -1 | awk '{print $2}'`;
do
echo "Realizando copia de las MVs"
echo -------Copia de seguridad de $vm_name --------
virsh snapshot-create-as $vm_name "$vm_name"_"$bk_date" > /dev/null 2> /dev/null
if [ $? -eq 0 ]
@Joriks
Joriks / xen_hot_backup.sh
Created July 30, 2021 10:14
OLD xen hot backup, moved from repo to gist
#/bin/bash
path=/tmp/backups_jorge
#Modificar por el path del SAN u otra ruta de destino de las descargas
cd $path
bk_date=`date "+%Y-%m-%d"`
if [ -d "./$bk_date" ];
then
echo "La carpeta de backup ya existe, procediendo a borrado"
rm -rf $bk_date
fi
@Joriks
Joriks / Logcat owncloud
Last active August 29, 2015 14:20
Logcat when owncloud v1.7.1 crash on android 5.1
04-29 23:39:47.595 6854-8583/com.owncloud.android D/OwnCloudClient #107﹕ Creating OwnCloudClient
04-29 23:39:47.597 6854-8583/com.owncloud.android V/SimpleFactoryManager﹕ new client {Joriks@My-Server, 260229383}
04-29 23:39:47.624 6854-6854/com.owncloud.android I/Choreographer﹕ Skipped 33 frames! The application may be doing too much work on its main thread.
04-29 23:39:47.690 6854-8583/com.owncloud.android I/art﹕ Clamp target GC heap from 207MB to 192MB
04-29 23:39:47.690 6854-8583/com.owncloud.android I/art﹕ Alloc partial concurrent mark sweep GC freed 1556(174KB) AllocSpace objects, 9(144KB) LOS objects, 0% free, 191MB/192MB, paused 1.390ms total 81.053ms
04-29 23:39:47.695 6854-8583/com.owncloud.android I/art﹕ Alloc sticky concurrent mark sweep GC freed 0(0B) AllocSpace objects, 0(0B) LOS objects, 0% free, 191MB/192MB, paused 973us total 5.143ms
04-29 23:39:47.771 6854-8583/com.owncloud.android I/art﹕ Clamp target GC heap from 205MB to 192MB
04-29 23:39:47.771 6854-8583/com.ownclo