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
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| """ | |
| Inspired from https://github.com/oriolbernal/face-swap/blob/master/face_swap.py | |
| """ | |
| from typing import Tuple | |
| import cv2 | |
| import numpy as np |
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
| # Using fd (https://github.com/sharkdp/fd) | |
| # How it works? | |
| # 1. fd -H '\.git$' finds the git folders inside the repos | |
| # 2. -x "rm -rf '{//}'" executes the operation of deleting the folder | |
| # 3. '{//}' is to say that the folder it should remove is the parent folder | |
| # of the result, which in this case is the folder of the repo | |
| fd -H '\.git$' -x "rm -rf '{//}'" |
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
| highlight stlModified ctermfg=167 guifg=#d84a44 ctermbg=235 guibg=#282828 cterm=bold gui=bold | |
| highlight stlTypeInfo ctermfg=73 guifg=#6fa3a6 ctermbg=235 guibg=#282828 cterm=NONE gui=NONE | |
| highlight stlDirInfo ctermfg=116 guifg=#84d4d2 ctermbg=237 guibg=#3c3836 cterm=NONE gui=NONE | |
| highlight stlErrorInfo ctermfg=167 guifg=#d84a44 ctermbg=235 guibg=#282828 cterm=NONE gui=NONE | |
| highlight stlNormalMode ctermfg=172 guifg=#d79921 ctermbg=239 guibg=#504945 cterm=bold gui=bold | |
| highlight stlInsertMode ctermfg=234 guifg=#1d2021 ctermbg=65 guibg=#679a69 cterm=bold gui=bold | |
| highlight stlVisualMode ctermfg=234 guifg=#1d2021 ctermbg=173 guibg=#c7743e cterm=NONE gui=NONE | |
| highlight stlReplaceMode ctermfg=234 guifg=#1d2021 ctermbg=73 guibg=#6fa3a6 cterm=NONE gui=NONE | |
| highlight stlSelectMode ctermfg=234 guifg=#1d2021 ctermbg=73 guibg=#6fa3a6 cterm=NONE gui=NONE |
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
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| from datetime import datetime | |
| from time import mktime | |
| from glob import glob | |
| from os import utime | |
| from re import findall | |
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
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| from json import load | |
| from glob import glob | |
| from os import utime | |
| def update_multimedia(multimedias): | |
| for multimedia in multimedias: |