Skip to content

Instantly share code, notes, and snippets.

View W1773ND's full-sized avatar
🎯
Focusing

Wilfried FUTCHEA W1773ND

🎯
Focusing
View GitHub Profile

Mounting VirtualBox shared folders on Ubuntu Server 18.04 LTS (Bionic Beaver)

This guide will walk you through the steps on how to setup a VirtualBox shared folder inside your Ubuntu Server guest.

Prerequisites

This guide assumes that you are using the following setup:

You could still make this guide work with other setups (possibly with some modifications to the commands and whatnot).

@W1773ND
W1773ND / django_field_update_checker.txt
Created May 16, 2022 16:30 — forked from alican/django_field_update_checker.txt
check if django model fields changed after save
class DjangoModel(models.Model):
@classmethod
def from_db(cls, db, field_names, values):
instance = super().from_db(db, field_names, values)
instance._state.adding = False
instance._state.db = db
instance._old_values = dict(zip(field_names, values))
return instance
@W1773ND
W1773ND / jetbrains-license-3.bat
Created April 26, 2022 05:03 — forked from AlexSG8/jetbrains-license-3.bat
JetBrains activation key trial reset PyCharm IntelliJ IDEA PhpStorm 2021 ALWAYS WORKS on Windows and Linux. PLEASE READ THE "thanks" FILE TOO!
cd %APPDATA%\JetBrains
del "PermanentDeviceId"
del "PermanentUserId"
rmdir "consentOptions" /s /q
cd %APPDATA%\JetBrains\PHPStorm2021.1*
rmdir "eval" /s /q
del "options\other.xml"
reg delete "HKEY_CURRENT_USER\Software\JavaSoft\Prefs\jetbrains"
@W1773ND
W1773ND / patch_graphene_django_choices_converter.py
Created June 3, 2021 19:12 — forked from denis-ryzhkov/patch_graphene_django_choices_converter.py
Prevent `graphene_django` from converting Django `choices` to `graphene.Enum` constants: ints like 7 are not converted to "A_7", and so on
import graphene_django
def patch_graphene_django_choices_converter():
"""
Prevent `graphene_django` from converting Django `choices` to `graphene.Enum` constants
Pros:
- Ints like 7 are not converted to "A_7"
- Strings like "Some String" are not converted to "SOME_STRING"
@W1773ND
W1773ND / bootstrap-3-media-queries.css
Created June 25, 2019 11:52 — forked from marioblas/bootstrap-3-media-queries.css
CSS - Bootstrap 3 Media Queries
/*==================================================
= Bootstrap 3 Media Queries =
==================================================*/
/*========== Mobile First Method ==========*/
/* Custom, iPhone Retina */
@media only screen and (min-width : 320px) {
@W1773ND
W1773ND / git-command.md
Created June 12, 2019 15:49 — forked from aquelito/git-command.md
GIT - Ligne de commande principale
title category
Git config
Git

Rappel

Ne pas oublier : l'aide en ligne de commande.

@W1773ND
W1773ND / meta-tags.md
Created December 18, 2018 17:23 — forked from kevinSuttle/meta-tags.md
List of Usable HTML Meta and Link Tags

Copied from http://code.lancepollard.com/complete-list-of-html-meta-tags/

Basic HTML Meta Tags

<meta charset='UTF-8'>
<meta name='keywords' content='your, tags'>
<meta name='description' content='150 words'>
<meta name='subject' content='your website's subject'>
<meta name='copyright' content='company name'>