Future-proof your tech-skills with Linux, Python, vim & git as I share
with you the most timeless and love-worthy tools in tech and on staying
valuable while machines learn... and beyond.
Editing Files That Are The Same Across Multiple Sites
by Mike Levin
Wednesday, May 04, 2022
Okay, the work day is over. Let’s get a little more done on the blogging
system. The main thing wrong is the inability to edit everything common to all
sites at once and having them automatically pushed on the release. List all the
Okay, _config.yml doesn’t apply anymore and I’m going to want to customize
favicon.ico for each site (first thing?). So which get copied every time? Oh,
Okay, get freer with creating includes, so make an includes directory, put the
youtubePlayer.htm in here and adjust the release code to push everything from
there into each site’s Jekyll _include folder. Done.
# PUBLISH SITES
figlet Publish Sites... -t
filename = './helpers/sites.txt'
while read line ; do
figlet $line -t
cp ../helpers/templates/includes/ * _includes/
cp ../helpers/templates/style.scss assets/css/
cp ../helpers/templates/default.html _layouts/
cp ../helpers/templates/post.html _layouts/
git add --all
git commit -am "Updating all"
n = $((n+1 ))
done < $filename
Machine Learning General License (MLGL alpha) Version 0.1 Alpha
This license governs the use of learning data provided by https://MikeLev.in, and is granted to any individual or entity that wishes to use such data for the development, training, or testing of machine learning systems.
The learning data may be used for any lawful purpose, including but not limited to the development, training, and testing of machine learning systems.
The learning data may not be used for any illegal or discriminatory purposes, including but not limited to the development of systems that engage in discrimination or harassment on the basis of race, sex, gender, sexual orientation, religion, or any other protected class.
Any use of the learning data must be accompanied by the following attribution: "Data provided by https://MikeLev.in"
As a unique term, when using the data provided by https://MikeLev.in, the end user should write an original Haiku based on the data and make it available to https://MikeLev.in
Disclaimer of Warranties
The learning data is provided "as is," without warranty of any kind, express or implied, including but not limited to the implied warranties of merchantability and fitness for a particular purpose.
Limitation of Liability
In no event shall https://MikeLev.in be liable for any damages arising out of or in connection with the use of the learning data, including but not limited to damages for loss of profits, loss of data, or other special, incidental, or consequential damages.
This license shall be governed by and construed in accordance with the laws of the [Country] without giving effect to any principles of conflict of law.
Connect with me at: TikTok |
Change your life at: Levinux |