sources:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://github.com/tonietto/Elementary-OS-First-Steps | |
https://elementaryos.stackexchange.com/questions/17452/how-to-display-system-tray-icons-in-elementary-os-juno | |
sudo mv /etc/xdg/autostart/nm-applet.desktop /etc/xdg/autostart/nm-applet.desktop-old | |
sudo apt-get install -y \ | |
rename \ | |
tldr \ | |
git \ | |
neofetch \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Exit if no arguments | |
[ $# -eq 0 ] && { echo "Usage: $0 param name"; exit 1; } | |
# if no command line arg given | |
# set var to Unknown | |
if [ -z $1 ] | |
then |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# use case statement to make decision for rental | |
case $rental in | |
"car") echo "For $rental rental is Rs.20 per k/m.";; | |
"van") echo "For $rental rental is Rs.10 per k/m.";; | |
"jeep") echo "For $rental rental is Rs.5 per k/m.";; | |
"bicycle") echo "For $rental rental 20 paisa per k/m.";; | |
"enfield") echo "For $rental rental Rs.3 per k/m.";; | |
"thunderbird") echo "For $rental rental Rs.5 per k/m.";; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
read -p "Enter your name : " name | |
echo "Hi, $name. Let us be friends!" | |
# read three numbers and assigned them to 3 vars | |
read -p "Enter number one : " n1 | |
read -p "Enter number two : " n2 | |
read -p "Enter number three : " n3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias c='clear' | |
alias d='date' | |
alias h='history' | |
alias update='sudo apt update && apt upgrade' | |
alias mv='mv -i' | |
alias rm='rm -i' | |
alias l='ls -1A --color=tty' | |
alias ll='ls -lhAopS --color=tty' | |
alias vi='vim' | |
alias nn='nano' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#https://go.dev/doc/install | |
curl -OL https://go.dev/dl/go1.18.2.linux-amd64.tar.gz | |
rm -rf /usr/local/go && tar -C /usr/local -xzf go1.18.2.linux-amd64.tar.gz | |
export PATH="${PATH}:/usr/local/go/bin" | |
export PATH="$PATH:$(go env GOPATH)/bin" | |
export GOPATH="$(go env GOPATH)" | |
go version |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
foreach ($i in Get-ChildItem .\*.mp3) {echo "file '$i'" >> mylist.txt} | |
ffmpeg -f concat -safe 0 -i mylist.txt -c copy disk.mp3 | |
ffmpeg -loop 1 -i cover.png -i disk.mp3 -framerate 24 -c:v libx264 -pix_fmt yuv420p -c:a copy -shortest out.mp4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt update && sudo apt upgrade | |
# codecs, fonts, etc. | |
sudo apt install ubuntu-restricted-extras -y | |
# to install .deb files | |
sudo apt install gdebi -y | |
# Simplified and community-driven man pages | |
sudo apt install tldr && tldr --update |