I have googled many things and explored many questions on Stack Overflow
to find the best way to push only dist/
directory to live server. I
couldn't find any good solution but one person on Stackoverflow suggested to
look at Git Submodules and this is the best solution I could come up with. I
have never heard of submodules before because almost nobody uses them. If you
never heard of it too then I'll first explain what a submodule is and then I'll
show you how you can use submodules to push only dist/
directory to
a live server.
# Gain superuser privileges | |
sudo -i | |
# Create swap area for managing memory | |
sudo dd if=/dev/zero bs=1M count=5024 of=/mnt/swapfile.swap | |
sudo chmod 600 /mnt/swapfile.swap | |
sudo mkswap /mnt/swapfile.swap | |
sudo swapon /mnt/swapfile.swap | |
echo '/mnt/swapfile.swap swap swap defaults 0 0' | sudo tee -a /etc/fstab |
#!/usr/bin/env bash | |
# Leverages Docker containers to create a temporary signing server | |
# Obtain a SSL cert and then apply it to the service in question we're interested in | |
# Usage: ./kasm_cert.sh mydomain.test | |
mkdir -p /tmp/webroot | |
# Start an ephemeral nginx container |
<iframe id="ytplayer" type="text/html" width="480" height="270" src="https://www.youtube-nocookie.com/embed/?list=PLuWIxgNYqm0lJH4UKIFrZnyfjpnRGsxdr&listType=playlist&modestbranding=1&playsinline=1&color=red&iv_load_policy=3" frameborder="0" allowfullscreen allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; geolocation" loading="eager"> |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
#!/usr/bin/ruby | |
# Create display override file to force Mac OS X to use RGB mode for Display | |
# see http://embdev.net/topic/284710 | |
require 'base64' | |
data=`ioreg -l -d0 -w 0 -r -c AppleDisplay` | |
edids=data.scan(/IODisplayEDID.*?<([a-z0-9]+)>/i).flatten | |
vendorids=data.scan(/DisplayVendorID.*?([0-9]+)/i).flatten |
We did it! We broke gist.github.com ;) So head over to the new home! Thank you all!
2021.10.20: https://github.com/AveYo/MediaCreationTool.bat now open for interaction
- new update introducing no 11 setup checks on boot in VirtualBox
Not just an Universal MediaCreationTool wrapper script with ingenious support for business editions,
A powerful yet simple windows 10 / 11 deployment automation tool as well!
configure via set vars, commandline parameters or rename script like
iso 21H2 Pro MediaCreationTool.bat
recommended windows setup options with the least amount of issues on upgrades set via auto.cmd
A Pen by Bright Sparks on CodePen.
A Pen by Bright Sparks on CodePen.
We did it! We broke gist.github.com ;) So head over to the new home! Thank you all!
2021.10.20: https://github.com/AveYo/MediaCreationTool.bat now open for interaction
Not just an Universal MediaCreationTool wrapper script with ingenious support for business editions,
A powerful yet simple windows 10 / 11 deployment automation tool as well!