Skip to content

Instantly share code, notes, and snippets.

View sehnryr's full-sized avatar
🐢
may be slow to respond

Youn Mélois sehnryr

🐢
may be slow to respond
View GitHub Profile
@sehnryr
sehnryr / GrantFullAccess.ps1
Created March 13, 2021 22:11
PowerShell script that changes the permissions of files of a directory, granting `FullAccess` to the `BUILTIN\Administrators`.
if ($Args)
{
$dir = $Args[0] -Join " "
$input = Read-Host -Prompt "Are you sure you want to execute the fixing on ``$($dir)`` ? [y:N]"
if ($input -like "y")
{
$files = Get-Childitem $Args[0] -recurse | where {! $_.PSIsContainer}
foreach ($file in $files)
{
#!/usr/bin/sh
apt-get install -y libglib2.0-0 curl gnupg > /dev/null
cat <<EOF | gpg --import
-----BEGIN PGP PUBLIC KEY BLOCK-----
mQINBGCXz3sBEAC0MuPb6suILUH2uzCFrd6McTPNr+QM8fCK0KQ81ezrRiM/Kzbw
mCK/Dp8oXs85+3hX5bWfSWgnat4Lflsju7WU7c/VnmR4e263/5/dAt00SL0I14Se
skVCOIx3OVaEpjWBZYLTBPf6oE7MY7Y0sQROVeAh+MYJM9E0YE6pDtxNYFWmbVEq
9NjFn4YdgGSlDrHmUv2BiWDfNcuRqAkHCmgWHt4BGI6wfX6UvX2rMkybWOl9OsyA
sudo dnf install -y libcurl-devel json-devel zlib-devel sqlite-devel gnutls-devel gtkmm30-devel openssl-devel
@sehnryr
sehnryr / git-beginner-cheat-sheet.md
Last active October 26, 2023 19:09
Comment utiliser git en tant que débutant
A-MN-Z
Letter Glyph
A glyph-A
B glyph-B
C glyph-C
D glyph-D
@sehnryr
sehnryr / math.md
Last active September 15, 2022 08:57

https://www.desmos.com/calculator/bunaio1m4p https://math.stackexchange.com/a/773960

$$ f_{n}\left(x\right)=\sum_{k=1}^{\frac{n}{2}-1}\left(\frac{2}{n}\cos\left(\frac{2k\pi}{n}x\right)\right)+\frac{1}{n}+\frac{1}{n}\cos^{2}\left(\frac{\pi n}{2}\right)\cos\left(\pi x\right) $$

$$ f_{n}\left(x\right)=\frac{1}{n}\left(\sum_{k=0}^{n-1}\left(\left(\cos\left(\pi k\right)+1\right)\cos\left(\frac{k\pi}{n}x\right)\right)+\cos^{2}\left(\frac{\pi n}{2}\right)\cos\left(\pi x\right)-1\right) $$

$$ f_{n}\left(x\right)=\frac{1}{2n}\left(\sum_{k=0}^{n-1}\cos\left(k\left(\pi+\frac{\pi}{n}x\right)\right)+\sum_{k=0}^{n-1}\cos\left(k\left(\pi-\frac{\pi}{n}x\right)\right)+2\sum_{k=0}^{n-1}\cos\left(\frac{k\pi}{n}x\right)\right)+\frac{1}{n}\cos^{2}\left(\frac{\pi n}{2}\right)\cos\left(\pi x\right)-\frac{1}{n} $$

$$ g_{n}\left(x\right)=\frac{1}{2n}\left(\frac{\sin\left(\frac{n}{2}\left(\pi+\frac{\pi}{n}x\right)\right)}{\sin\left(\frac{1}{2}\left(\pi+\frac{\pi}{n}x\right)\right)}\cos\left(\frac{\left(n-1\right)}{2}\left(\pi+\fra

@sehnryr
sehnryr / install-stm32cubeide-f37.sh
Created December 6, 2022 18:37
Install STM32 CubeIDE on Fedora 37
#!/bin/bash
# This script is used to install the STM32CubeIDE on Fedora 37 which does not have
# ncurse 5 libraries. The script installs the libraries and then runs the installer.
#
# Before running this script, download the rpm_bundle installer from the ST website
# and either extract it to the current directory or go to the directory where it the
# installer is located.
#
# This script needs to in the same directory as the rpm_bundle installer.
@sehnryr
sehnryr / eclipse-cpp-universal.sh
Last active November 27, 2023 23:03
Install Eclipse C/C++ IDE on Linux using distrobox
#!/bin/bash
# Install Eclipse C++
mkdir -p $HOME/Applications/eclipse-cpp
cd $HOME/Applications/eclipse-cpp
git clone --depth 1 https://aur.archlinux.org/eclipse-cpp.git .
distrobox create --image archlinux --name eclipse-cpp --yes
distrobox enter eclipse-cpp -- "sudo pacman -Syu --needed --noconfirm git base-devel"
distrobox enter eclipse-cpp -- "makepkg -si --noconfirm"
@sehnryr
sehnryr / README.md
Last active January 28, 2024 16:22
Install liboo2corelinux64 static and shared libraries in /usr/local/lib64

This script will install liboo2corelinux64 static and shared libraries in /usr/local/lib64. It will give you those files:

  • liboo2corelinux64.a (static)
  • liboo2corelinux64.so (soft link to shared)
  • liboo2corelinux64.so.9 (shared)

Dependencies

  • get_oodle_lib tool to download oodle libraries (source): pipx install git+https://github.com/sehnryr/get-oodle-lib
  • Commit.gitdeps.xml file from Unreal Engine source code (found here) which access can be granted by following the instructions at https://github.com/EpicGames/Signup.