sudo nano /etc/default/keyboard
Examples :
- XKBVARIANT=""
- XKBVARIANT="bepo"
| # Ajoute un avatar aux utilisateurs sans avatar avec un id entre 1 et 14 | |
| UPDATE `users` | |
| SET `picture` = CONCAT('default/', CAST((RAND()*(14-1)+1) AS UNSIGNED), '.jpg') | |
| WHERE `picture` IS NULL; | |
| # Regénère les avatars avec un id entre 1 et 14 | |
| UPDATE `users` | |
| SET `picture` = CONCAT('default/', CAST((RAND()*(14-1)+1) AS UNSIGNED), '.jpg') | |
| WHERE `picture` LIKE '%default%'; |
| <?php | |
| $image = imagecreatefromjpeg("bg.jpg"); | |
| $blackColor = imagecolorallocate($image, 0, 0, 0); | |
| $RobotoLight = 'Roboto-Light-webfont.ttf'; | |
| $centerX = imagesx($image); | |
| // Text: 'TEXT', Angle: '0', Y: '100' | |
| $text1 = utf8_decode("TEXT"); | |
| $text1_size = 50; |
| <?php | |
| $img = imagecreatefromjpeg('img.jpg'); | |
| $size = 250; // Size to display | |
| $maxSize = (imagesx($img) >= imagesy($img)) ? imagesx($img) : imagesy($img); | |
| if($size > $maxSize) $size = $maxSize; | |
| // Ellipse | |
| $imgEllipse = imagecreatetruecolor($size, $size); | |
| imagefill($imgEllipse, 0, 0, imagecolorallocate($imgEllipse, 255, 255, 255)); |
| <?php | |
| ob_start(); | |
| imagejpeg($image); | |
| $output = ob_get_clean(); | |
| ob_clean(); | |
| return "<img src='data:image/jpeg;base64,".base64_encode($output)."' />"; |
| version: "3" | |
| services: | |
| database: | |
| image: mariadb | |
| container_name: mariadb-database | |
| restart: unless-stopped | |
| ports: | |
| - 3306:3306 | |
| volumes: |
| #!/bin/sh | |
| echo "# Getting scripts..." | |
| wget -O /tmp/script_rancher.sh https://releases.rancher.com/install-docker/1.12.sh | |
| wget -O /tmp/script_digitalocean.sh https://agent.digitalocean.com/install.sh | |
| chmod +x /tmp/script_rancher.sh /tmp/script_digitalocean.sh | |
| echo "# Rancher agent" | |
| /tmp/script_rancher.sh |
| CATTLE_PROMETHEUS_EXPORTER=true |
| #!/bin/sh | |
| # Run this script with ROOT | |
| apt-get update | |
| apt-get install -y \ | |
| apt-transport-https \ | |
| ca-certificates \ | |
| curl \ |
| rancher: | |
| image: rancher/rancher:latest | |
| container_name: rancher | |
| restart: unless-stopped | |
| command: --acme-domain rancher.example.com | |
| ports: | |
| - 80:80 | |
| - 443:443 | |
| volumes: | |
| - ./data:/var/lib/rancher |