- Write a detailed README with contact info, info about the workshop itself, license etc
- Create a folder for each lesson so folks won’t have to struggle with switching git branches every 15 minutes
- Give everyone a minute to process what they’ve learned and to figure out whether they have questions
- Reference the docs so once the workshop concludes everyone knows where to find the resources to refresh what they’ve learned
- As with egghead lessons, guide their eyes - if you’re explaining something, then select it in your IDE (at least hover over it)
- Take a minute to go over the questions from the chat, read the question out loud
- Don’t be afraid to experiment when there’s an interesting question, we’re all nerds here who love to try out new stuff
$ sudo bash -c "$(curl -s https://gist.githubusercontent.com/zulhfreelancer/0b87a274686cb4d98b8144e116c5117c/raw)"
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 | |
# This script will automatically set up a single node Flynn Cluster on your linux box | |
# Fresh Flynn install with domain provided by the xip.io service | |
# Tested with Base Image: Ubuntu 14.04 x64 @ DigitalOcean droplet | |
# @date 16 Nov 2015 | |
# @author Edu Wass (eduwass at gmail com) | |
echo '---- START SETUP ----' |
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
sudo apachectl stop | |
sudo launchctl unload -w /System/Library/LaunchDaemons/org.apache.httpd.plist 2>/dev/null |
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
import express from 'express'; | |
import passport from 'passport'; | |
import {Strategy} from 'passport-github'; | |
import compression from 'compression'; | |
import sapper from 'sapper'; | |
import serve from 'serve-static'; | |
import {routes} from './manifest/server.js'; | |
import App from './App.html'; | |
import _ from '../SECRETS'; |
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
import { h, Component } from 'preact'; | |
import { Router } from 'preact-router'; | |
import Header from './header'; | |
import Home from '../routes/home'; | |
import Profile from '../routes/profile'; | |
import NotifyChange from "./NotifyChange/index"; | |
// import Home from 'async!../routes/home'; | |
// import Profile from 'async!../routes/profile'; |
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
(function($, window, undefined) { | |
var InfiniteScroll = function() { | |
this.initialize = function() { | |
this.setupEvents(); | |
}; | |
this.setupEvents = function() { | |
$(window).on( | |
'scroll', | |
this.handleScroll.bind(this) |
Create an inventory file such called hosts
with the following content (adjusting the IP address)
[ansible-hosts]
129.114.18.39 ansible_ssh_private_key_file=key_pair.pem ansible_ssh_user=ubuntu # Ubuntu target
From an Ansible-enabled machine, download playbook.yml
and run it with
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
Put this in your `local-configure.yml` file, add as many users as you need: | |
users: | |
- name: fulvio | |
sudoer: yes | |
auth_key: ssh-rsa blahblahblahsomekey this is actually the public key in cleartext | |
- name: plone_buildout | |
group: plone_group | |
sudoer: no | |
auth_key: ssh-rsa blahblahblah ansible-generated on default |
NewerOlder