Skip to content

Instantly share code, notes, and snippets.

@yuraloginoff
yuraloginoff / Elementary-install.sh
Last active June 8, 2020 13:52
#linux: After installing of Elementary OS
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 \
@yuraloginoff
yuraloginoff / Switch between shells
Last active June 12, 2020 13:08
#linux: Switch between shells
$ echo 'alias 2zsh="chsh -s $(which zsh)"' >> ~/.bashrc
$ echo 'alias 2bash="chsh -s $(which bash)"' >> ~/.zshrc
@yuraloginoff
yuraloginoff / .bash_aliases
Last active April 30, 2022 14:32
.bash_aliases
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'
@yuraloginoff
yuraloginoff / google_dorks_joomla.txt
Last active May 3, 2022 10:34
#pentest: Google dorks for Joomla
intitle:"Joomla – Web Installer"
intitle:"Index of /" "joomla_update.php"
"Consola de Joomla! Debug" inurl:index.php
"Joomla! Administration Login" inurl:"/index.php"
"powered by joomla 3.2" OR "powered by joomla 3.3" OR "powered by joomla 3.4"
inurl:~~joomla3.txt filetype:txt
intext:"~~Joomla1.txt" title:"Index of /"
inurl:"index.php?option=com_bookjoomlas"
index2.php?option=com_joomlaboard
com_ijoomla_rss
@yuraloginoff
yuraloginoff / go.sh
Created May 23, 2022 18:39
Go install Ubunto
#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
@yuraloginoff
yuraloginoff / html5 audio queue
Last active July 25, 2022 05:55
html5 audio queue
<!doctype html>
<html>
<head>
<script>
//This plays a file, and call a callback once it completed (if a callback is set)
function play(audio, callback) {
audio.play();
if (callback) {
@yuraloginoff
yuraloginoff / static-video.ps1
Created October 16, 2022 13:54
Make video using many mp3 and single image
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
@yuraloginoff
yuraloginoff / ffmpeg_recipes.md
Last active December 26, 2022 18:26 — forked from protrolium/ffmpeg.md
ffmpeg recipes

ffmpeg recipes

Video compression - decrease size, maintain quality

ffmpeg -i original.mp4 -crf 28 compressed.mp4

Converting Audio into Different Formats / Sample Rates

Minimal example: transcode from MP3 to WMA:
ffmpeg -i input.mp3 output.wma

You can get the list of supported formats with:

@yuraloginoff
yuraloginoff / kubuntu.sh
Last active February 2, 2023 17:51
Things to Do After Installing Kubuntu (or Ubuntu)
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