To print the first column of a CSV file:
awk -F, '{print $1}' file.csv
To print the first and third columns of a CSV file:
awk -F, '{print $1 "," $3}' file.csv
To print only the lines of a CSV file that contain a specific string:
You only need this if you want to redo/replace your PS4's HDD for some reason but you don't want to go to the trouble of downloading everything again. | |
You need to jailbreak the PS4 and then connect with FTP (Filezilla is perfect for this). | |
Then you just go to the /user/app/CUSAxxxxx folder for the game you want to back up and copy out the app.pkg to your PC. Also check the /user/patch/CUSAxxxxx folder if you want to keep the update pkgs. |
To print the first column of a CSV file:
awk -F, '{print $1}' file.csv
To print the first and third columns of a CSV file:
awk -F, '{print $1 "," $3}' file.csv
To print only the lines of a CSV file that contain a specific string:
$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") |
for f in ./*.mkv | |
do | |
ffmpeg -i "$f" [...] | |
done |
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)\]" |
# 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 |
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' |
#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 |
select replace(convert(varchar,getdate(),112),'.','') + '_' + REPLACE(CONVERT(varchar(5), GETDATE(), 108), ':', '') '_' + |
for img in *jpg; do convert "$img" -gravity SouthWest -pointsize 200 \ | |
-fill red -annotate +30+30 %[exif:DateTime] "time_""$img"; | |
done |