Skip to content

Instantly share code, notes, and snippets.

View LakithKarunaratne's full-sized avatar

Lakith LakithKarunaratne

View GitHub Profile
@LakithKarunaratne
LakithKarunaratne / tmux_cheatsheet.md
Created June 28, 2024 06:38
Tmux Common Shortcuts

Sessions

Create Session tmux

Detach Current Session ctrl + b + d

Attach Session tmux attach

Panes

@LakithKarunaratne
LakithKarunaratne / pull_repos.sh
Created June 21, 2024 11:23
Auto Pull List of Repos defined in a text file
#!/bin/bash
# Define the host alias
host_alias="github.com" # host alias as defined in .ssh/config
branch_name="latest" # name of the working branch
group_name="any" # name of the user or corp or group
# Assuming the text file is named repos.txt and is located in the current directory
while IFS= read -r repo
do

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