Skip to content

Instantly share code, notes, and snippets.

View bishalbar77's full-sized avatar
😴
Sleeping at home

Bishal bishalbar77

😴
Sleeping at home
View GitHub Profile
@BeKnowDo
BeKnowDo / ubuntu-setup.md
Last active March 5, 2025 21:01
Setting up Ubuntu for my development environment and other utilities

Ubuntu 24.10

Installing gDebi

sudo apt install gdebi-core

Sharing Drives via Samba

  • Install the taskel and samba server packages
    • sudo tasksel install samba-server
    • sudo cp /etc/samba/smb.conf /etc/samba/smb.conf_backup
    • sudo bash -c 'grep -v -E "^#|^;" /etc/samba/smb.conf_backup | grep . > /etc/samba/smb.conf'
  • sudo nano /etc/samba/smb.conf
@jeffochoa
jeffochoa / Response.php
Last active February 4, 2026 06:20
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;