sudo apt-get install python3-pip
sudo pip3 install virtualenv
1) Install inotifywait | |
sudo apt install inotifywait | |
2) Use inotifywait to sync your folders to S3 | |
s3folder = "<your_s3_fodler_path>" | |
s3bucket = "s3://<your_s3_bucket_name>" | |
while inotifywait $s3folder; do aws s3 sync $s3folder $s3bucket --delete; done |
# near: get non-html files 'near' an html file (ex: an image located outside) (--near) | |
httrack --near -%v -z -%k -%B -B -u2 -%u -O ./. 'http://blog.eon01.com' |
server { | |
listen 8000 default_server; | |
listen [::]:8000 default_server; | |
# SSL configuration | |
# | |
# listen 443 ssl default_server; | |
# listen [::]:443 ssl default_server; | |
# | |
# Note: You should disable gzip for SSL traffic. |
#!/bin/bash | |
# Destroy everything | |
# https://www.youtube.com/watch?v=DBwgX8yBqsw | |
# | |
# Stop all containers | |
docker stop $(docker ps -a -q) | |
# Delete all containers | |
docker rm $(docker ps -a -q) | |
# Delete all images | |
docker rmi $(docker images -q) |
<script type="text/javascript"> | |
var u = navigator.userAgent | |
if( /iPhone/i.test(u) ) { | |
//window.location = "http://www.apple.com"; | |
} | |
else if (/android/i.test(u)) { | |
//window.location = "http://www.google.com"; | |
} | |
</script> |
Here are the steps for getting a working Linux install for React Native:
sudo apt-get install qemu-kvm libvirt-bin bridge-utils virt-manager
sudo adduser $USER libvirtd
from requests_oauthlib import OAuth2Session | |
from flask import Flask, request, redirect, session, url_for | |
from flask.json import jsonify | |
import os | |
app = Flask(__name__) | |
# This information is obtained upon registration of a new GitHub | |
client_id = "<your client key>" |
version: '3' | |
networks: | |
wordpress_network: | |
#volumes: | |
# fs-xxxxx: | |
# driver: rexray or efs | |
# driver_opts: | |
# share: "fs-xxxxx" |
#!/bin/bash | |
# controller.sh | |
# Authors: Kevin Jackson ([email protected]) | |
# Cody Bunch ([email protected]) | |
# Egle Sigler ([email protected]) | |
# Vagrant scripts used by the OpenStack Cloud Computing Cookbook, 3rd Edition | |
# Website: http://www.openstackcookbook.com/ |