Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
# Install and download the latest Version of IMSCP
LATEST_VERSION=$(curl -s https://github.com/i-MSCP/imscp/releases/latest|grep -Po '(?<=/tag/)[0-9.]+')
INSTALLED_VERSION=$(cat /etc/imscp/imscp.conf|grep -Po '(?<=Version = )[0-9.]+')
TARGET=/usr/local/src/
echo "installed imscp-version: $INSTALLED_VERSION"
<?php
$randomValue = mt_rand();
$even = $randomValue & ~1;
$odd = $randomValue | 1;
// magical unicorn isn't it?

Remove white background color of an image in ImageMagick

$ convert  your.jpg  -transparent white  your.png

Flatten a transparent image with a white background:

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname