Ce tutoriel couvre les bases de l'utilisation de GDB avec l'extension Pwndbg pour déboguer des programmes en C ou des exécutables ELF.
- Installer GDB :
| #!/usr/bin/env bash | |
| # Install de l'interface xubuntu sur Ubuntu Server 22.04 | |
| # Install des drivers Nvidia + CUDA | |
| # Install de tools | |
| set -e | |
| # === VARIABLES DE VERSION === | |
| NVIDIA_DRIVER_VERSION="550" | |
| CUDA_VERSION="12-4" |
| #!/bin/bash | |
| # BM 20240830 | |
| # Testé avec Ubuntu 22.04, PHP 8.3 (Ondrej Sury) & Oracle Instant Client 21.15 | |
| # Vérification que le script est exécuté en tant qu'administrateur (root) | |
| if [[ $EUID -ne 0 ]]; then | |
| echo "Ce script doit être exécuté en tant qu'administrateur (root)." | |
| exit 1 | |
| fi |
| layout | date | title | category | tags |
|---|---|---|---|---|
post |
2024-08-22 04:40:00 -0700 |
Connexion à MS SQL Server en PHP sous Debian/Ubuntu |
dev |
mssql php ubuntu |
Remarque : la procédure suivante a été réalisée pour une version 7.2 de PHP. Il se peut que vous deviez adapter quelques points...
| deb http://fr.archive.ubuntu.com/ubuntu/ jammy main restricted | |
| deb http://security.ubuntu.com/ubuntu jammy-security main restricted | |
| deb http://fr.archive.ubuntu.com/ubuntu/ jammy-updates main restricted | |
| deb http://fr.archive.ubuntu.com/ubuntu/ jammy universe multiverse | |
| deb http://security.ubuntu.com/ubuntu jammy-security universe multiverse | |
| deb http://fr.archive.ubuntu.com/ubuntu/ jammy-updates universe multiverse | |
| deb http://fr.archive.ubuntu.com/ubuntu/ jammy-backports main restricted universe multiverse |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta http-equiv="content-type" content="text/html; charset=UTF-8"> | |
| <title>fabric Creating rect with a mouse</title> | |
| <meta http-equiv="content-type" content="text/html; charset=UTF-8"> | |
| <meta name="robots" content="noindex, nofollow"> | |
| <meta name="googlebot" content="noindex, nofollow"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1"> |
| #!/bin/bash | |
| # get list of VMs on the node | |
| VMIDs=$(/usr/sbin/qm list| awk '/[0-9]/ {print $1}') | |
| # ask them to shutdown | |
| for VM in $VMIDs | |
| do | |
| /usr/sbin/qm shutdown $VM | |
| done |
| #!/bin/bash | |
| xxd -ps -c 1 $1 | awk '{ print "0x" $0 }' ORS=',' | sed s/.$// && echo |
| #!/bin/bash | |
| githubproject="https://github.com/fusioninventory/fusioninventory-for-glpi/releases/latest/" | |
| url=$(curl -Ls -o /dev/null -w %{url_effective} $githubproject) | |
| version=${url##*/} | |
| tag=${version:4} | |
| wget https://github.com/fusioninventory/fusioninventory-for-glpi/releases/download/$version/fusioninventory-$tag.tar.bz2 | |
| glpi_install=$(find /var -type f -name glpicrypt.key | sed -E 's/\/config\/glpicrypt\.key//') | |
| tar xvf fusioninventory-$tag.tar.bz2 -C "$glpi_install/plugins/" | |
| chown -R www-data:www-data "$glpi_install/plugins/fusioninventory" | |
| rm fusioninventory-$tag.tar.bz2 |
| // ==UserScript== | |
| // @name front_matter_block_github_blog | |
| // @namespace brahimmachkouri | |
| // @version 0.1 | |
| // @description Paste the "Front Matter" block for Github blogs : go in the edit post and CTRL-V | |
| // @author Brahim Machkouri | |
| // @include https://github.com/*/new/main/_posts | |
| // @grant GM_setClipboard | |
| // @match none | |
| // ==/UserScript== |