zip -r zipfile.zip directoryToZip -x directoryToZip /subdirectoryToExclude/* directoryToZip/SecondSubdirectoryToExclude /*
Encrypt Bitlocker Drive in Linux
This is a very small howto on how to mount an NTFS drive encrypted with Bitlocker under Linux.
install dislocker (hdd name is merkur, 1TB usb drive)
Find the devicename of the encrypted bitlocker drive
fdisk -lEncrypt Bitlocker Drive in Linux weiterlesen
Show me directories with the largest disc usage.
du -a ./ | sort -n -r | head -n 20
Its always searching for the directories with the most diskusage from the actual directory, sorted by usage. It shows the first 20 Lines
Docker commands to clear some things
To clear containers:
docker rm -f $(docker ps -a -q)
To clear images:
docker rmi -f $(docker images -a -q)
To clear volumes:
docker volume rm $(docker volume ls -q)
To clear networks:
docker network rm $(docker network ls | tail -n+2 | awk '{if($2 !~ /bridge|none|host/){ print $1 }}')
Odoo Form View
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
<odoo> <data> <record id="extend_view" model="ir.ui.view"> <field name="name">Extend model view</field> <field name="model">model.name</field> <field name="inherit_id" ref="base.view.ref"/> <field name="arch" type="xml"> <xpath expr="//page[last()]" position='after'> <page string="Extra field"> <group string="Extra group title"> <field name="field_name"/> </group> </page> </xpath> </field> </record> </data> <odoo> |
https://snippets.cacher.io/snippet/6262025fc18cc12fecee
How to make a nice form view for an odoo module.
SSH-AGENT – Einfache SSH Loginverwaltung
Der SSH Agent ist ein Hilfsprogramm, das die Identitätsschlüssel des Benutzers und seine Passphrasen verfolgt. Der Agent kann sich dann mit den Schlüsseln bei anderen Servern anmelden, ohne dass der Benutzer erneut ein Passwort oder eine Passphrase eingeben muss. Dies implementiert eine Form des Single Sign-On (SSO).
Docker Config Generator
A quick way to quickly click together a virtual system. One must not deviate here only from the norm, but in any case a good beginning.
>> Docker Config Generator <<
VIM Editor Shortcuts
Some shortcuts for working with VIM, an open source text editor for the console. Available for Linux, Windows & Mac.
Smart movements
*
and#
search for the word under the cursor forward/backward.w
to the next wordW
to the next space-separated wordb
/e
to the begin/end of the current word. (B
/E
for space separated only)gg
/G
jump to the begin/end of the file.%
jump to the matching { .. } or ( .. ), etc..{
/}
jump to next paragraph.'.
jump back to last edited line.g;
jump back to last edited position.
Check If Service Is Running
Simple bash snippet to check if a service is running, if not -> send a mail to root. In this snippet
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
#!/bin/sh SERVICE=apache2; if ps ax | grep -v grep | grep $SERVICE > /dev/null then echo "$SERVICE service running, everything is fine" else echo "$SERVICE is not running, try to start it." sudo service $SERVICE start echo "$SERVICE is not running!" | mail -s "$SERVICE down" root fi |
HTML5 Kurse und Informationen für Einsteiger
HTML5 courses and information for beginners.
- http://html5.wirlernen.at/ – HTML5 for Dummies…
- https://blog.nerdmind.de/page/html5-einsteiger-tutorial/ – Umfangreiches und detailiertes Einstiegstutorial mit vielen Infos und Fakten
- https://wiki.selfhtml.org/wiki/HTML/Tutorials/HTML5-Grundgerüst – Was benötige ich als Minimum für eine HTML-Seite
- https://www.w3schools.com/html/html5_intro.asp <— Natürlich die beste Ressource für detailierte Informationen über HTML5