Skip to content

Instantly share code, notes, and snippets.

View dividy's full-sized avatar
🎯
Focusing

David Rensonnet dividy

🎯
Focusing
View GitHub Profile
@dividy
dividy / linux-packages
Created July 24, 2020 10:09 — forked from kozmonaut/linux-packages
Backup and restore installed packages inside Linux Debian
# Backup your packages list
# Get a packages list
dpkg --get-selections > ~/Package.list
# Copy list of repositories
sudo cp /etc/apt/sources.list ~/sources.list
# Export repo keys
sudo apt-key exportall > ~/Repo.keys
@dividy
dividy / Response.php
Created April 13, 2021 13:40 — forked from jeffochoa/Response.php
Laravel HTTP status code
<?php
// This can be found in the Symfony\Component\HttpFoundation\Response class
const HTTP_CONTINUE = 100;
const HTTP_SWITCHING_PROTOCOLS = 101;
const HTTP_PROCESSING = 102; // RFC2518
const HTTP_OK = 200;
const HTTP_CREATED = 201;
const HTTP_ACCEPTED = 202;