wiki update
This commit is contained in:
@@ -1,35 +0,0 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<link type="text/css" rel="stylesheet" href="./styles/shCore.css" />
|
||||
<link type="text/css" rel="stylesheet" href="./style.css" />
|
||||
<link type="text/css" rel="stylesheet" href="./styles/shThemeDefault.css" />
|
||||
<script type="text/javascript" src="./scripts/shCore.js"></script>
|
||||
<script type="text/javascript" src="./scripts/shBrushBash.js"></script>
|
||||
<script type="text/javascript" src="./scripts/shBrushJava.js"></script>
|
||||
<script type="text/javascript">
|
||||
SyntaxHighlighter.all();
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<h1 id="toc_1">AES</h1>
|
||||
|
||||
<h2 id="toc_1.1">encrypt</h2>
|
||||
|
||||
<pre class="brush: bash; ; toolbar: false;">
|
||||
$ openssl enc -aes-128-cbc -pass pass:secret -in file.txt -out file.txt.aes
|
||||
</pre>
|
||||
|
||||
<h2 id="toc_1.2">decrypt</h2>
|
||||
|
||||
<pre class="brush: bash; ; toolbar: false;">
|
||||
$ openssl enc -aes-128-cbc -d -pass pass:secret -in file.txt.aes
|
||||
</pre>
|
||||
|
||||
|
||||
<p>
|
||||
[ <a href="index.html">Go home</a> ]
|
||||
</p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,54 +0,0 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<link type="text/css" rel="stylesheet" href="./styles/shCore.css" />
|
||||
<link type="text/css" rel="stylesheet" href="./style.css" />
|
||||
<link type="text/css" rel="stylesheet" href="./styles/shThemeDefault.css" />
|
||||
<script type="text/javascript" src="./scripts/shCore.js"></script>
|
||||
<script type="text/javascript" src="./scripts/shBrushBash.js"></script>
|
||||
<script type="text/javascript" src="./scripts/shBrushJava.js"></script>
|
||||
<script type="text/javascript">
|
||||
SyntaxHighlighter.all();
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<h1 id="toc_1">Apple Mail</h1>
|
||||
|
||||
<h2 id="toc_1.1">Mailalias</h2>
|
||||
<ul>
|
||||
<li>
|
||||
Mail.app schließen
|
||||
</li>
|
||||
<li>
|
||||
~/Library/Mail/V2/<a href="MailData.html">MailData</a>/Accounts.plist öffnen
|
||||
</li>
|
||||
<li>
|
||||
Eintrag <em>MailAccounts</em> aufklappen
|
||||
</li>
|
||||
<li>
|
||||
den richtigen Ornder (0, 1, 2, etc) rausfinden indem man auf die Einträge achtet
|
||||
</li>
|
||||
<li>
|
||||
Ordner auswählen und <em>Add Item</em> anklicken, mit dem Namen <em>EmailAliases</em> mit Typ <em>Array</em>
|
||||
</li>
|
||||
<li>
|
||||
diesen wiederum anklicken und mit <em>Add Item</em> einen neuen Eintrag <em>Item 0</em> erstellen vom Typ <em>Dictionary</em>
|
||||
</li>
|
||||
<li>
|
||||
auswählen neuen Key mit <em>alias</em> vom Typ <em>String</em> und der gewünschten Adresse
|
||||
</li>
|
||||
<li>
|
||||
im <em>Item 0</em> neuen Eintrag mit <em>name</em> als Item <em>String</em> als Typ und dem gewünschtem Namen für den Alias
|
||||
</li>
|
||||
<li>
|
||||
abspeichern, fertig.
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
|
||||
<p>
|
||||
[ <a href="index.html">Go home</a> ]
|
||||
</p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,323 +0,0 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<link type="text/css" rel="stylesheet" href="./styles/shCore.css" />
|
||||
<link type="text/css" rel="stylesheet" href="./style.css" />
|
||||
<link type="text/css" rel="stylesheet" href="./styles/shThemeDefault.css" />
|
||||
<script type="text/javascript" src="./scripts/shCore.js"></script>
|
||||
<script type="text/javascript" src="./scripts/shBrushBash.js"></script>
|
||||
<script type="text/javascript" src="./scripts/shBrushJava.js"></script>
|
||||
<script type="text/javascript">
|
||||
SyntaxHighlighter.all();
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<h1 id="toc_1">Install ZFS on Ubuntu</h1>
|
||||
|
||||
<ol>
|
||||
<li>
|
||||
Repos hinzufügen, unbedingt durchlaufen lassen!
|
||||
</li>
|
||||
</ol>
|
||||
<p>
|
||||
sudo -i
|
||||
apt-add-repository --yes ppa:zfs-native/daily
|
||||
apt-get update
|
||||
apt-get install debootstrap ubuntu-zfs
|
||||
</p>
|
||||
<ol>
|
||||
<li>
|
||||
check to see zfs
|
||||
</li>
|
||||
</ol>
|
||||
<p>
|
||||
modprobe zfs
|
||||
dmesg | grep ZFS
|
||||
</p>
|
||||
<ol>
|
||||
<li>
|
||||
-> ZFS: Loaded module v0.6.0.89-rc12, ZFS pool version 28, ZFS filesystem version 5
|
||||
</li>
|
||||
</ol>
|
||||
<p>
|
||||
cfdisk
|
||||
</p>
|
||||
<ol>
|
||||
<li>
|
||||
100MB bootable Partition mit Type BE
|
||||
</li>
|
||||
<li>
|
||||
restlicher Platz mit Type BF
|
||||
</li>
|
||||
<li>
|
||||
checken und anzeigen lassen
|
||||
</li>
|
||||
</ol>
|
||||
<p>
|
||||
fdisk -l /dev/disk/by-id/scsi-SATA_disk1
|
||||
</p>
|
||||
<ol>
|
||||
<li>
|
||||
GRUB installieren auf part-1
|
||||
</li>
|
||||
</ol>
|
||||
<p>
|
||||
mke2fs -m 0 -L /boot/grub -j /dev/disk/by-id/scsi-SATA_disk1-part1
|
||||
</p>
|
||||
<ol>
|
||||
<li>
|
||||
root pool erstellen
|
||||
</li>
|
||||
</ol>
|
||||
<p>
|
||||
zpool create rpool /dev/disk/by-id/scsi-SATA_disk1-part2
|
||||
zfs create rpool/ROOT
|
||||
zfs create rpool/ROOT/ubuntu-1
|
||||
zfs umount -a
|
||||
zfs set mountpoint=/ rpool/ROOT/ubuntu-1
|
||||
</p>
|
||||
<ol>
|
||||
<li>
|
||||
Kompression einschalten
|
||||
</li>
|
||||
</ol>
|
||||
<p>
|
||||
zfs set compression=on rpool
|
||||
zpool set bootfs=rpool/ROOT/ubuntu-1 rpool
|
||||
zpool export rpool
|
||||
</p>
|
||||
<ol>
|
||||
<li>
|
||||
Pool importieren
|
||||
</li>
|
||||
</ol>
|
||||
<p>
|
||||
zpool import -d /dev/disk/by-id -R /mnt rpool
|
||||
mkdir -p /mnt/boot/grub
|
||||
</p>
|
||||
<ol>
|
||||
<li>
|
||||
part-1 beachten
|
||||
</li>
|
||||
</ol>
|
||||
<p>
|
||||
mount /dev/disk/by-id/scsi-SATA_disk1-part1 /mnt/boot/grub
|
||||
</p>
|
||||
<ol>
|
||||
<li>
|
||||
Minimales System installieren
|
||||
</li>
|
||||
</ol>
|
||||
<p>
|
||||
debootstrap precise /mnt
|
||||
</p>
|
||||
<ol>
|
||||
<li>
|
||||
einige Live-CD Inhalte kopieren
|
||||
</li>
|
||||
</ol>
|
||||
<p>
|
||||
cp /etc/hostname /mnt/etc/
|
||||
cp /etc/hosts /mnt/etc/
|
||||
</p>
|
||||
<ol>
|
||||
<li>
|
||||
/mnt/etc/fstab editieren und part-1 hinzugügen
|
||||
</li>
|
||||
</ol>
|
||||
<p>
|
||||
vi /mnt/etc/fstab
|
||||
</p>
|
||||
<ol>
|
||||
<li>
|
||||
-> /dev/disk/by-id/scsi-SATA_disk1-part1 /boot/grub auto defaults 0 1
|
||||
</li>
|
||||
</ol>
|
||||
<p>
|
||||
vi /mnt/etc/network/interfaces
|
||||
</p>
|
||||
<ol>
|
||||
<li>
|
||||
-> # interfaces(5) file used by ifup(8) and ifdown(8)
|
||||
</li>
|
||||
<li>
|
||||
-> auto lo
|
||||
</li>
|
||||
<li>
|
||||
-> iface lo inet loopback
|
||||
</li>
|
||||
<li>
|
||||
->
|
||||
</li>
|
||||
<li>
|
||||
-> auto eth0
|
||||
</li>
|
||||
<li>
|
||||
-> iface eth0 inet dhcp
|
||||
</li>
|
||||
</ol>
|
||||
<p>
|
||||
mount --bind /dev /mnt/dev
|
||||
mount --bind /proc /mnt/proc
|
||||
mount --bind /sys /mnt/sys
|
||||
chroot /mnt /bin/bash --login
|
||||
</p>
|
||||
<ol>
|
||||
<li>
|
||||
Install PPA support
|
||||
</li>
|
||||
</ol>
|
||||
<p>
|
||||
locale-gen en_US.UTF-8
|
||||
locale-gen de_DE.UTF-8
|
||||
apt-get update
|
||||
apt-get install ubuntu-minimal python-software-properties
|
||||
</p>
|
||||
<ol>
|
||||
<li>
|
||||
im chroot ZFS installieren
|
||||
</li>
|
||||
</ol>
|
||||
<p>
|
||||
apt-add-repository --yes ppa:zfs-native/daily
|
||||
apt-add-repository --yes ppa:zfs-native/grub
|
||||
apt-get update
|
||||
apt-get install ubuntu-zfs
|
||||
apt-get install zfs-initramfs
|
||||
apt-get dist-upgrade
|
||||
</p>
|
||||
<ol>
|
||||
<li>
|
||||
Rootpasswort setzten
|
||||
</li>
|
||||
</ol>
|
||||
<p>
|
||||
passwd root
|
||||
</p>
|
||||
<ol>
|
||||
<li>
|
||||
Quellen editieren
|
||||
</li>
|
||||
</ol>
|
||||
<p>
|
||||
vi /ets/apt/sources.list
|
||||
</p>
|
||||
<ol>
|
||||
<li>
|
||||
-> deb <a href="http://archive.ubuntu.com/ubuntu">http://archive.ubuntu.com/ubuntu</a> precise main universe
|
||||
</li>
|
||||
</ol>
|
||||
<p>
|
||||
apt-get update
|
||||
</p>
|
||||
<ol>
|
||||
<li>
|
||||
verify ZFS
|
||||
</li>
|
||||
</ol>
|
||||
<p>
|
||||
grub-probe /
|
||||
</p>
|
||||
<ol>
|
||||
<li>
|
||||
-> zfs
|
||||
</li>
|
||||
</ol>
|
||||
<p>
|
||||
ls /boot/grub/zfs*
|
||||
</p>
|
||||
<ol>
|
||||
<li>
|
||||
-> /boot/grub/zfs.mod /boot/grub/zfsinfo.mod
|
||||
</li>
|
||||
</ol>
|
||||
<p>
|
||||
update-initramfs -c -k all
|
||||
</p>
|
||||
<ol>
|
||||
<li>
|
||||
-> update-initramfs: Generating /boot/initrd.img-3.2.0-23-generic
|
||||
</li>
|
||||
</ol>
|
||||
<p>
|
||||
update-grub
|
||||
</p>
|
||||
<ol>
|
||||
<li>
|
||||
-> Generating grub.cfg ...
|
||||
</li>
|
||||
<li>
|
||||
-> Found linux image: /boot/vmlinuz-3.2.0-23-generic
|
||||
</li>
|
||||
<li>
|
||||
-> Found initrd image: /boot/initrd.img-3.2.0-23-generic
|
||||
</li>
|
||||
<li>
|
||||
-> done
|
||||
</li>
|
||||
</ol>
|
||||
<p>
|
||||
grep boot=zfs /boot/grub/grub.cfg
|
||||
</p>
|
||||
<ol>
|
||||
<li>
|
||||
-> linux /ROOT/ubuntu-1/@/boot/vmlinuz-3.2.0-23-generic root=/dev/sda2 ro boot=zfs $bootfs quiet splash $vt_handoff
|
||||
</li>
|
||||
<li>
|
||||
-> linux /ROOT/ubuntu-1/@/boot/vmlinuz-3.2.0-23-generic root=/dev/sda2 ro single nomodeset boot=zfs $bootfs
|
||||
</li>
|
||||
</ol>
|
||||
|
||||
<ol>
|
||||
<li>
|
||||
MBR auf die Festplatte (keine Partition) schreiben
|
||||
</li>
|
||||
</ol>
|
||||
<p>
|
||||
grub-install $(readlink -f /dev/disk/by-id/scsi-SATA_disk1)
|
||||
</p>
|
||||
<ol>
|
||||
<li>
|
||||
chroot verlassen
|
||||
</li>
|
||||
</ol>
|
||||
<p>
|
||||
exit
|
||||
</p>
|
||||
<ol>
|
||||
<li>
|
||||
Live-CD umounten
|
||||
</li>
|
||||
</ol>
|
||||
<p>
|
||||
umount /mnt/boot/grub
|
||||
umount /mnt/dev
|
||||
umount /mnt/proc
|
||||
umount /mnt/sys
|
||||
zfs umount -a
|
||||
zpool export rpool
|
||||
</p>
|
||||
<ol>
|
||||
<li>
|
||||
rebooten
|
||||
</li>
|
||||
</ol>
|
||||
<p>
|
||||
reboot
|
||||
</p>
|
||||
<ol>
|
||||
<li>
|
||||
als root einloggen und xubuntu nachinstallieren
|
||||
</li>
|
||||
</ol>
|
||||
<p>
|
||||
apt-get install xubuntu-desktop
|
||||
</p>
|
||||
|
||||
|
||||
<p>
|
||||
[ <a href="index.html">Go home</a> ]
|
||||
</p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,68 +0,0 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<link type="text/css" rel="stylesheet" href="./styles/shCore.css" />
|
||||
<link type="text/css" rel="stylesheet" href="./style.css" />
|
||||
<link type="text/css" rel="stylesheet" href="./styles/shThemeDefault.css" />
|
||||
<script type="text/javascript" src="./scripts/shCore.js"></script>
|
||||
<script type="text/javascript" src="./scripts/shBrushBash.js"></script>
|
||||
<script type="text/javascript" src="./scripts/shBrushJava.js"></script>
|
||||
<script type="text/javascript">
|
||||
SyntaxHighlighter.all();
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<h1 id="toc_1">Linux</h1>
|
||||
|
||||
<h2 id="toc_1.1">tr</h2>
|
||||
<p>
|
||||
Tabstops durch Leerzeichen ersetzten und nach einem erfolgreichen Umwandeln zurückschreiben
|
||||
</p>
|
||||
|
||||
<pre class="brush: bash; ; toolbar: false;">
|
||||
$ cat webserver.log07289 | tr '[:blank:]' ' ' > tmp.1 && mv tmp.1 webserver.log07289
|
||||
</pre>
|
||||
|
||||
<p>
|
||||
für eine Massenformatierung
|
||||
</p>
|
||||
|
||||
<pre class="brush: bash; ; toolbar: false;">
|
||||
for file
|
||||
do
|
||||
cat $file | tr '[:blank:]' ' ' > tmp.1 && mv tmp.1 $file || { echo "++$file "; exit; }
|
||||
done
|
||||
</pre>
|
||||
|
||||
<p>
|
||||
der Aufruf erfolgt dann mit
|
||||
</p>
|
||||
|
||||
<pre class="brush: bash; ; toolbar: false;">
|
||||
$ tr-all *
|
||||
</pre>
|
||||
|
||||
<h2 id="toc_1.2">Alle Mitglieder einer Gruppe anzeigen</h2>
|
||||
<p>
|
||||
unter Linux:
|
||||
</p>
|
||||
|
||||
<pre class="brush: bash; ; toolbar: false;">
|
||||
$ getent group GRUPPE
|
||||
</pre>
|
||||
|
||||
<p>
|
||||
unter AIX:
|
||||
</p>
|
||||
|
||||
<pre class="brush: bash; ; toolbar: false;">
|
||||
$ lsgroup GRUPPE
|
||||
</pre>
|
||||
|
||||
|
||||
<p>
|
||||
[ <a href="index.html">Go home</a> ]
|
||||
</p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,59 +0,0 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<link type="text/css" rel="stylesheet" href="./styles/shCore.css" />
|
||||
<link type="text/css" rel="stylesheet" href="./style.css" />
|
||||
<link type="text/css" rel="stylesheet" href="./styles/shThemeDefault.css" />
|
||||
<script type="text/javascript" src="./scripts/shCore.js"></script>
|
||||
<script type="text/javascript" src="./scripts/shBrushBash.js"></script>
|
||||
<script type="text/javascript" src="./scripts/shBrushJava.js"></script>
|
||||
<script type="text/javascript">
|
||||
SyntaxHighlighter.all();
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<h1 id="toc_1">Lion</h1>
|
||||
|
||||
<h2 id="toc_1.1">Last Played Files nicht mehr anzeigen</h2>
|
||||
|
||||
<pre class="brush: bash; ; toolbar: false;">
|
||||
|
||||
defaults write com.apple.QuickTimePlayerX NSRecentDocumentsLimit 0
|
||||
defaults delete com.apple.QuickTimePlayerX.LSSharedFileList RecentDocuments
|
||||
defaults write com.apple.QuickTimePlayerX.LSSharedFileList RecentDocuments -dict-add MaxAmount 0
|
||||
|
||||
</pre>
|
||||
|
||||
<pre class="brush: bash; ; toolbar: false;">
|
||||
|
||||
defaults write org.niltsh.MPlayerX NSRecentDocumentsLimit 0
|
||||
defaults delete org.niltsh.MPlayerX.LSSharedFileList RecentDocuments
|
||||
defaults write org.niltsh.MPlayerX.LSSharedFileList RecentDocuments -dict-add MaxAmount 0
|
||||
|
||||
</pre>
|
||||
|
||||
<h2 id="toc_1.2">Open Google Chrome</h2>
|
||||
|
||||
<pre class="brush: bash; ; toolbar: false;">
|
||||
|
||||
open /Applications/Google\ Chrome\ Canary.app --args --allow-running-insecure-content
|
||||
|
||||
</pre>
|
||||
|
||||
<h2 id="toc_1.3">Remove X11</h2>
|
||||
|
||||
<pre class="brush: bash; ; toolbar: false;">
|
||||
|
||||
launchctl unload /Library/LaunchAgents/org.macosforge.xquartz.startx.plist
|
||||
sudo launchctl unload /Library/LaunchDaemons/org.macosforge.xquartz.privileged_startx.plist
|
||||
sudo rm -rf /opt/X11* /Library/Launch*/org.macosforge.xquartz.* /Applications/Utilities/XQuartz.app /etc/*paths.d/*XQuartz
|
||||
sudo pkgutil --forget org.macosforge.xquartz.pkg
|
||||
|
||||
</pre>
|
||||
|
||||
<p>
|
||||
[ <a href="index.html">Go home</a> ]
|
||||
</p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,89 +0,0 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<link type="text/css" rel="stylesheet" href="./styles/shCore.css" />
|
||||
<link type="text/css" rel="stylesheet" href="./style.css" />
|
||||
<link type="text/css" rel="stylesheet" href="./styles/shThemeDefault.css" />
|
||||
<script type="text/javascript" src="./scripts/shCore.js"></script>
|
||||
<script type="text/javascript" src="./scripts/shBrushBash.js"></script>
|
||||
<script type="text/javascript" src="./scripts/shBrushJava.js"></script>
|
||||
<script type="text/javascript">
|
||||
SyntaxHighlighter.all();
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<h1 id="toc_1">PostreSQL</h1>
|
||||
|
||||
<p>
|
||||
If builds of <a href="PostgreSQL.html">PostgreSQL</a> 9 are failing and you have version 8.x installed,
|
||||
you may need to remove the previous version first. See:
|
||||
<a href="https://github.com/mxcl/homebrew/issues/issue/2510">https://github.com/mxcl/homebrew/issues/issue/2510</a>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
To build plpython against a specific Python, set PYTHON prior to brewing:
|
||||
</p>
|
||||
<blockquote>
|
||||
PYTHON=/usr/local/bin/python brew install postgresql
|
||||
</blockquote>
|
||||
<p>
|
||||
See:
|
||||
<a href="http://www.postgresql.org/docs/9.0/static/install-procedure.html">http://www.postgresql.org/docs/9.0/static/install-procedure.html</a>
|
||||
</p>
|
||||
|
||||
|
||||
<p>
|
||||
If this is your first install, create a database with:
|
||||
</p>
|
||||
<blockquote>
|
||||
initdb /usr/local/var/postgres
|
||||
</blockquote>
|
||||
|
||||
<p>
|
||||
If this is your first install, automatically load on login with:
|
||||
</p>
|
||||
<blockquote>
|
||||
cp /usr/local/Cellar/postgresql/9.0.2/org.postgresql.postgres.plist ~/Library/<a href="LaunchAgents.html">LaunchAgents</a>
|
||||
launchctl load -w ~/Library/<a href="LaunchAgents.html">LaunchAgents</a>/org.postgresql.postgres.plist
|
||||
</blockquote>
|
||||
|
||||
<p>
|
||||
If this is an upgrade and you already have the org.postgresql.postgres.plist loaded:
|
||||
</p>
|
||||
<blockquote>
|
||||
launchctl unload -w ~/Library/<a href="LaunchAgents.html">LaunchAgents</a>/org.postgresql.postgres.plist
|
||||
cp /usr/local/Cellar/postgresql/9.0.2/org.postgresql.postgres.plist ~/Library/<a href="LaunchAgents.html">LaunchAgents</a>
|
||||
launchctl load -w ~/Library/<a href="LaunchAgents.html">LaunchAgents</a>/org.postgresql.postgres.plist
|
||||
</blockquote>
|
||||
|
||||
<p>
|
||||
Or start manually with:
|
||||
</p>
|
||||
<blockquote>
|
||||
pg_ctl -D /usr/local/var/postgres -l /usr/local/var/postgres/server.log start
|
||||
</blockquote>
|
||||
|
||||
<p>
|
||||
And stop with:
|
||||
</p>
|
||||
<blockquote>
|
||||
pg_ctl -D /usr/local/var/postgres stop -s -m fast
|
||||
</blockquote>
|
||||
|
||||
<p>
|
||||
If you want to install the postgres gem, including ARCHFLAGS is recommended:
|
||||
</p>
|
||||
<blockquote>
|
||||
env ARCHFLAGS="-arch x86_64" gem install pg
|
||||
</blockquote>
|
||||
|
||||
<p>
|
||||
To install gems without sudo, see the Homebrew wiki.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
[ <a href="index.html">Go home</a> ]
|
||||
</p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,92 +0,0 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<link type="text/css" rel="stylesheet" href="./styles/shCore.css" />
|
||||
<link type="text/css" rel="stylesheet" href="./style.css" />
|
||||
<link type="text/css" rel="stylesheet" href="./styles/shThemeDefault.css" />
|
||||
<script type="text/javascript" src="./scripts/shCore.js"></script>
|
||||
<script type="text/javascript" src="./scripts/shBrushBash.js"></script>
|
||||
<script type="text/javascript" src="./scripts/shBrushJava.js"></script>
|
||||
<script type="text/javascript">
|
||||
SyntaxHighlighter.all();
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<h1 id="toc_1">RegEXP</h1>
|
||||
|
||||
<h2 id="toc_1.1">Password policy</h2>
|
||||
|
||||
<p>
|
||||
at least
|
||||
</p>
|
||||
<ul>
|
||||
<li>
|
||||
lower-case alphabetic character: [a-z]
|
||||
</li>
|
||||
<li>
|
||||
upper-case alphabetic character: [A-Z]
|
||||
</li>
|
||||
<li>
|
||||
decimal digit: [0-9]
|
||||
</li>
|
||||
<li>
|
||||
one of !"#$%&'()*+,-./:;<=>?@[\]^_`{|}~
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<p>
|
||||
and 8 chars long
|
||||
</p>
|
||||
|
||||
<pre class="brush: bash; toolbar: false;">
|
||||
(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*\\p{Punct})\\p{Graph}{8}
|
||||
</pre>
|
||||
|
||||
|
||||
<p>
|
||||
Example:
|
||||
</p>
|
||||
|
||||
<pre class="brush: java; toolbar: false;">
|
||||
import java.sql.SQLException;
|
||||
import java.util.regex.Pattern;
|
||||
import java.util.regex.Matcher;
|
||||
|
||||
public class reg {
|
||||
|
||||
/**
|
||||
* @param args
|
||||
* @throws SQLException
|
||||
* @throws ClassNotFoundException
|
||||
*/
|
||||
public static void main(String[] args) throws SQLException, ClassNotFoundException {
|
||||
Pattern p = Pattern.compile("(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*\\p{Punct})\\p{Graph}{8}");
|
||||
Matcher m = p.matcher("13a!56A2");
|
||||
boolean b = m.matches();
|
||||
System.out.println(b)
|
||||
}
|
||||
}
|
||||
</pre>
|
||||
|
||||
<h2 id="toc_1.2">Delete foo</h2>
|
||||
|
||||
<p>
|
||||
lösche jede Zeile, welche eine Fileendung enhällt
|
||||
</p>
|
||||
<pre class="brush: bash; toolbar: false;">
|
||||
(.*?)\.(.*)$
|
||||
</pre>
|
||||
|
||||
<p>
|
||||
das gleiche nur im Vim
|
||||
</p>
|
||||
<pre class="brush: bash; toolbar: false;">
|
||||
:g/\.\(.*\)$/d
|
||||
</pre>
|
||||
|
||||
<p>
|
||||
[ <a href="index.html">Go home</a> ]
|
||||
</p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,42 +0,0 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<link type="text/css" rel="stylesheet" href="./styles/shCore.css" />
|
||||
<link type="text/css" rel="stylesheet" href="./style.css" />
|
||||
<link type="text/css" rel="stylesheet" href="./styles/shThemeDefault.css" />
|
||||
<script type="text/javascript" src="./scripts/shCore.js"></script>
|
||||
<script type="text/javascript" src="./scripts/shBrushBash.js"></script>
|
||||
<script type="text/javascript" src="./scripts/shBrushJava.js"></script>
|
||||
<script type="text/javascript">
|
||||
SyntaxHighlighter.all();
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<h1 id="toc_1">Snow Leopard</h1>
|
||||
|
||||
<h2 id="toc_1.1">Disable Spotlight on all Volumes</h2>
|
||||
<pre class="brush: bash; toolbar: false;">
|
||||
sudo mdutil -a -i off
|
||||
</pre>
|
||||
|
||||
<h2 id="toc_1.2">Enable it again for the Volume Hive</h2>
|
||||
<pre class="brush: bash; toolbar: false;">
|
||||
sudo mdutil -i on /Volumes/Hive
|
||||
</pre>
|
||||
|
||||
<h2 id="toc_1.3">Reindex Spotlight</h2>
|
||||
<pre class="brush: bash; toolbar: false;">
|
||||
sudo mdutil -E /Volumes/Hive
|
||||
</pre>
|
||||
|
||||
<h2 id="toc_1.4">Disable dictionary search in Spotlight</h2>
|
||||
<pre class="brush: bash; toolbar: false;">
|
||||
defaults write com.apple.spotlight DictionaryLookupEnabled NO
|
||||
</pre>
|
||||
|
||||
<p>
|
||||
[ <a href="index.html">Go home</a> ]
|
||||
</p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,39 +0,0 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<link type="text/css" rel="stylesheet" href="./styles/shCore.css" />
|
||||
<link type="text/css" rel="stylesheet" href="./style.css" />
|
||||
<link type="text/css" rel="stylesheet" href="./styles/shThemeDefault.css" />
|
||||
<script type="text/javascript" src="./scripts/shCore.js"></script>
|
||||
<script type="text/javascript" src="./scripts/shBrushBash.js"></script>
|
||||
<script type="text/javascript" src="./scripts/shBrushJava.js"></script>
|
||||
<script type="text/javascript">
|
||||
SyntaxHighlighter.all();
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<h1 id="toc_1">avimerge</h1>
|
||||
|
||||
<p>
|
||||
<em>avimerge</em> ist im transcode Paket enthalten. Die Installation dauert sehr lange, da <em>MacOS</em> anscheinend viele benötigten <em>Libraries</em> nicht standardmäßig enthalten.
|
||||
</p>
|
||||
|
||||
<pre class="brush: bash; ; toolbar: false;">
|
||||
$ sudo port install transcode
|
||||
</pre>
|
||||
|
||||
<p>
|
||||
Mehrere Videoparts in eine Datei mergen
|
||||
</p>
|
||||
|
||||
<pre class="brush: bash; ; toolbar: false;">
|
||||
$ avimerge -o OutputFile.avi -i Input1.avi Input2.avi
|
||||
</pre>
|
||||
|
||||
|
||||
<p>
|
||||
[ <a href="index.html">Go home</a> ]
|
||||
</p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,39 +0,0 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<link type="text/css" rel="stylesheet" href="./styles/shCore.css" />
|
||||
<link type="text/css" rel="stylesheet" href="./style.css" />
|
||||
<link type="text/css" rel="stylesheet" href="./styles/shThemeDefault.css" />
|
||||
<script type="text/javascript" src="./scripts/shCore.js"></script>
|
||||
<script type="text/javascript" src="./scripts/shBrushBash.js"></script>
|
||||
<script type="text/javascript" src="./scripts/shBrushJava.js"></script>
|
||||
<script type="text/javascript">
|
||||
SyntaxHighlighter.all();
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<h1 id="toc_1">bash</h1>
|
||||
|
||||
<p>
|
||||
encrypt
|
||||
</p>
|
||||
|
||||
<pre class="brush: bash; ; toolbar: false;">
|
||||
$ openssl enc -aes-128-cbc -pass pass:secret -in file.txt -out file.txt.aes
|
||||
</pre>
|
||||
|
||||
<p>
|
||||
decrypt
|
||||
</p>
|
||||
|
||||
<pre class="brush: bash; ; toolbar: false;">
|
||||
$ openssl enc -aes-128-cbc -d -pass pass:secret -in file.txt.aes
|
||||
</pre>
|
||||
|
||||
|
||||
<p>
|
||||
<a href="index.html">[Go home</a>]
|
||||
</p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,30 +0,0 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<link type="text/css" rel="stylesheet" href="./styles/shCore.css" />
|
||||
<link type="text/css" rel="stylesheet" href="./style.css" />
|
||||
<link type="text/css" rel="stylesheet" href="./styles/shThemeDefault.css" />
|
||||
<script type="text/javascript" src="./scripts/shCore.js"></script>
|
||||
<script type="text/javascript" src="./scripts/shBrushBash.js"></script>
|
||||
<script type="text/javascript" src="./scripts/shBrushJava.js"></script>
|
||||
<script type="text/javascript">
|
||||
SyntaxHighlighter.all();
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<h1 id="toc_1">GEMS</h1>
|
||||
|
||||
<h2 id="toc_1.1">uninstall all gems</h2>
|
||||
|
||||
<pre class="brush: bash; ; toolbar: false;">
|
||||
|
||||
gem list | cut -d" " -f1 | xargs gem uninstall -aIx
|
||||
|
||||
</pre>
|
||||
|
||||
<p>
|
||||
[ <a href="index.html">Go home</a> ]
|
||||
</p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
+26
-70
@@ -1,17 +1,12 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<link type="text/css" rel="stylesheet" href="./styles/shCore.css" />
|
||||
<link type="text/css" rel="stylesheet" href="./style.css" />
|
||||
<link type="text/css" rel="stylesheet" href="./styles/shThemeDefault.css" />
|
||||
<script type="text/javascript" src="./scripts/shCore.js"></script>
|
||||
<script type="text/javascript" src="./scripts/shBrushBash.js"></script>
|
||||
<script type="text/javascript" src="./scripts/shBrushJava.js"></script>
|
||||
<script type="text/javascript">
|
||||
SyntaxHighlighter.all();
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<head>
|
||||
<link rel="Stylesheet" type="text/css" href="style.css">
|
||||
<title>index</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<h1 id="toc_1">Michis Onlinebrain</h1>
|
||||
|
||||
<p>
|
||||
@@ -21,68 +16,29 @@ This is my private wiki because my brain has a limited stack size.
|
||||
<h2 id="toc_1.1">Linkliste</h2>
|
||||
<ul>
|
||||
<li>
|
||||
<a href="pdf_decrypt.html">pdf_decrypt</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="avimerge.html">avimerge</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="AES_de-encrypt.html">AES_de-encrypt</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="diskutil.html">diskutil</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="hdiutil.html">hdiutil</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="Linux.html">Linux</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="Apple Mail.html">Apple Mail</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="mp3_wrap.html">mp3_wrap</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="openssl.html">openssl</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="RegEXP.html">RegEXP</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="ssh-copy-id.html">ssh-copy-id</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="tree.html">tree</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="wma2mp3.html">wma2mp3</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="flac2mp3.html">flac2mp3</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="PostgreSQL.html">PostgreSQL</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="vim.html">vim</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="gems.html">gems</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="Snow_Leopard.html">Snow_Leopard</a>
|
||||
</li>
|
||||
<a href="diskutil.html">diskutil</a>
|
||||
|
||||
<li>
|
||||
<a href="ffmpeg.html">ffmpeg</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="Lion.html">Lion</a>
|
||||
</li>
|
||||
<a href="flac2mp3.html">flac2mp3</a>
|
||||
|
||||
<li>
|
||||
<a href="generate bootable USB stick.html">generate bootable USB stick</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="hdiutil.html">hdiutil</a>
|
||||
|
||||
<li>
|
||||
<a href="pdf_decrypt.html">pdf_decrypt</a>
|
||||
|
||||
<li>
|
||||
<a href="ssh-copy-id.html">ssh-copy-id</a>
|
||||
|
||||
<li>
|
||||
<a href="vim.html">vim</a>
|
||||
|
||||
</ul>
|
||||
|
||||
</body>
|
||||
|
||||
@@ -1,47 +0,0 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<link type="text/css" rel="stylesheet" href="./styles/shCore.css" />
|
||||
<link type="text/css" rel="stylesheet" href="./style.css" />
|
||||
<link type="text/css" rel="stylesheet" href="./styles/shThemeDefault.css" />
|
||||
<script type="text/javascript" src="./scripts/shCore.js"></script>
|
||||
<script type="text/javascript" src="./scripts/shBrushBash.js"></script>
|
||||
<script type="text/javascript" src="./scripts/shBrushJava.js"></script>
|
||||
<script type="text/javascript">
|
||||
SyntaxHighlighter.all();
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<h1 id="toc_1">mp3 wrap</h1>
|
||||
|
||||
<p>
|
||||
merge
|
||||
</p>
|
||||
|
||||
<pre class="brush: bash; ; toolbar: false;">
|
||||
$ mp3wrap tmp.mp3 *
|
||||
</pre>
|
||||
|
||||
<p>
|
||||
fix file duration
|
||||
</p>
|
||||
|
||||
<pre class="brush: bash; ; toolbar: false;">
|
||||
$ ffmpeg -i tmp_MP3WRAP.mp3 -acodec copy all.mp3 && rm tmp_MP3WRAP.mp3
|
||||
</pre>
|
||||
|
||||
<p>
|
||||
copy mp3 tags
|
||||
</p>
|
||||
|
||||
<pre class="brush: bash; ; toolbar: false;">
|
||||
$ id3cp 1.mp3 all.mp3
|
||||
</pre>
|
||||
|
||||
|
||||
<p>
|
||||
[ <a href="index.html">Go home</a> ]
|
||||
</p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,60 +0,0 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<link type="text/css" rel="stylesheet" href="./styles/shCore.css" />
|
||||
<link type="text/css" rel="stylesheet" href="./style.css" />
|
||||
<link type="text/css" rel="stylesheet" href="./styles/shThemeDefault.css" />
|
||||
<script type="text/javascript" src="./scripts/shCore.js"></script>
|
||||
<script type="text/javascript" src="./scripts/shBrushBash.js"></script>
|
||||
<script type="text/javascript" src="./scripts/shBrushJava.js"></script>
|
||||
<script type="text/javascript">
|
||||
SyntaxHighlighter.all();
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<h1 id="toc_1">OpenSSL</h1>
|
||||
|
||||
<h2 id="toc_1.1">Erstellung eines Zertifikates</h2>
|
||||
|
||||
<pre class="brush: bash; toolbar: false;">
|
||||
$ openssl req -config openssl.cnf -new -newkey rsa:2048 -nodes -subj '/C=DE/ST=Hessen/L=Frankfurt am Main/O=Johann Wolfgang Goethe-Universitaet/OU=Hochschulrechenzentrum/CN=www.intrastent.uni-frankfurt.de' -keyout private_key_ellos.uni-frankfurt.de.pem -out cert_request_ellos.uni-frankfurt.de.pem
|
||||
</pre>
|
||||
|
||||
<p>
|
||||
mit der folgenden Einstellungen für //Subject Altnerative Names// in der openssl.cnf
|
||||
</p>
|
||||
|
||||
<pre class="brush: bash; toolbar: false;">
|
||||
[req]
|
||||
req_extensions = v3_req
|
||||
|
||||
[v3_req]
|
||||
# Extensions to add to a certificate request
|
||||
basicConstraints = CA:FALSE
|
||||
keyUsage = nonRepudiation, digitalSignature, keyEncipherment
|
||||
|
||||
# Some CAs do not yet support subjectAltName in CSRs.
|
||||
# Instead the additional names are form entries on web
|
||||
# pages where one requests the certificate...
|
||||
subjectAltName = @alt_names
|
||||
|
||||
[alt_names]
|
||||
DNS.1 = www.foo.com
|
||||
DNS.2 = www.foo.org
|
||||
</pre>
|
||||
|
||||
<p>
|
||||
ob es funktioniert hat, überprüft man mit
|
||||
</p>
|
||||
|
||||
<pre class="brush: bash; toolbar: false;">
|
||||
$ openssl req -text -noout -in $CSR_FILENAME
|
||||
</pre>
|
||||
|
||||
|
||||
<p>
|
||||
[ <a href="index.html">Go home</a> ]
|
||||
</p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,27 +0,0 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<link type="text/css" rel="stylesheet" href="./styles/shCore.css" />
|
||||
<link type="text/css" rel="stylesheet" href="./style.css" />
|
||||
<link type="text/css" rel="stylesheet" href="./styles/shThemeDefault.css" />
|
||||
<script type="text/javascript" src="./scripts/shCore.js"></script>
|
||||
<script type="text/javascript" src="./scripts/shBrushBash.js"></script>
|
||||
<script type="text/javascript" src="./scripts/shBrushJava.js"></script>
|
||||
<script type="text/javascript">
|
||||
SyntaxHighlighter.all();
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<h1 id="toc_1">ASCII Ausgabe von Dateisystem</h1>
|
||||
|
||||
<pre class="brush: bash; ; toolbar: false;">
|
||||
$ tree -AFh ./
|
||||
</pre>
|
||||
|
||||
|
||||
<p>
|
||||
[ <a href="index.html">Go home</a> ]
|
||||
</p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,53 +0,0 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<link type="text/css" rel="stylesheet" href="./styles/shCore.css" />
|
||||
<link type="text/css" rel="stylesheet" href="./style.css" />
|
||||
<link type="text/css" rel="stylesheet" href="./styles/shThemeDefault.css" />
|
||||
<script type="text/javascript" src="./scripts/shCore.js"></script>
|
||||
<script type="text/javascript" src="./scripts/shBrushBash.js"></script>
|
||||
<script type="text/javascript" src="./scripts/shBrushJava.js"></script>
|
||||
<script type="text/javascript">
|
||||
SyntaxHighlighter.all();
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<h1 id="toc_1">WMA zu MP3 konvertieren mit mplayer und lame</h1>
|
||||
|
||||
<h2 id="toc_1.1">Rip with Mplayer / encode with LAME</h2>
|
||||
|
||||
<pre class="brush: bash; ; toolbar: false;">
|
||||
$ for i in *.wma ; do mplayer -vo null -vc dummy -af resample=44100 -ao pcm:waveheader $i && lame -m s audiodump.wav -o $i; done
|
||||
</pre>
|
||||
|
||||
<h2 id="toc_1.2">convert file names</h2>
|
||||
|
||||
<pre class="brush: bash; ; toolbar: false;">
|
||||
$ for i in *.wma; do mv "$i" "`basename "$i" .wma`.mp3"; done
|
||||
</pre>
|
||||
|
||||
<h2 id="toc_1.3">code</h2>
|
||||
|
||||
<pre class="brush: bash; ; toolbar: false;">
|
||||
#!/bin/bash
|
||||
#
|
||||
# Dump wma to mp3
|
||||
for i in *.wma
|
||||
do
|
||||
if [ -f "$i" ]; then
|
||||
rm -f "$i.wav"
|
||||
mkfifo "$i.wav"
|
||||
mplayer -quiet -vo null -vc dummy -af volume=0,resample=44100:0:1 -ao pcm:waveheader:file="$i.wav" "$i" &
|
||||
dest=`echo "$i"|sed -e 's/wma$/mp3/'`
|
||||
lame -V0 -h -b 160 --vbr-new "$i.wav" "$dest"
|
||||
rm -f "$i.wav"
|
||||
fi
|
||||
done
|
||||
</pre>
|
||||
|
||||
<p>
|
||||
[ <a href="index.html">Go home</a> ]
|
||||
</p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user