Skip to content

Instantly share code, notes, and snippets.

View Volyz's full-sized avatar

Gatra Zakaria Volyz

  • SciGeeks
  • Lyon
View GitHub Profile
@Volyz
Volyz / mount_x.service
Created November 9, 2023 21:09 — forked from vladbabii/mount_x.service
Systemd run script after mount
# original: https://askubuntu.com/questions/25071/how-to-run-a-script-when-a-specific-flash-drive-is-mounted
# you can find your device unit with: sudo systemctl list-units -t mount
# put this into /etc/systemd/system/your.service
[Unit]
Description=SharedMountTrigger
Requires=mnt-shared.mount
After=mnt-shared.mount
[Service]

Keybase proof

I hereby claim:

  • I am volyz on github.
  • I am volyz (https://keybase.io/volyz) on keybase.
  • I have a public key ASCjOAl42n9uUl2iuieRDOXdSEKaIj9HZqVfO17cvDwM6wo

To claim this, I am signing this object:

@Volyz
Volyz / generate.c
Created March 10, 2019 14:07 — forked from munificent/generate.c
A random dungeon generator that fits on a business card
#include <time.h> // Robert Nystrom
#include <stdio.h> // @munificentbob
#include <stdlib.h> // for Ginny
#define r return // 2008-2019
#define l(a, b, c, d) for (i y=a;y\
<b; y++) for (int x = c; x < d; x++)
typedef int i;const i H=40;const i W
=80;i m[40][80];i g(i x){r rand()%x;
}void cave(i s){i w=g(10)+5;i h=g(6)
+3;i t=g(W-w-2)+1;i u=g(H-h-2)+1;l(u
@Volyz
Volyz / freeotp_backup.md
Created March 8, 2019 09:52 — forked from kontez/freeotp_backup.md
A guide to back up and recover 2FA tokens from FreeOTP (Android)

Backing up and recovering 2FA tokens from FreeOTP

Backing up FreeOTP

Using adb, create a backup of the app using the following command:

adb backup -f freeotp-backup.ab -apk org.fedorahosted.freeotp
@Volyz
Volyz / preprocessor_fun.h
Created March 16, 2017 19:43 — forked from aras-p/preprocessor_fun.h
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,