• [multi version PHP] Activer FPM pour apache avec plusieurs versions de PHP installer
    Posted on Monday March 20, 2023
    # installation apt-get install php8.0-fpm # activation a2enconf php8.0-fpm /etc/init.d/php8.0-fpm start # Modifier Apache config: <Directory "/home/WEB/Pics"> <FilesMatch \.php$> # SetHandler "proxy:unix:/run/php/php8.0-fpm.sock|fcgi://localhost/" </FilesMatch> Require all granted RewriteEngine On php_admin_flag allow_url_fopen On Options -Indexes +FollowSymLinks AllowOverride All </Directory> Continue Reading »
  • [PHP 8] Error reporting error_reporting(0);
    Posted on Monday March 20, 2023
    <?php // Turn off all error reporting error_reporting(0); // Report simple running errors error_reporting(E_ERROR | E_WARNING | E_PARSE); // Reporting E_NOTICE can be good too (to report uninitialized // variables or catch variable name misspellings ...) error_reporting(E_ERROR | E_WARNING | E_PARSE | E_NOTICE); // Report all errors except E_NOTICE error_reporting(E_ALL & ~E_NOTICE); // Report all PHP errors error_reporting(E_ALL); // Report all PHP errors error_reporting(-1); // Same as error_reporting(E_ALL); ini_set('error_reporting', E_ALL); ?> Continue Reading »
  • Logcheck
    Posted on Wednesday March 15, 2023
    Règler Logcheck pour n'avoir que les rapports UNE fois par jour $ apt-get install logcheck Lecture des listes de paquets... Fait Construction de l'arbre des dépendances Lecture des informations d'état... Fait Les paquets supplémentaires suivants seront installés : libipc-signal-perl libproc-waitstat-perl logcheck-database mime-construct Paquets suggérés : syslog-summary Les NOUVEAUX paquets suivants seront installés : libipc-signal-perl libproc-waitstat-perl logcheck logcheck-database mime-construct 0 mis à jour, 5 nouvellement installés, 0 à enlever et 0 non mis à jour. Il est nécessaire de prendre 221 ko dans les archives. Après cette opération, 843 ko d'espace disque supplémentaires seront utilisés. Souhaitez-vous continuer ? [O/n] Editer le fichier du cron pour n'avoir que les check vers minuit . Au lieu d'ètre spamé à chaque action!! nano /etc/cron.d/logcheck # /etc/cron.d/logcheck: crontab entries for the logcheck package PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin MAILTO=root @reboot logcheck if [ -x /usr/sbin/logcheck ]; then nice -n10 /usr/sbin/logcheck -R; fi [b]59 23[/b] * * * logcheck if [ -x /usr/sbin/logcheck ]; then nice ... Continue Reading »
  • [PHP] URL page detect
    Posted on Tuesday March 14, 2023
    <?php echo $_SERVER['PHP_SELF']; ?> Continue Reading »
  • IFRAME auto height
    Posted on Tuesday March 14, 2023
    <!--iframe tag--> <script> // Selecting the iframe element var frame = document.getElementById("Iframe"); // Adjusting the iframe height onload event frame.onload = function() // function execute while load the iframe { // set the height of the iframe as // the height of the iframe content frame.style.height = frame.contentWindow.document.body.scrollHeight + 'px'; // set the width of the iframe as the // width of the iframe content frame.style.width = frame.contentWindow.document.body.scrollWidth+'px'; } ... Continue Reading »
  • DayZ Script DZSALModServer.exe
    Posted on Saturday March 11, 2023
    Script Dayz Script .ps1 pour DZSALModServer.exe ## # File ShellMod_dayz.ps1 # Set the window title $WindowTitle = "Mods Shell Script 8" # Set number of serv $num = 8 $port = "3800" #$port = "3 $num 00" # Set the path to the input file $cfgFilePath = "D:\OmegaManager\servers\$num\omega.cfg" # Set the path to the output file $batFilePath = "D:\OmegaManager\servers\$num\ModsShell$num.bat" # Load the contents of the file into a JSON object $config = Get-Content -Raw -Path $cfgFilePath | ConvertFrom-Json # Get the names of the directories in the 'mods' section of the config $modDirectories = ($config.mods | Where-Object { -not $_.disabled } | Where-Object { $_.server_side -eq $false }| Select-Object -ExpandProperty directory) -join ';' # Create the contents of the output file $batContents = "@echo off`r`n" $batContents += "D:\OmegaManager\servers\$num\DZSALModServer.exe `"-config=D:\OmegaManager\servers\$num\serverDZ.cfg`" `"-port=$port`" `"-mod=$modDirectories`" -skipserver" # Write the contents to the output file Set-Content -Path $batFilePath -Value $batContents # PowerShell avec titre Start-Process -FilePath "$batFilePath" -NoNewWindow $host.UI.RawUI.WindowTitle = "Mods Shell $num" Download File: ShellMod_dayz.ps1 Continue Reading »
  • Shell Windows
    Posted on Saturday March 11, 2023
    Complete List of Windows 10/11 (Shell Commands) Le shell de Windows Complete List of Windows 10 ( Shell Commands ) A shell command can be typed in the Run(Windows+R) dialog, search, File Explorer address bar, and Internet Explorer address bar to open a Windows shell folder. This tutorial will show you a complete list of shell commands that can be used to easily open or create shortcuts of specific shell folders in Windows 10. The red shell commands in the table below are new to Windows 10. You can find the shell command listed in the Name string value data for each CLSID (GUID) key number at the registry location below. [code]HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions[/code] You can create a shortcut with a shell command by adding explorer in front of the shell command. For example: explorer shell:command Shell Command Opens shell:3D Objects %UserProfile%\3D Objects shell:AccountPictures %AppData%\Microsoft\Windows\AccountPictures shell:AddNewProgramsFolder Control Panel\All Control Panel Items\Get Programs shell:Administrative Tools %AppData%\Microsoft\Windows\Start Menu\Programs\Administrative Tools shell:AppData %AppData% shell:Application Shortcuts %LocalAppData%\Microsoft\Windows\Application Shortcuts shell:AppsFolder Applications shell:AppUpdatesFolder Installed Updates shell:Cache %LocalAppData%\Microsoft\Windows\INetCache shell:Camera Roll %UserProfile%\Pictures\Camera Roll shell:CD Burning %LocalAppData%\Microsoft\Windows\Burn\Burn shell:ChangeRemoveProgramsFolder Control Panel\All Control Panel Items\Programs and Features shell:Common Administrative Tools %ProgramData%\Microsoft\Windows\Start Menu\Programs\Administrative Tools shell:Common AppData %ProgramData% shell:Common Desktop %Public%\Desktop shell:Common Documents %Public%\Documents shell:CommonDownloads %Public%\Downloads shell:CommonMusic %Public%\Music shell:CommonPictures %Public%\Pictures shell:Common Programs %ProgramData%\Microsoft\Windows\Start Menu\Programs shell:CommonRingtones %ProgramData%\Microsoft\Windows\Ringtones shell:Common Start Menu %ProgramData%\Microsoft\Windows\Start Menu shell:Common Startup %ProgramData%\Microsoft\Windows\Start Menu\Programs\Startup shell:Common Templates %ProgramData%\Microsoft\Windows\Templates shell:CommonVideo %Public%\Videos shell:ConflictFolder Control Panel\All Control Panel Items\Sync Center\Conflicts shell:ConnectionsFolder Control ... Continue Reading »
  • Tips Linux2
    Posted on Thursday February 16, 2023
    TIPS linux Some usefull tips. Kali linux ... Continue Reading »
  • Don't copy-paste from unknow source.
    Posted on Tuesday March 24, 2020
    Ne pas copier/coller nimporte quoi dans votre terminal SSH On a tous un jour copier ne serait-ce qu'un git clone ou un bout de script (ou même une toute petite ligne de commande) sur une page/article d'un site , malheureux qu'a tu fais ... Ne sais tu pas que le texte que tu vois ne correspond pas fatalement au code qu'il renvoie Exemple Regardez l'exemple suivant un lien GIT banal et copier le code ci-dessous ( ctrl + c ): git clone /dev/null; clear; echo -n "Bonjour ";whoami|tr -d '\n';echo -e '!\nMauvaise idee. Ne copiez pas de code a partir de sites que vous ne connaissez pas! Voici la premiere ligne de votre fichier /etc/passwd: ';head -n1 /etc/passwd git clone git://git.github.com/dont/copy/paste/from/unknow/source.git Et maintenant collé le dans votre terminal ! (c'est sans risque ... seulement pour l'exemple.Voir le code plus bas) Pour TESTER , Coller ici pour voir le résultat Coller ici Voici le code utilisé pour cela: git clone <span style="position: absolute; left: -2000px; top: -100px">/dev/null; clear; echo ... Continue Reading »
  • Update Auto apt Debian
    Posted on Monday March 19, 2018
    Mise à jour auto des paquets de sécurité Debian en 1 commande :p Simplement en installant unattended-upgrades avec APT : apt install unattended-upgrades $ apt install unattended-upgrades ATTENTION !! Il faut paramétrer le paquet avec cette commande: dpkg-reconfigure unattended-upgrades Tapez cette commande (root): $ dpkg-reconfigure unattended-upgrades Vous devriez avoir un texte comme ceci apparaitre: Il est important de mettre régulièrement son système à jour pour maintenir un haut niveau de sécurité. Par défaut, les mises à jour doivent être appliquées manuellement à l'aide d'un outil de gestion de paquets. Autrement, vous pouvez choisir d'automatiser ce processus de télé chargement et d'installation des mises à jour de sécurité. Faut-il automatiquement télécharger et installer les mises à jour de la version stable ? Oui Répondre . OUI Veuillez indiquer une valeur pour le motif de correspondance « Origin-Pattern » pour unattended-upgrades. Un paquet sera mis à jour uniquement si ses métadonnées correspondent à tous les mots ... Continue Reading »
  • Automatically update Debian security package
    Posted on Thursday February 16, 2023
    update Linux security package Work on all Debian In two step you're done ! You need to install unattended-upgrades from APT repository. apt install unattended-upgrades Now you need to configure properly the package. dpkg-reconfigure unattended-upgrades --> Answer YES Enable Email Notification uncomment in /etc/apt/apt.conf.d/50unattended-upgrades and add your Email address. Unattended-Upgrade::Mail "My-super@mail.com"; You will receive this email when an update was done Unattended upgrade result: Toutes les mises à niveau ont été installées Avertissement : un redémarrage est requis afin d'achever cette mise à niveau ou une précédente. Paquets mis à niveau : libgnutls30 Journal d'installation des paquets : Log started: 2023-02-16 06:57:47 (Lecture de la base de données... (Lecture de la base de données... 5% (Lecture de la base de données... 10% (Lecture de la base de données... 15% (Lecture de la base de données... 20% (Lecture de la base de données... 25% (Lecture de la base de données... 30% (Lecture de la base de données... 35% (Lecture de la base de données... 40% (Lecture de la base de données... 45% (Lecture de la base de données... 50% (Lecture de la base de données... 55% (Lecture de la base de données... 60% (Lecture de la base de données... 65% (Lecture de la base de données... 70% (Lecture de la base de données... 75% (Lecture de la base de données... 80% (Lecture de la base de données... 85% (Lecture ... Continue Reading »
  • Tools indispensables
    Posted on Wednesday March 08, 2023
    Tools Tools de la mort indispensables ! ... Continue Reading »
  • Nano Shortcut
    Posted on Monday May 11, 2020
    Nano's shortcuts The editor's keystrokes and their functions File handling Ctrl+S Save current file Ctrl+O Offer to write file ("Save as") Ctrl+R Insert a file into current one Ctrl+X Close buffer, exit from nano Editing Ctrl+K Cut current line into cutbuffer Alt+6 Copy current line into cutbuffer Ctrl+U Paste contents of cutbuffer Alt+T Cut until end of buffer Ctrl+] Complete current word Alt+3 Comment/uncomment line/region Alt+U Undo last action Alt+E Redo last undone action Search and replace Ctrl+Q Start backward search Ctrl+W Start forward search Alt+Q Find next occurrence backward Alt+W Find next occurrence forward Alt+R Start a replacing session Deletion Ctrl+H Delete character before cursor Ctrl+D Delete character under cursor Ctrl+Shift+Del Delete word to the left Ctrl+Del Delete word to the right Alt+Del ... Continue Reading »
  • Category
    Posted on Thursday April 23, 2020
    CATEGORY Continue Reading »
  • Code is life
    Posted on Monday May 25, 2020
    Continue Reading »
  • best tips
    Posted on Saturday March 11, 2023
    Tips Windows 👀 Best commands Tips for Windows Réparer Windows ... Continue Reading »
  • fail2web
    Posted on Sunday March 12, 2023
    Fail2web Monitoring your fail2ban ban web GUI. ... Continue Reading »
  • vnstat
    Posted on Saturday May 02, 2020
    VNSTAT Console moniteur de traffic et générateur graphique d'images (.png) Installation de vnstat Il existe deux varientes de vnstat, un mode console seulement et un mode avec géneration d'images. Pour vnstat simple: $ apt-get install vnstat Et vnstati pour générer les images: apt-get install vnstati Generation des images Pour génerer les images il suffit de placer un crontab pour chcune d'entre elles: $ crontab -e 5 * * * * vnstati -s -i eth0 -o PATH/vnstat/summary.png >/dev/null 2>&1 2 * * * * vnstati -h -i eth0 -o PATH/vnstat/hourly.png >/dev/null 2>&1 2 * * * * vnstati -d -i eth0 -o PATH/vnstat/daily.png >/dev/null 2>&1 2 * * * * vnstati -t -i eth0 -o PATH/vnstat/top10.png >/dev/null 2>&1 2 * * * * vnstati -m -i eth0 -o PATH/vnstat/monthly.png ... Continue Reading »
  • fonts
    Posted on Thursday September 26, 2019
    Fonts for windows List Fonts for windows. Fonts for windows List Fonts for windows. {{ page.content|toc }} Source: OFL fonts for the reference. ## Century Catalogue This font is currently the closest to release, with a decent glyph complement. It's a straightforward revival of a somewhat forgotten, but handsome and utilitarian, font from the ATF collection. It's obviously very similar to the familiar Century Oldstyle, but with more refined proportions and stroke. This version is based on the 18pt from the 1923 catalog. The current version is released under the new Open Font License of SIL. [ FontForge source | PostScript font file | PDF showing ] ## Inconsolata This monospaced font design has its own page. Museum Caps ## LeBe LeBe Titling: [ FontForge source | PDF showing ] LeBe Book: [ FontForge source | PDF showing ] ## ATF Bodoni [ FontForge source | PDF showing ] ATF Franklin Gothic [ FontForge source | PDF showing ] Source: OFL fonts for the reference. ## Century Catalogue This font is currently the closest to release, with a decent ... Continue Reading »
  • Bashtop
    Posted on Thursday April 23, 2020
    Usage: Linux resource monitor Language: Bash Description Resource monitor that shows usage and stats for processor, memory, disks, network and processes. Features Easy to use, with a game inspired menu system. Fast and responsive UI with UP, DOWN keys process selection. Function for showing detailed stats for selected process. Ability to filter processes. Easy switching between sorting options. Send SIGTERM, SIGKILL, SIGINT to selected process. UI menu for changing all config file options. Auto scaling graph for network usage. Shows message in menu if new version is available Themes Bashtop now has theme support and a function to download missing local themes from repository. See themes folder for available themes. Let me know if you want to contribute with new themes. Upcoming Currently rewriting to use python3 psutil for data collection instead of linux specific tools. This will add python 3 and psutil as dependencies, but will make bashtop cross platform compatible. Please let me know if there is an interest in keeping current version without python dependencies alive. Compability Should work on most modern linux distributions with a truecolor capable terminal. Dependencies bash (v4.4 or later) Script functionality will most probably break ... Continue Reading »