Skip to content

Instantly share code, notes, and snippets.

View kkyucon's full-sized avatar

Kenneth Sartre kkyucon

  • Montreal, Canada
View GitHub Profile
@kkyucon
kkyucon / ubuntu-wireless-usb.md
Last active September 15, 2023 15:24
Ubuntu Server Wireless USB

Ubuntu Server 18.04 and 20.04 Wireless USB Device Setup

Install the tools:

$ sudo apt install wireless-tools && sudo apt install wpasupplicant

Install nessasary packages:

$ sudo apt install git dkms build-essential
@kkyucon
kkyucon / arithmetic.md
Last active August 28, 2020 03:30
PHP Percentage and Rounding

PHP Percentage and Rounding

Rounding a tax result, we have a tax of 9.975%:
$tax=.09975;

And we have an amount of 100:
$amount=100;

Let's calculate the value of this percentage towards the value of the amount, so:
$tx=$amount*$tax;

@kkyucon
kkyucon / Ubuntu-Desktop-USBwireless.md
Last active May 25, 2020 20:15
Setup Wireless USB On Ubuntu Desktop 18.04-20.04 (dlink dwa-182 or linksys WUSB6300)

Setup Wireless USB On Ubuntu Desktop 18.04 and 20.04

Make sure USB wireless device not inserted

  1. Update the system:
    $ sudo apt update

  2. Install required packages:
    $ sudo apt install git && build-essential

  3. Download the driver:
    $ sudo git clone https://github.com/gnab/rtl8812au

@kkyucon
kkyucon / 18.04-add-mount-partition.md
Last active May 24, 2020 13:26
Ubuntu Server Add Hard Drive

Partition, Format and Mount Hard Drive in Ubuntu

For the purpose of this tutorial you must have "sudo" privileges.

We are going to add a second drive to our system, partition it according to our needs, format and finally mount to a created directory.

Partition the drive

Assuming the drive is physically attached to the system and detected by the bios, let's see how Ubuntu has assigned the disk by typing the following command:
sudo lshw -C disk

@kkyucon
kkyucon / 18.04_usb_rtl8812au.md
Last active February 20, 2022 14:01
Ubuntu Server 18.04 Wireless USB Adaptor Setup rtl8812au

Ubuntu Server 18.04 and 20.04 Wireless USB Device Setup

Install the tools:

$ sudo apt install wireless-tools && sudo apt install wpasupplicant

Install nessasary packages:

$ sudo apt install git dkms build-essential