For the file group_vars/windows/main.yml
I suggest to use ansible vault
This file contains 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
[local] | |
localhost ansible_connection=local | |
[windows:vars] | |
ansible_winrm_scheme=http | |
ansible_connection=winrm |
This file contains 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
FROM php:7.0.4-fpm | |
RUN apt-get update && apt-get install -y libmcrypt-dev \ | |
mysql-client libmagickwand-dev --no-install-recommends \ | |
&& pecl install imagick \ | |
&& docker-php-ext-enable imagick \ | |
&& docker-php-ext-install mcrypt pdo_mysql |
-
Clone Ubuntu base VM
-
Assign IP to the new machine (read MAC at assign using DHCP)
-
Add the ip to ansible
[dns]
group, in the file/etc/ansible/hosts
-
Login with default username and password
-
Enble SSH auth via password to allow first ansible login
sudo sed -i 's/PasswordAuthentication no/PasswordAuthentication yes' /etc/ssh/sshf_config
-
Restart
-
From ansible controller, check
This file contains 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
if (workbox) { | |
console.log(`Yay! Workbox is loaded 🎉`); | |
// workbox.setConfig({ debug: false }); | |
// workbox.precaching.suppressWarnings(); | |
workbox.precaching.precacheAndRoute(self.__precacheManifest, {}); | |
workbox.routing.registerRoute(/^https?.*/, workbox.strategies.networkFirst(), 'GET'); | |
} else { | |
console.log(`Boo! Workbox didn't load 😬`); | |
} |
This file contains 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
server.get("/service-worker.js", (req, res) => { | |
// Don't cache service worker is a best practice (otherwise clients wont get emergency bug fix) | |
res.set("Cache-Control", "no-store, no-cache, must-revalidate, proxy-revalidate"); | |
res.set("Content-Type", "application/javascript"); | |
const filePath = join(__dirname, '.next', req.url); | |
app.serveStatic(req, res, filePath); | |
}); | |
This file contains 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 | |
# Installation | |
su | |
apt-get install software-properties-common dirmngr | |
apt-add-repository 'deb http://shaggytwodope.github.io/repo ./' | |
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 7086E9CC7EC3233B | |
apt-get update | |
apt-get install drive |
This file contains 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
tns create Countdown --vue | |
cd Countdown | |
node_modules\.bin\update-ns-webpack --configs | |
tns doctor |
This file contains 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
server { | |
listen 80; | |
listen 443 ssl http2; | |
server_name blablabla.local www.blablabla.local; | |
root /var/www/html/blablabla.com/public; | |
add_header X-Frame-Options "SAMEORIGIN"; |
This file contains 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 | |
EXIT_CODE=0 | |
for cartella in $( ls -l /var/www | grep -e "^d" | awk '{ print $9 }'); do | |
echo "Scansione /var/www/$cartella ...." | |
for phpfile in $(find /var/www/$cartella -type f -iname '*.php'); do |
OlderNewer