Skip to content

Instantly share code, notes, and snippets.

<?xml version="1.0" encoding="UTF-8"?>
<zabbix_export>
<version>3.0</version>
<date>2016-06-02T14:04:17Z</date>
<groups>
<group>
<name>Templates</name>
</group>
</groups>
<templates>
@sund
sund / vimrc.txt
Created June 19, 2014 18:17
vimrc helps
" check for and create bundle and plugin dirs
" may make this in bash.profile script
"if !isdirectory("~/.vim/bundle")
" call mkdir("~/.vim/bundle", "p")
"endif
"if !isdirectory("~/.vim/plugin")
" call mkdir("~/.vim/plugin", "p")
"endif
@sund
sund / bashtips.sh
Created September 12, 2013 17:31
bash scripting helps
## determine what directory a script lives in
```bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
```
@sund
sund / _bashfoo.md
Last active October 12, 2018 01:54
Cool foo; tips, tricks, one-liners and more

Change to directory of a variables path

cd "$(dirname "${PATHVariable}")"

archive the installed list of packages

dpkg --list > ~/Documents/dpkglogs/dpkgList-`date +%F`.txt
@sund
sund / .gitattributes
Last active December 16, 2015 09:29
Good and usefull default .git_ files
# Auto detect text files and perform LF normalization
* text=auto
# Standard
*.doc diff=astextplain
*.DOC diff=astextplain
*.docx diff=astextplain
*.DOCX diff=astextplain
*.dot diff=astextplain
*.DOT diff=astextplain
@sund
sund / svnmeta.txt
Last active December 16, 2015 01:30
SVN Repo Metatdata
<!--
###
## SUBVERSION metadata
## Filename, Rev, Date, Author
## $Id: $
## $URL: $
###
-->
@sund
sund / finddelete.txt
Last active September 5, 2022 02:11
find and remove files or folders
find . -name "item_to_be_removed" -exec rm -rf {} \;
@sund
sund / sendHelloEmail.sh
Last active December 10, 2015 00:48
a simple script that sends and email
################################
#
# sendHelloEmail.sh
# -----------------------------
# a silly script to send email
# when run (from cron)
#
# template version .3
# ver: 1 date:
# author: