Skip to content

Instantly share code, notes, and snippets.

View jaypeche's full-sized avatar
:octocat:
Gentoo nightly build

jay jaypeche

:octocat:
Gentoo nightly build
View GitHub Profile
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <clamav.h>
#include <sys/fanotify.h>
Spectre and Meltdown mitigation detection tool v0.46
Checking for vulnerabilities on current system
Kernel is Linux 6.10.3-gentoo-x86_64 #1 SMP PREEMPT_DYNAMIC Wed Aug 7 13:29:55 CEST 2024 x86_64
CPU is 13th Gen Intel(R) Core(TM) i7-13650HX
Hardware check
* Hardware support (CPU microcode) for mitigation techniques
* Indirect Branch Restricted Speculation (IBRS)
* SPEC_CTRL MSR is available:  YES 
fanotify(7) Manuel d’informations diverses fanotify(7)
NOM
fanotify – Surveiller les événements des systèmes de fichiers
DESCRIPTION
L’interface de programmation fanotify permet la notification et l’interception des événements du système de fichiers. La recherche de virus et la gestion de stockage hié‐
rarchisé font partie des cas d’utilisation. Dans l’interface originelle seul un ensemble limité d’événements était pris en charge. En particulier, les événements de créa‐
tion, de suppression ou de déplacement n’étaient pas pris en charge. La prise en charge de ces évènements a été ajoutée dans Linux 5.1. Consultez inotify(7) pour plus de
précisions sur l’interface qui ne notifiait pas ces évènements avant Linux 5.1.

"Clamav-realtime" is a program designed to protect you from threats into your home directory.

As soon as a new file is written, it is sent to the virus scanning engine which put in quarantine in case it is detected as a threat.

This software uses "libnotify" for notifications and "libclamav" as antivirus engine.

It is developped as educational to familiarize myself with the "C language".

@jaypeche
jaypeche / win_hello_notify.ps1
Created October 4, 2024 20:25
windows notification
Add-Type -AssemblyName System.Windows.Forms
$notify = New-Object System.Windows.Forms.NotifyIcon
$notify.Icon = [System.Drawing.SystemIcons]::Information
$notify.BalloonTipTitle = "Hello World Windows notification"
$notify.BalloonTipText = "Generate with GPT4.o"
$notify.BalloonTipIcon = [System.Windows.Forms.ToolTipIcon]::Info
$notify.Visible = $true
$notify.ShowBalloonTip(15000)
@jaypeche
jaypeche / win_hello_notify.ps1
Created October 4, 2024 20:24
windows notification
Add-Type -AssemblyName System.Windows.Forms
$notify = New-Object System.Windows.Forms.NotifyIcon
$notify.Icon = [System.Drawing.SystemIcons]::Information
$notify.BalloonTipTitle = "Hello World Windows notification"
$notify.BalloonTipText = "Generate with GPT4.o"
$notify.BalloonTipIcon = [System.Windows.Forms.ToolTipIcon]::Info
$notify.Visible = $true
$notify.ShowBalloonTip(15000)

Mini_Howto Install chatGPT into Windows PowerShell 2024

Installation of Python3_12

PS mkdir 'C:\Program Files\Python3_12\'

PS cd 'C:\Program Files\Python3_12\'

● pulseaudio.service - Sound Service
Loaded: loaded (/usr/lib/systemd/user/pulseaudio.service; enabled; preset: enabled)
Active: active (running) since Wed 2024-07-31 13:08:49 CEST; 1h 35min ago
TriggeredBy: ● pulseaudio.socket
Main PID: 83690 (pulseaudio)
Tasks: 8 (limit: 18196)
Memory: 9.3M (peak: 12.0M swap: 708.0K swap peak: 708.0K)
CPU: 2min 12.284s
CGroup: /user.slice/user-1000.slice/[email protected]/session.slice/pulseaudio.service
├─83690 /usr/bin/pulseaudio --daemonize=no --log-target=journal
[ 1.214123] Loading firmware: regulatory.db
[ 1.214133] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[ 1.341080] Loading firmware: iwlwifi-so-a0-gf-a0-89.ucode
[ 1.341094] iwlwifi 0000:00:14.3: Direct firmware load for iwlwifi-so-a0-gf-a0-89.ucode failed with error -2
[ 1.341099] Loading firmware: iwlwifi-so-a0-gf-a0-88.ucode
[ 1.341107] iwlwifi 0000:00:14.3: Direct firmware load for iwlwifi-so-a0-gf-a0-88.ucode failed with error -2
[ 1.341109] Loading firmware: iwlwifi-so-a0-gf-a0-87.ucode
[ 1.341118] iwlwifi 0000:00:14.3: Direct firmware load for iwlwifi-so-a0-gf-a0-87.ucode failed with error -2
[ 1.341120] Loading firmware: iwlwifi-so-a0-gf-a0-86.ucode
[ 1.341128] iwlwifi 0000:00:14.3: Direct firmware load for iwlwifi-so-a0-gf-a0-86.ucode failed with error -2
[ 1.357244] snd_hda_intel 0000:00:1f.3: DSP detected with PCI class/subclass/prog-if info 0x040380
[ 1.360803] snd_hda_intel 0000:01:00.1: Disabling MSI
[ 1.360809] snd_hda_intel 0000:01:00.1: Handle vga_switcheroo audio client
[ 1.360866] snd_hda_intel 0000:00:1f.3: DSP detected with PCI class/subclass/prog-if info 0x040380
[ 1.403498] snd_hda_intel 0000:00:1f.3: DSP detected with PCI class/subclass/prog-if info 0x040380
[ 1.403765] snd_hda_intel 0000:00:1f.3: DSP detected with PCI class/subclass/prog-if info 0x040380
[ 1.403883] snd_hda_intel 0000:00:1f.3: DSP detected with PCI class/subclass/prog-if info 0x040380
[ 1.403993] snd_hda_intel 0000:00:1f.3: DSP detected with PCI class/subclass/prog-if info 0x040380
[ 1.404224] snd_hda_intel 0000:00:1f.3: DSP detected with PCI class/subclass/prog-if info 0x040380
[ 1.404378] snd_hda_intel 0000:00:1f.3: DSP detected with PCI class/subclass/prog-if info 0x040380