Skip to content

Instantly share code, notes, and snippets.

View LakithKarunaratne's full-sized avatar

Lakith LakithKarunaratne

View GitHub Profile

How to show/hide the macOS Dock instantly

Open Terminal.app from Applications > Utilities Copy-paste one of the following commands & confirm it

On Intel-based Macs:

defaults write com.apple.dock autohide-delay -float 0 && killall Dock

On Apple Silicon-based Macs:

@LakithKarunaratne
LakithKarunaratne / Barrier Setup Linux Host Windows Guest.md
Last active April 18, 2024 10:27
Barrier Setup Linux Host Windows Guest with SSL

Setup Barrier with SSL on Linux / Mac <-> Windows machines

You will need to generate cert on Both Machines individually

On Linux

go to /.local/share/barrier/SSL/

Create a folder mkdir -p Fingerprints

Setup Resilio Sync

Extract resilio-sync_xxx.tar for your architecture

Copy rslsync to /usr/bin/ or create a symlink

Now you can manually run rslsync in the terminal

continue reading for automation

Speedup SSH access speeds

Edit the below config file

/etc/ssh/sshd_config

Disable DNS

UseDNS no

@LakithKarunaratne
LakithKarunaratne / Frontend Learning.txt
Created November 27, 2021 19:30
Steps to take for newbies to learn Software Development
####### Basics to Cover #######
HTML - BASICS
HTML - BASICS - Best practices
HTML - BASICS - Accessibility
HTML - BASICS - SEO Basics
HTML - BASICS - Forms and Validations
CSS - BASICS
CSS - BASICS - Layouts - Floats
CSS - BASICS - Layouts - Positioning
CSS - BASICS - Layouts - Display
@LakithKarunaratne
LakithKarunaratne / TigerVNC-setup.md
Created November 3, 2021 06:33
Setup TigerVNC for ubuntu

Install

sudo apt install tigervnc-standalone-server

first run and set password

vncserver

Enter n for view only mode

This is a test gist

Uploaded using CLI

Contains nothing of value

congrats on locating this, this means i'm fully cli

@LakithKarunaratne
LakithKarunaratne / fstab-mount.md
Last active November 1, 2021 04:10
Instructions to auto mount file system on Ubuntu

Mount Drives automatically on Ubuntu

Check the list of disks attached and locate the disk

sudo fdisk -l

Get the UUID of the Drive

sudo blkid

Keybase proof

I hereby claim:

  • I am lakithkarunaratne on github.
  • I am lakith (https://keybase.io/lakith) on keybase.
  • I have a public key ASBFVkXoCWUupgcZCuvEJNxL8I9-QBmBaVGVbB2MxKiGZgo

To claim this, I am signing this object: