This file contains hidden or 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 | |
# Original at: http://www.brandonhutchinson.com/Port_to_PID_with_lsof.html | |
# was written originaly for Solaris 9. Fixed By Elad Gariany to OSX | |
# Map LISTENing TCP ports to their PIDs using lsof | |
#LSOF=lsof | |
# e.g. netstat -an | |
# 127.0.0.1.25 *.* 0 0 49152 0 LISTEN | |
# *.22 *.* 0 0 49152 0 LISTEN |
This file contains hidden or 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
# you will need these files: | |
# -> https://www.gariany.com/2020/05/ffmpeg-crt-scan-lines-filter/scanline_pattern_croped.png | |
ffmpeg -loglevel debug -y -f lavfi -i color=c=black:s=1216x896 -filter_complex "movie='bg_croped.png',format=rgba,setsar=1:1[bgc];movie='scanline_pattern_croped.png'[spc];movie='main.png',format=rgba,scale=iw:ih*4:flags=neighbor,scale=iw*4:ih:flags=bilinear[input];[bgc][input]overlay[tmp];[tmp][spc]blend=all_mode=softlight:all_opacity=0.15[tmp2];[0][tmp2]overlay[o]" -map "[o]" -frames:v 1 output.png |
This file contains hidden or 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 | |
branch="$(git rev-parse --abbrev-ref HEAD)" | |
if [ "$branch" = "master" ] || [ "$branch" = "dev" ] || [ "$branch" = "prod" ]; then | |
echo "You can't commit directly to $branch branch" | |
exit 1 | |
fi |
OlderNewer