Skip to content

Instantly share code, notes, and snippets.

Avatar

Victor Ekpo victorekpo

View GitHub Profile
View searchMusic script
#!/bin/bash
musicDir=/home/ubuntu/projects/music/music-app
#Bash Aliases and Functions
alias importMusic="node $musicDir/App.js bulkImport"
alias syncMusic="$musicDir/jsontocsv > $musicDir/MUSIC.CSV && php $musicDir/update-musicsheet.php"
alias viewMusic="node $musicDir/App.js read"
alias trimLines="awk '!NF {if (++n <= 1) print; next}; {n=0;print}'"
makeSEDforDel() { cat $musicDir/music.fields | while IFS=, read field; do echo -n 'sed "/\"'$field'\": \"\"/d" |' ; done | sed s/.$//; }
makeSEDforLbl() { cat $musicDir/music.fields | while IFS=, read field; do echo -n 'sed "s/'$field'://g" |' ; done | sed s/.$//; }
@victorekpo
victorekpo / .gitattributes
Created Oct 19, 2021 — forked from Yousha/.gitattributes
.gitattributes for C/C++ developers.
View .gitattributes
* text=auto
###### Git
.gitattributes text
.gitignore text
.gitconfig text
.gitmodules text
##### Windows
*.bat text eol=crlf