Skip to content

Instantly share code, notes, and snippets.

View akashshingha850's full-sized avatar

Akash Shingha akashshingha850

  • Oulu, Finland
View GitHub Profile
‎‎​
@akashshingha850
akashshingha850 / cmd.md
Last active August 4, 2024 15:51
MJPEG Stream

sudo apt update sudo apt upgrade -y sudo apt install -y build-essential libjpeg62-turbo-dev imagemagick libv4l-dev cmake git git clone https://github.com/jacksonliam/mjpg-streamer.git cd mjpg-streamer/mjpg-streamer-experimental make

run stream

./mjpg_streamer -i "./input_uvc.so" -o "./output_http.so -w ./www"

Add Current User as Docker Administrator

To run Docker commands without needing sudo, you can add the current user to the Docker group. This is often necessary on Linux systems to facilitate easier Docker command execution.

Step 1: Add User to the Docker Group

Execute the following command in your terminal to add the current user to the Docker group:

sudo usermod -aG docker $USER
@akashshingha850
akashshingha850 / gist:b95ea392f57fb6e60f1f4fd147791c28
Created February 24, 2024 15:14
Move installed software / Game to another drive in Windows 10/11
robocopy "source" "destination" /sec /move /e
mklink "SOURCE" "DESTINATION" /j
@akashshingha850
akashshingha850 / Text File (Creation & Editing) + Python + Raspberry Pi.md
Last active February 24, 2024 15:15
Text File (Read/Write) in Raspberry Pi

'r'-This method is for reading text files, but not editing them.

'w'-This method is for writing in text files, but when you enter the writing method, it will delete any file with the same name as your edited file.

'a'-This method is for appending text files. This will add things to the bottom of the text file and nowhere else.

'r+'-This method can both read and write in programs, but sometimes does not work, so it is best to stick to the other three methods.


# For more options and information see
# http://rpf.io/configtxt
# Some settings may impact device functionality. See link above for details
# uncomment if you get no picture on HDMI for a default "safe" mode
#hdmi_safe=1
# uncomment this if your display has a black border of unused pixels visible
# and your display can output without overscan
#disable_overscan=1
@akashshingha850
akashshingha850 / bash script syntex.md
Last active February 24, 2024 15:16
syntex of a #bash script to run/execute a python file from virtual environment in raspberry pi.
  • First create a bash script(ie my_script.sh) to your desired directory in explorer or perform the following command in terminal.
cd folder_dir
sudo geany my_script.sh  

you can also try sudo nano my_script.sh if you prefer nano instead of geany'


@akashshingha850
akashshingha850 / article.md
Created January 3, 2020 20:13 — forked from MIvanchev/article.md
Ever wondered what it takes to run Windows software on ARM? Then this article might be for you!