Skip to content

Instantly share code, notes, and snippets.

View vicradon's full-sized avatar
🥑
creating technical content

Osinachi Chukwujama vicradon

🥑
creating technical content
View GitHub Profile
@vicradon
vicradon / microsoft-partners.txt
Created January 23, 2024 16:03
Microsoft Partners that could hire you for jobs and stuff
https://appsource.microsoft.com/en-us/marketplace/partner-dir
@vicradon
vicradon / Downloading-youtube-dl-and-spliting-a-video-using-ffmpeg.md
Last active January 23, 2024 04:37
Get YouTube DL on your computer and split a video using ffmpeg

Get YouTube-DL and Split video

Hi there programmer. So you need to download a YouTube video? Why use savefrom.net or Vidmate when you can use YouTube-DL, or DLP in this case. You simply need to go to the Github, and find the download link for your OS:

image

After downloading the binary, and moving it to path, (/usr/local/bin for mac or Linux, just add to path environment variable for windows), you can then run it like:

yt-dl  -o my-video.mp4
@vicradon
vicradon / run-two-processes-in-parallel.md
Last active January 19, 2024 18:15
Running two processes in parallel on Linux

Run Two Processes in Parallel on Linux (or UNIX)

You can use the wait command to run two processes in parallel. The idea is to assign the processes to process-ids then run the processes using those process ids simultaneously.

Say you wanted to play two audio files using ffplay (from ffmpeg), you can execute the ffplay the command normally, but attach the process id to a variable using $!. Running $! in the shell shows the process id of the last executed command. The & operator allows you to execute the preceeding command in the background and ensures the current thread continues executing. The snippet below shows the script for assigning the ffplay operations to process ids and running both processes using the wait command.

 ffplay left.mp3 & P1=$!  
 ffplay right.mp3 & P2=$! 
 
@vicradon
vicradon / custom-data.sh
Last active January 19, 2024 01:39
Custom data for Azure virtual machine creation
sudo apt update \
&& sudo apt install nginx -y \
&& sudo snap install --classic certbot \
&& curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash \
&& source ~/.bashrc \
&& nvm install 20
@vicradon
vicradon / Install_tmux
Created January 1, 2024 14:05 — forked from simme/Install_tmux
Install and configure tmux on Mac OS X
# First install tmux
brew install tmux
# For mouse support (for switching panes and windows)
# Only needed if you are using Terminal.app (iTerm has mouse support)
Install http://www.culater.net/software/SIMBL/SIMBL.php
Then install https://bitheap.org/mouseterm/
# More on mouse support http://floriancrouzat.net/2010/07/run-tmux-with-mouse-support-in-mac-os-x-terminal-app/
@vicradon
vicradon / AZ-104-Notes.md
Last active December 28, 2023 13:49
Detailed notes for passing the Azure Administrator (AZ-104) certification

These are a collection of notes on different concepts covered in AZ-104 to bring them to my understanding as I study for my exam.

@vicradon
vicradon / Preview git branch changes before merge.sh
Created November 20, 2023 04:12
Preview git branch changes before merging
git fetch
git log HEAD..origin/main # show the diffs
git log -p HEAD..origin/main # show each patch
git diff HEAD...origin/main # show a single diff
@vicradon
vicradon / adding-stuff-to-path.md
Last active November 4, 2023 21:36
Adding Stuff to Path

Adding Stuff to Path

Welcome to another episode of Linux notes. Today, I'll briefly talk about adding stuff to Path on POSIX[1] systems.

So the PATH is a very long colon delimited string that gets extended whenever you add a new directory to it. It looks something like this:

/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/bin:/usr/local/sbin
@vicradon
vicradon / rb-install.sh
Created November 4, 2023 10:09
Install ruby on Mac
brew update
brew install ruby-build
brew install rbenv
rbenv install 3.2.2
rbenv global 3.2.2
echo 'if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi' >> ~/.zsh_profile
source ~/.zsh_profile
theme download --password shpat_XXXXXXXXXXXXXXXXXXXXXX --store https://storeurl.myshopify.com --live