Skip to content

Instantly share code, notes, and snippets.

View FaridLU's full-sized avatar
🏠
Working from home

Farid Chowdhury FaridLU

🏠
Working from home
View GitHub Profile
@insertish
insertish / .bashrc
Last active April 25, 2024 11:05
Ubuntu 20.04 + ROS Noetic + TIAGo
# ROS Noetic + TIAGo workspace
source /opt/ros/noetic/setup.bash
source /home/ubuntu/tiago_public_ws/devel/setup.bash
# Try to determine appropriate ROS_IP based on network interfaces
export ROS_IP=$(ip addr | sed -En 's/127.0.0.1//;s/.*inet (addr:)?(([0-9]*\.){3}[0-9]*).*/\2/p' | head -n 1)
echo ROS_IP set to $ROS_IP
# Switch to and configure LASR workspace
alias lasr="cd /media/ubuntu/c26792b8-9486-4e51-8b3d-b8577a6bbf28/lasr_ws && source devel/setup.bash"
@riipandi
riipandi / wireguard-ubuntu.sh
Last active June 3, 2024 00:41
Wireguard VPN Setup
#!/bin/bash
if [[ $EUID -ne 0 ]]; then echo 'This script must be run as root' ; exit 1 ; fi
[ -z $ROOTDIR ] && PWD=$(dirname $(dirname $(readlink -f $0))) || PWD=$ROOTDIR
source "$PWD/setup.sh"
# --------------------------------------------------------------------------------------------------
# Install and configure WireGuard server
# --------------------------------------------------------------------------------------------------
LC_ALL=C.UTF-8 add-apt-repository -y ppa:wireguard/wireguard && apt -y full-upgrade
apt -y install linux-headers-$(uname -r) wireguard iptables resolvconf qrencode gpw