⚠️ Warning: Flashing custom firmware may void your warranty or brick your device if not done correctly. Proceed with caution.
- TP-Link TL-WR841N v14 router
- Ethernet cable (to connect your PC to the router's LAN port)
#!/bin/bash | |
# Exit immediately if a command exits with a non-zero status | |
set -e | |
# -------------------------------------------------- | |
# SSH Key Setup | |
echo "Setting up SSH keys..." | |
if [ ! -f "$HOME/.ssh/id_rsa" ]; then | |
ssh-keygen -t rsa -b 4096 -C "$USER@$(hostname)" -N "" -f "$HOME/.ssh/id_rsa" |
# ----------------USER-------------- | |
# Showing git branch | |
source /usr/lib/git-core/git-sh-prompt | |
export PS1="${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u:\[\033[01;34m\]\w\[\033[00m\]\$(__git_ps1)\[\033[00m\] $" | |
# ROS2 | |
source /opt/ros/galactic/setup.bash | |
source $HOME/ubica_ws/install/setup.bash |
Dynamic object : Affected by gravity, collisions and other constraints.
Static object : Not affected by forces.
Respondable object : Produces a collision reaction with other respondable objects.
Respondable mask : Used to filter respondability to only some objects.
Batch rename files | |
ls | cat -n | while read n f; do mv "$f" `printf "%04d.jpg" $n`; done | |
Finds all the executables in the folder (source)[https://superuser.com/questions/492501/how-do-i-list-all-of-the-executables-in-a-linux-directory-sub-dirs-path] | |
find . -type f –executable | |
# References | |
# 1. https://github.com/mdbloice/Augmentor | |
import Augmentor | |
p = Augmentor.Pipeline("/home/jayasimha/NJ/Datasets/Nuts/nonsense") | |
p.skew_left_right(probability=0.5) | |
p.skew_top_bottom(probability=0.5) | |
p.random_brightness(probability=0.5,min_factor=0.9,max_factor=1.0) |
__author__ = "Anirudh NJ" | |
__email__ = "[email protected]" | |
__license__ = "GNU" | |
import cv2 | |
import sift | |
import os | |
from glob import glob | |
import pickle | |
import numpy as np |
### OpenAI GYM ### | |
# 1. https://gym.openai.com/docs/ | |
# 2. https://gym.openai.com/envs/#board_game | |
import gym | |
# Create an env for RL | |
# print(envs.registry.all()) | |
env = gym.make('CartPole-v0') | |
observation = env.reset() |
#----- XOR Patterns -------- | |
# https://www.reddit.com/r/math/comments/bpfq1w/weird_prime_pattern/ | |
# https://medium.com/biffures/part-2-the-beauty-of-bitwise-and-or-cdf1d8d87891 | |
import numpy as np | |
import cv2 as cv2 | |
# Width and height of the image | |
width = 1000 | |
height = 1000 |