Skip to content

Instantly share code, notes, and snippets.

@kslimani
kslimani / upgrade2buster.md
Created September 5, 2019 08:35
Linux Debian Buster upgrade procedure

Linux Debian Buster upgrade procedure

Starting a Screen Session

Start a screen session is recommended to ensure that the updates will continue to install in the unlikely event you are disconnected during the upgrade process.

Install screen package :

@kslimani
kslimani / upgrade2stretch.md
Last active June 8, 2019 14:56
Linux Debian Stretch upgrade procedure
@kslimani
kslimani / debian8_lts.md
Last active June 5, 2019 09:25
Debian 8 LTS

# Debian 8 LTS

/etc/apt/sources.list file :

# Debian Jessie - LTS
deb http://deb.debian.org/debian/ jessie main contrib non-free
deb-src http://deb.debian.org/debian/ jessie main contrib non-free

deb http://security.debian.org/ jessie/updates main contrib non-free

Upgrade PHP to 7.2 on Debian 8

LibreNMS minimim requirements will change to php >= 7.1.

Uninstall PHP 5 :

apt-get remove php-net-ipv4 php-net-ipv6 php-pear php5-cli php5-common php5-curl php5-fpm php5-gd php5-json php5-mcrypt php5-mysqlnd php5-snmp
@kslimani
kslimani / ixgbe_debian.md
Last active June 5, 2024 10:47
Debian ixgbe module compilation
@kslimani
kslimani / doctrine-orm.md
Created September 3, 2015 08:44
Doctrine 2

Doctrine ORM entities

Add in composer.json :

"doctrine/orm": "2.5.*",
"symfony/validator": "2.6.*",
"jms/serializer": "1.0.0"
@kslimani
kslimani / teamspeak-server.md
Last active December 31, 2022 15:17
LINUX TEAMSPEAK SERVER

LINUX TEAMSPEAK SERVER

About teamspeak 3

  • Teamspeak default UDP voice port is 9987
  • Teamspeak default TCP file transfert port is 30033
  • Teamspeak default TCP query port is 10011
  • For query server, just connect with SSH to server and use telnet locally
  • logrotate is not supported
@kslimani
kslimani / maxmind-iso-3166.php
Last active August 29, 2015 14:26
PHP Helper class which extract GeoIP ISO 3166 multi-languages country Codes list from Maxmind website
<?php
/**
* Helper class which extract GeoIP ISO 3166 country Codes list from Maxmind website.
*/
class MaxMindIso3166
{
/**
* Maxmind CSV download url.
*
@kslimani
kslimani / watch.sh
Last active August 29, 2015 14:21
Bash script which watch Postfix virtual user mailbox folder
#!/bin/bash
#
# Watch Postfix virtual user mailbox folder.
#
# inotify-tools APT package is required
#
DEFAULT_USER="test"
DEFAULT_DOMAIN="yahoo.dev"