Skip to content

Instantly share code, notes, and snippets.

View Volyz's full-sized avatar

Gatra Zakaria Volyz

  • SciGeeks
  • France/Morocco
View GitHub Profile
@scyto
scyto / proxmox.md
Last active March 3, 2026 20:28
my proxmox cluster

ProxMox Cluster - Soup-to-Nutz

aka what i did to get from nothing to done.

note: these are designed to be primarily a re-install guide for myself (writing things down helps me memorize the knowledge), as such don't take any of this on blind faith - some areas are well tested and the docs are very robust, some items, less so). YMMV

Purpose of Proxmox cluster project

Required Outomces of cluster project

@perry-mitchell
perry-mitchell / dell-r720-fan-control.sh
Last active February 22, 2026 08:18
Dell R720 quiet fan control
#!/bin/bash
IDRAC_IP="192.168.0.101"
IDRAC_USER="root"
IDRAC_PASS=$1
if [ -z $IDRAC_PASS ]; then
IDRAC_PASS=$IDRAC_PASSWORD
fi
FANS_1="0x0A" # 10%
@centic9
centic9 / README.md
Last active March 7, 2026 09:34
notepad++ syntax highlighting for Dockerfiles, store at something like C:\Users\[user]\AppData\Roaming\Notepad++\userDefineLangs\userDefineLang_Dockerfile.xml

Notepad++ syntax highlighting for Dockerfiles

Store userDefineLang_Dockerfile.xml at %AppData%\Roaming\Notepad++\userDefineLangs\userDefineLang_Dockerfile.xml and select Language > Dockerfile in Notepad++.

Automatically apply style

Since Dockerfile has no extension, the style is not automatically applied.

@holms
holms / mbr2gpt.md
Last active July 9, 2024 18:45
Create GPT partition table and Create logical volumes

Create GPT partition table

Sorry but you HAVE to go with rescue disk.

parted /dev/sdb
(parted) mklabel gpt
(parted) mkpart primary 0GB 100%
(parted) print
@samsamm777
samsamm777 / gist:7230159
Last active April 26, 2024 13:24
PHP set private property value using reflection. This allows you to set a private property value from outside the object, great for PHPUnit testing.
<?php
$a = new A();
$reflection = new \ReflectionClass($a);
$property = $reflection->getProperty('privateProperty');
$property->setAccessible(true);
$property->setValue($a, 'new-value');
echo $a->getPrivateProperty();
//outputs:
@aras-p
aras-p / preprocessor_fun.h
Last active March 5, 2026 23:36
Things to commit just before leaving your job
// Just before switching jobs:
// Add one of these.
// Preferably into the same commit where you do a large merge.
//
// This started as a tweet with a joke of "C++ pro-tip: #define private public",
// and then it quickly escalated into more and more evil suggestions.
// I've tried to capture interesting suggestions here.
//
// Contributors: @r2d2rigo, @joeldevahl, @msinilo, @_Humus_,
// @YuriyODonnell, @rygorous, @cmuratori, @mike_acton, @grumpygiant,