User Tools

Site Tools


development

This is an old revision of the document!


Development

Git

Documentation online as well as downloadable as HTML, ePub, etc.: Pro Git

Set the default editor:

git config --global core.editor '/usr/bin/sublime -w'

Show the full pretty formatted version log including decoration (branch names and tags):

git log --decorate --graph --full-history --all --color --pretty=format:"%x1b[31m%h%x09%x1b[32m%d%x1b[0m%x20%s"

Show all diffs which were made between two commits in reverse order (ascending commit time) which is useful for code reviews:

git log commit..commit -p --reverse

Partial staging, select rows to stages:

git add -p test.txt

LDAP

General information

  • DN: distinguished name
  • CN: common name
  • OU: organizational unit
  • DC: domain component

Searches

  • Search within base DN:
    ldapsearch -h example.com -b "dc=wob,dc=vw,dc=vwg" "cn=MY_IDENTIFIER"
  • Search the whole database:
    ldapsearch -h example.com "cn=MY_IDENTIFIER"
  • Search a host inside all Oracle TNS strings:
    ldapsearch -h example.com "orclNetDescString=*HOST=database.tld*"

References

Windows

Create .lnk files in batch:

powershell '$s=(New-Object -COM WScript.Shell).CreateShortcut("my_shortcut.lnk");$s.TargetPath="C:\my_path\to\some_file.txt";$s.Save()'
development.1449735876.txt.gz · Last modified: (external edit)