Skip to content

Instantly share code, notes, and snippets.

@ofaurax
ofaurax / test.txt
Created February 23, 2016 12:24
sandbox
Et c'est parti
pour un test
de gist !
Et une ligne de plus
@ofaurax
ofaurax / modinverse.py
Created March 30, 2016 15:04
Modular Inverse for RSA in python
#!/usr/bin/env python3
p = 61
q = 53
n = p*q
phi = (p-1)*(q-1)
# Took from SO
def egcd(a, b):

Keybase proof

I hereby claim:

  • I am ofaurax on github.
  • I am ofaurax (https://keybase.io/ofaurax) on keybase.
  • I have a public key ASDDBxYUdFyVGkyV7I8461Ye-abyIV2mQJT4UbmSw2eV-go

To claim this, I am signing this object:

@ofaurax
ofaurax / keybase_on_mageia.md
Last active December 17, 2017 08:59
Install keybase on Mageia (5)

Failed with urpmi

$ urpmi keybase_amd64.rpm --force
Certains paquets ont été installés mais d'autres ont échoué.
Le paquetage demandé ne peut pas être installé :
keybase-1.0.37.20171208170249.025062c3a-1.x86_64 (car libXScrnSaver est non satisfait)
Désirez-vous tout de même continuer ?

OK with uninstall + rpm --nodeps

@ofaurax
ofaurax / synology_nas_tips.md
Last active June 16, 2021 09:56
Tips on Synology NAS

Synology NAS DS1817 loses connection after a while

We have a synology NAS, and we use a SMB share to store data downloaded from another source.

However, after a while, the network become slow, then stop to work.

We tested:

  • access to the SMB share
  • ping the NAS