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
/* | |
Do not modify this version of the file. It will be copied over when any of the project's targets are built. | |
If you wish to modify mraid.js, modify the version located at mopub-sdk-common/mraid/mraid.js. | |
*/ | |
(function() { | |
var isIOS = (/iphone|ipad|ipod/i).test(window.navigator.userAgent.toLowerCase()); | |
if (isIOS) { | |
console = {}; | |
console.log = function(log) { | |
var iframe = document.createElement('iframe'); |
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
# Laravel install | |
docker run --rm -v $(pwd):/app -w /app composer:latest composer create-project laravel/laravel laravel | |
docker run --rm -it -v $(pwd):/app composer:latest composer create-project laravel/laravel web | |
# Node | |
docker run -it --rm -v $(pwd):/app -w /app node:latest npm -v | |
# Composer | |
docker run -it --rm -v $(pwd):/app composer:latest bash |
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
docker run --rm --interactive --tty --volume $PWD:/app composer create-project laravel/laravel project_name |
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
#In PVE console | |
adduser johndoe | |
ip a #to check ip | |
apt update | |
apt install sudo # needed to use groupadd | |
apt install vim | |
apt install qemu-guest-agent | |
#From Iterm2 | |
ssh [email protected] | |
#Install docker : https://docs.docker.com/engine/install/debian/ |
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 bash | |
echo "Remove storage/app/public/img directory" | |
rm -rf storage/app/public/img | |
echo "Remove vendor directory" | |
rm -rf vendor | |
echo "Remove node_modules directory" | |
rm -rf node_modules | |
echo "Installing composer dependencies" | |
composer install | |
echo "Installing npm dependencies" |
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
route-nopull | |
route 192.168.0.200 255.255.255.255 | |
route X.X.X.X 255.255.255.0 | |
script-security 2 | |
dhcp-option DNS 192.168.0.200 | |
dhcp-option DOMAIN local.intra |
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
# Backup | |
docker exec CONTAINER /usr/bin/mysqldump -u root --password=root DATABASE > backup.sql | |
# Restore | |
cat backup.sql | docker exec -i CONTAINER /usr/bin/mysql -u root --password=root DATABASE | |
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 | |
# If a command fails then the deploy stops | |
set -e | |
if [ -d "public" ] | |
then | |
printf "\033[0;32mRemoving public folder except .git to keep the submodule...\033[0m\n" | |
cd public | |
find . -not -name '.git' -not -name 'README.md' -delete |
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
#Docker | |
curl -sSL https://get.docker.com | sh | |
sudo usermod -aG docker pi | |
sudo su - pi | |
docker version | |
docker run hello-world |
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 bash | |
touch /Volumes/boot/ssh | |
touch /Volumes/boot/wpa_supplicant.conf | |
echo 'country=FR | |
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev | |
update_config=1 |