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
#Script to find big files on Linux | |
#change 500M to required size | |
find / -type f -size +500M -exec ls -lh {} \; | awk '{ print $NF ": " $5 }' | |
# fstrim with output | |
sudo fstrim --fstab --verbose |
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/sh | |
#wget https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts | |
#sudo mv hosts /etc/hosts | |
#for opensuse | |
#sudo zypper install neovim git sqlite sensors podman | |
# atop | |
# curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh |
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
for img in *jpg; do convert "$img" -gravity SouthWest -pointsize 200 \ | |
-fill red -annotate +30+30 %[exif:DateTime] "time_""$img"; | |
done |
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
select replace(convert(varchar,getdate(),112),'.','') + '_' + REPLACE(CONVERT(varchar(5), GETDATE(), 108), ':', '') '_' + |
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
#these instructions are for Ubuntu 19.04+ | |
#get the deb https://github.com/devkitPro/pacman/releases/latest | |
sudo dpkg -i devkitpro-pacman.deb | |
#add this shit to .profile or .bashrc or .bash_profile, doesn't have to be all 3 | |
export DEVKITPRO=/opt/devkitpro | |
export DEVKITARM=${DEVKITPRO}/devkitARM | |
export DEVKITPPC=${DEVKITPRO}/devkitPPC | |
export PATH=${DEVKITPRO}/tools/bin:$PATH |
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
set number | |
set hlsearch | |
set incsearch | |
set foldmethod=indent | |
syntax enable | |
filetype plugin indent on | |
" Specify a directory for plugins | |
" - For Neovim: stdpath('data') . '/plugged' |
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
# for seeing who has committed how much to your project | |
git shortlog -sn --all --no-merges | |
# See who last changed lines 5 through 10 of the buttons’ CSS: | |
git blame -L5,10 _components.buttons.scss | |
# easier to see diff changes | |
git diff -w | |
git diff --word-diff |
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
export PS1="\[\033[38;5;92m\][\[$(tput sgr0)\] \[$(tput sgr0)\]\[\033[38;5;162m\]\@\[$(tput sgr0)\] \[$(tput sgr0)\]\[\033[38;5;92m\]]\[$(tput sgr0)\] \[$(tput sgr0)\]\[$(tput bold)\]\[\033[38;5;50m\]\W\[$(tput sgr0)\] \[$(tput sgr0)\]\[\033[38;5;39m\]>\[$(tput sgr0)\] \[$(tput sgr0)\]" |
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
for f in ./*.mkv | |
do | |
ffmpeg -i "$f" [...] | |
done |
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
$folder = "C:\path\to\folder" | |
$webm = "C:\path\to\webm\folder" | |
$mp4Files = Get-ChildItem -Path $folder -Filter "*.mp4" | |
foreach ($file in $mp4Files) { | |
$fileName = $file.Name | |
$input = $folder + "\" + $fileName | |
$output = $webm + "\" + $fileName.Replace(".mp4", ".webm") |
OlderNewer