-
Users & Groups
- Add user to group
sudo usermod -a -G cdrom userName
sudo usermod -aG vboxsf $USER
- Add user to group
-
Change root password
sudo passwd root
Discover gists
A simple "1-click" javascript approach to downloading a scanned book from archive.org to read at your leisure on the device of your choosing w/out having to manually screenshot every pages of the book by hand. In short it's a glorified "Save Image As..." approach but consolidated down to "1 click". BTW there may be a much better option than this out there - I just built this as an autistic project to see if it would work.
By using this script you agree to delete all book files/images after your 1 hour or 14 days is up! I don't support using this script for any other use cases. After all, none of us have ever kept a library book past it's return date, right?
I believe the following is the best way to work with Nagle's algorithm / TCP_NODELAY
/ TCP_CORK
.
It is described in this RedHat manual and the verdict is:
- Set
TCP_NODELAY = 1
, always. - If you can batch data for sending by creating a buffer manually, or using
writev()
, prefer that. - If you cannot (e.g. "when using different libraries that provides abstractions for layers" from the above manual):
- Set
TCP_CORK = 1
, then write the data, then setTCP_CORK = 0
.
- Set
- This builds a packet in kernel space and then flushes it out.
Visual Studio 2022 | |
Enterprise : | |
VHF9H-NXBBB-638P6-6JHCY-88JWH | |
Professional: | |
TD244-P4NB7-YQ6XK-Y8MMM-YWV2J |
i386 : iPhone Simulator | |
x86_64 : iPhone Simulator | |
arm64 : iPhone Simulator | |
iPhone1,1 : iPhone | |
iPhone1,2 : iPhone 3G | |
iPhone2,1 : iPhone 3GS | |
iPhone3,1 : iPhone 4 | |
iPhone3,2 : iPhone 4 GSM Rev A | |
iPhone3,3 : iPhone 4 CDMA | |
iPhone4,1 : iPhone 4S |
#!/bin/bash | |
iatest=$(expr index "$-" i) | |
####################################################### | |
# SOURCED ALIAS'S AND SCRIPTS BY zachbrowne.me | |
####################################################### | |
# Source global definitions | |
if [ -f /etc/bashrc ]; then | |
. /etc/bashrc |
I have two Github accounts: oanhnn (personal) and superman (for work). I want to use both accounts on same computer (without typing password everytime, when doing git push or pull).
Use ssh keys and define host aliases in ssh config file (each alias for an account).
# KEYCLOAK BASE URL | |
KEYCLOAK_BASE_URL= | |
# KEYCLOAK CLIENT SECRET | |
KEYCLOAK_CLIENT_SECRET= | |
# KEYCLOAK CLIENT ID | |
KEYCLOAK_CLIENT_ID= | |
# BASE URL FOR NEXT AUTH |
## Will successfully install amdgpu drivers and rocm, | |
## but pointless as there is no gpu device attached to WSL2 (only CUDA and DirectML is supported, not /dev/kfd or amd gpus) | |
## ROCM/HIP | |
sudo apt update | |
sudo apt dist-upgrade | |
sudo apt install libnuma-dev | |
wget -q -O - http://repo.radeon.com/rocm/rocm.gpg.key | sudo apt-key add - | |
echo 'deb [arch=amd64] http://repo.radeon.com/rocm/apt/debian/ xenial main' | sudo tee /etc/apt/sources.list.d/rocm.list |
/** @format */ | |
import { Map, TileLayer, Marker, Popup } from "react-leaflet"; | |
import React, { useEffect, useState, useRef } from "react"; | |
import { geosearch } from "esri-leaflet-geocoder"; | |
import "leaflet/dist/leaflet.css"; | |
import "esri-leaflet-geocoder/dist/esri-leaflet-geocoder.css"; | |
import L from "leaflet"; | |
function MapView(props) { |