ulf laube
Prlsh Nixnux - P
e
rl sh
ell
U
NIX
Li
nux
Shell
⌂
📷
⌨
Perl
dbi
get an unique array of values
get 1 var from dbi select
using a mysql temporary table
mysql insert or update
bulk operations
select from big table with LIMIT
hashes
add key/value
number of hash entries
merge hashes
array of hash keys
array of hash values
loops
sorting
Clear (or empty) a hash
Clear (or empty) a hash reference
Matching hash keys to a regular expression
check if a hash is empty
hash of arrays (HoA)
hash of hashes (HoH)
misc
run_as
io
simple file slurping
end of file (EOF)
run_control
PID 1
PID 2
net
get website w authorization
Net::FTP - read file content
Net::FTP::Throttle
perl_modules
play with modules
fix XML::XPath::Node::Attribute
getopts
use Getopt::Long;
fork
use forks
xml
tidy xml
strings
count the separator characters in a string
Build a subdir structure based on hex
arrays
number of array elements
fast search in a array
hash from array
string from array
unique array
sort
array of hashes (AoH)
array of arrays (AoA)
variables
line number that Perl is executing
print all modules
funktion name
test if number of any kind
mail
Net::SMTP
Mail::Sender
start_SSL failed
Shell
sed
eliminating HTML-tags
center all text in the middle of 79-column width
tick marks
add 'foo' to end of each line
add text to the beginning of a file
replace new line character
eliminating special filename characters
remove last character of a file
print last character of a file
vim
vim encoding
search multiple consecutive spaces
Void Match
Perform a non-regex search/replace in vim
clear last search highlighting
vim syntax highlighting of OBO Flat File
/etc/vimrc.local
save highlighted syntax in a HTML file
bash
crop a URL from 'a href' html tag
while loop with counter
bash arrays
bash hashes / bash associative arrays
seq A - Z
yes / no
escape apostrophes in sql statements
ascii spinner
day diff
shift
Print duplicate lines
Getting the count of unique values in a column
week of month
Skip comment lines
stop_at_end_of_a_time.sh
get total number of cpus/cores in server
bash: preserve leading/trailing tabs and whitespaces while reading/writing line by line
Modifying variable inside while loop is not remembered
make nested directory structure from 00 - FF
sort huge files
encoding
character encoding
Remove Byte-Order Marks (BOM)
sed with canonical hex
make nice unix names recursively
Nixnux
hardware
atkbd serio0 - logfile flooding
security
rkhunter
monitoring
user level logrotate
coloring different sources for tail: ctail
quick'n'dirty smartctl/mdstat check
qick subnet inventory
cp_over_net
tar / ssh
tar / mbuffer / ssh
success story: copy hunderts of data DVD's with lots of small files into a storage pool
tomcat
settings
logging
X11
set OBO Flat File MIME-Types
KDE3 Knews on XFCE4/lxdm
compiz: make application always on visible workspace
mounts_devs
sftp + sshfs
mount samsung s3
mount NFS with NetworkManager in intranet only
ssh
SSH autologout
ssh: permit root login only from local network / ip
tar
tar with pigz
boot_grub
GRUB2 KMS Kernel-Mode-Setting
rescue: chroot mit cryptsetup LUKS und LVM
fix grubloader on opensuse
apache
snippets
openSUSE
Disable martian logging
split /etc/SuSE-release
opsensuse 12.3 : systemd / nfs4 mount
kde3 on XFCE4 with ldm
clear tmp dir on boot
speedtest-cli
openSUSE bugfix - /dev/getty: No such file or directory
Misc
mysql
Totally reset auto increment primary key
phpMyAdmin - custom settings in config.inc.php
Case insensitive search on varbinary field
Find and Replace underscore in a mySQL database field
load data from a tsv file with header and selected columns
joomla
Akeeba Backup
develop
development konsole
NX
set kb in nxclient
nxclient 3.5 crashed on opensuse 13.1
FreeNX with lxdm and xfce4 on opensuse
graphic
ImageMagick
Merge convert multiple PDF files into one PDF
Split PDF file
audio
rip audio cdrom to mp3 with abcde