Listing posts
Displaying posts 256 - 260 of 327 in total2017-11-10
Ingredienti per la base:
- 300gr biscotti digestive
- 150gr burro
- 1x uova
Ingredienti per la crema:
- 250gr ricotta
- 250gr mascarpone
- 3x cucchiai di zucchero
- 3x uova
- 1x bustina di vanillina
- 1x cucchiaino di succo di limone
- 1x cucchiaio di farina 00
- marmellata di mirtilli
Procedimento:
Sciogliere il burro.
Frantumare i biscotti, impastarli con l'uovo ed il burro.
Stendere l'impasto su una tortiera apribile incartata schiacciandolo col dorso di un cucchiaio.
Preriscaldare il forno a 170 gradi.
Preparare la crema impastando tra loro tutti gli ingredienti.
Versare la creama sulla base ed infornare per 45 minuti fino a doratura della superficie.
Lasciar raffreddare completamente, ricoprire con la marmellata e mettere in frigo.
Fonte: GialloZafferano
~~~ * ~~~
2017-11-09
Register for a freeDNS account, create a new subdomain
then visit Dynamic DNS section and insert your Direct URL
and subdomain
in this updater script:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | #!/bin/sh # /opt/bin/freesnd.afraid.org.sh # FreeDNS updater script => https://freedns.afraid.org/api/ UPDATEURL="http://freedns.afraid.org/dynamic/update.php?YOUR_KEY" DOMAIN="YOUR_SUBDOMAIN" BINDADDR="192.168.1.110" registered=$(dig @208.67.222.222 +short $DOMAIN) current=$(dig -b $BINDADDR @208.67.222.222 +short myip.opendns.com) if [ "$current" != "$registered" ]; then wget -q -O /dev/null --bind-address=$BINDADDR $UPDATEURL echo -n "DNS updated on: "; date fi |
then put it in root crontab
:
1 2 | # m h dom mon dow command */6 * * * * /opt/bin/freesnd.afraid.org.sh > /dev/null |
~~~ * ~~~
2017-11-03
1 | apt-get install munin munin-plugins-extra |
select desidred plugins by creating/deleting links in /etc/munin/plugins
from /usr/share/munin/plugins
:
1 2 3 4 5 6 7 8 9 10 11 12 | # ls -l /etc/munin/plugins | sed -r 's/.* (.+ -> .+)/\1/' | column -t
cpu -> /usr/share/munin/plugins/cpu
cpuspeed -> /usr/share/munin/plugins/cpuspeed
df -> /usr/share/munin/plugins/df
df_inode -> /usr/share/munin/plugins/df_inode
fail2ban -> /usr/share/munin/plugins/fail2ban
load -> /usr/share/munin/plugins/load
memory -> /usr/share/munin/plugins/memory
swap -> /usr/share/munin/plugins/swap
uptime -> /usr/share/munin/plugins/uptime
users -> /usr/share/munin/plugins/users
vmstat -> /usr/share/munin/plugins/vmstat
|
set your custom munin options, copy /etc/munin/munin.conf
in /etc/munin/munin-conf.d/local.conf
and edit it:
1 2 3 4 5 | # save sdcard writes see tmpfs-folders script dbdir /run/shm/tmpfs-folders/munin/db htmldir /run/shm/tmpfs-folders/munin/www logdir /run/shm/tmpfs-folders/munin/log rundir /run/shm/tmpfs-folders/munin/run |
also set log_file
in /etc/munin/munin-node.conf
:
1 2 | # save sdcard writes see tmpfs-folders script log_file /run/shm/tmpfs-folders/munin/log/munin-node.log |
configure nginx:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | server { listen 1234; server_name munin; index index.html index.htm; try_files $uri $uri/ =404; location / { rewrite ^/$ munin/localdomain/localhost.localdomain/ redirect; break; } location /munin/static/ { alias /run/shm/tmpfs-folders/munin/www/static/; expires modified +1w; } location /munin/ { alias /run/shm/tmpfs-folders/munin/www/; expires modified +310s; } } # server |
~~~ * ~~~
2017-11-03
1 | apt-get install nginx nginx-extras |
Use webdav
and fancyindex
modules in your .conf
file:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | server { listen 1234; server_name webdav; index index.html index.htm; try_files $uri $uri/ =404; location /fancyindex.css { root /path/to/fancyindex_static_files; } # location location / { root /path/to/shared_folder; fancyindex on; fancyindex_localtime on; # show file times as local time fancyindex_exact_size off; # human-readable file sizes fancyindex_css_href /fancyindex.css; dav_methods PUT DELETE MKCOL COPY MOVE; dav_ext_methods PROPFIND OPTIONS; min_delete_depth 3; # only remove files with path deeper than the specified number create_full_put_path on; # creating all needed intermediate directories dav_access user:rw group:r all:r; # sets access permissions for newly created files and directories client_max_body_size 0; # file size limit for new files # directory holding temporary files (uploads with PUT) client_body_temp_path /path/to/webdav_tmp; } } # server |
and here is a sample fancyindex.css
:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | h1 { font-size: 1rem; } tr { height: 3rem; } a[href$="/"] { font-weight: bold; padding-left: 1.5rem; background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0nMjAwJyBoZWlnaHQ9JzIwMCcgZmlsbD0iI0YzOEYxOSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB2aWV3Qm94PSIwIDAgODAgNjIuNzciIHg9IjBweCIgeT0iMHB4Ij48dGl0bGU+Zm9sZGVyPC90aXRsZT48ZyBkYXRhLW5hbWU9IkNhbHF1ZSAyIj48Zz48cGF0aCBkPSJNNzMuMjcsMTEuMTJIMzQuNzFhMi41MSwyLjUxLDAsMCwxLTItMWwtNC45LTYuNzdBOCw4LDAsMCwwLDIxLjI5LDBINy4wOEE3LjA5LDcuMDksMCwwLDAsMCw3LjA4djQ4LjZhNy4wOSw3LjA5LDAsMCwwLDcuMDgsNy4wOEg3Mi45MkE3LjA5LDcuMDksMCwwLDAsODAsNTUuNjhWMTcuODVBNi43NCw2Ljc0LDAsMCwwLDczLjI3LDExLjEyWk03LjA4LDUuNTFIMjEuMjlhMi41MSwyLjUxLDAsMCwxLDIsMWw0LjksNi43N2E4LDgsMCwwLDAsNi40OSwzLjMxSDczLjI3YTEuMjMsMS4yMywwLDAsMSwxLjIyLDEuMjJ2Mi41NmgtNjlWNy4wOEExLjYsMS42LDAsMCwxLDcuMDgsNS41MVoiLz48L2c+PC9nPjwvc3ZnPg=="); background-position: 0 0; background-size: 1rem 1rem; background-repeat: no-repeat; } td a { text-decoration: none; } |
Open it in Xfce thunar with:
1 | thunar dav://localhost:1234/ |
On Android you can use the webdav plugin for total commander.
Source: william.j, starbeam, devianteng., nginx dav, nginx dav-ext, XFCE Thunar
~~~ * ~~~
2017-10-30
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | # 1. list image partitions fdisk -lu mydisk.img # Disk mydisk.img: 117 GiB, 125587636736 bytes, 245288353 sectors # Units: sectors of 1 * 512 = 512 bytes # Sector size (logical/physical): 512 bytes / 512 bytes # I/O size (minimum/optimal): 512 bytes / 512 bytes # Disklabel type: dos # Disk identifier: 0x81c0ff4b # # Device Boot Start End Sectors Size Id Type # mydisk.img1 * 8192 124927 116736 57M e W95 FAT16 (LBA) # mydisk.img2 124928 245288352 245163425 116.9G 83 Linux # 2. check used loop devices losetup # NAME SIZELIMIT OFFSET AUTOCLEAR RO BACK-FILE # /dev/loop0 0 0 0 0 /mnt/data # 3. mount partition 2 on a free loop device, where image # offset = start * sector size = 124928 * 512 = 63963136 losetup -o 63963136 /dev/loop1 mydisk.img mkdir img && mount /dev/loop1 img/ # 4. dismount & remove device umount img losetup -d /dev/loop1 |
Source: AskUbuntu