Skip to content

Instantly share code, notes, and snippets.

View lee-pai-long's full-sized avatar
💭
Work In Progress

Saïdina MOHAMED ALI lee-pai-long

💭
Work In Progress
  • Marseille (France)
View GitHub Profile

[ZIMBRA] Auto provisioning

available with version 8.x+


Use Case

When using an external LDAP directory (example: Microsoft Active Directory) as the authoritative source for account provisioning, streamline the process of creating the mailbox account and populating GAL attributes.

[CentOS] Install NTP client

Install package

$ [sudo] yum install ntp

Activate ntp service on start

[LINUX] get stripped IP

Get only private IP address from an interface

$ ip a | grep <interface> | grep inet | cut -f1 -d/ | awk '{print $2}'

or if your locale is set to english

[LINUX] Find the graphic card model installed

Using lspci

$ lspci -v | grep -i vga
00:02.0 VGA compatible controller: Intel Corporation 3rd Gen Core processor Graphics Controller (rev 09) (prog-if 00 [VGA controller])
01:00.0 VGA compatible controller: NVIDIA Corporation GK107M [GeForce GT 640M LE] (rev a1) (prog-if 00 [VGA controller])

[CHROMIUM] Troubleshooting error "Your profile could not be opened correctly"

If you have a Google account

Stop chromium, open a terminal and delete the user profile directory :

$ rm -rf ~/.config/chromium/Default

[LINUX] Delete all empty file in a tree

$ find </path/to/tree> -type f -size 0 -exec rm -f {} \;

An option -name can be use to specify only certain files.

[SQLSERVER] Verify database integrity

Connect to SQLSERVER

> osql -S <SERVER>/<INSTANCE> -E

Check integrity

[TELNET] SMTP

Connect to the server

$ telnet <servername_or_ip> <port>

(Default port : 25)

[TELNET] POP3

Connection on the server

$ telnet <servername_or_ip> <port>

[VIRTUALBOX] Resize vmdk

$ vboxmanage clonehd </path/to/disk.vmdk> <path/to/clone.vdi> --format vdi && \
> vboxmanage modifyhd /path/to/clone.vdi --resize XXXXXX && \
> vboxmanage clonehd /path/to/clone.vdi /path/to/disk.vmdk --format vmdk
  • XXXXX is the desired size in MB