For educational reasons I've decided to create my own CA. Here is what I learned.
Lets get some context first.
| #!/usr/bin/env bash | |
| PGSQL_DATA_PATH='/data/pg' | |
| SERVER_CONTAINER="postgresql-server" | |
| DATA_CONTAINER="postgresql-data" | |
| function getStatus(){ | |
| CONTAINER_ID=$(docker ps -a | grep -v Exit | grep $SERVER_CONTAINER | awk '{print $1}') | |
| if [[ -z $CONTAINER_ID ]] ; then | |
| echo 'Not running.' |
| # -*- mode: ruby -*- | |
| # vi: set ft=ruby : | |
| VAGRANTFILE_API_VERSION = "2" | |
| Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
| config.vm.box = "precise64" | |
| # The url from where the 'config.vm.box' box will be fetched if it | |
| # doesn't already exist on the user's system. |
| #!/bin/bash | |
| # Install VirtualBox | |
| echo "Do you want to install VirtualBox? [Y/n]" | |
| read INPUT | |
| if [[ "$INPUT" == 'Y' || "$INPUT" == 'y' ]]; then | |
| # Select major version | |
| DEFAULT=4.2 | |
| echo "Select version e.g. $DEFAULT" | |
| read VER |
| def yes_or_no(question): | |
| reply = str(raw_input(question+' (y/n): ')).lower().strip() | |
| if reply[0] == 'y': | |
| return True | |
| if reply[0] == 'n': | |
| return False | |
| else: | |
| return yes_or_no("Uhhhh... please enter ") |
| AI: | |
| - genetic algorithm | |
| - Microbial GA http://www.codeproject.com/Articles/16286/AI-Simple-Genetic-Algorithm-GA-to-solve-a-card-pro | |
| - Immune A http://www.codeproject.com/Articles/27551/Artificial-Immune-Algorithm-in-C | |
| - Roaches https://msdn.microsoft.com/en-us/magazine/mt632275?f=255&MSPPError=-2147217396 | |
| - neural network | |
| - http://www.codeproject.com/Articles/16419/AI-Neural-Network-for-beginners-Part-1-of-3 | |
| - http://natureofcode.com/book/chapter-10-neural-networks/ | |
| - Markov decision process to change from 1 state to another (Q-learning/reinforcement learning). Neural Network could be just for the combat part. | |
| - state machine (if/else) |
| // Requires jQuery of course. | |
| $(document).ready(function() { | |
| $('.show-comments').on('click', function(){ | |
| var disqus_shortname = 'YOUR-DISQUS-USERNAME'; // Replace this value with *your* username. | |
| // ajax request to load the disqus javascript | |
| $.ajax({ | |
| type: "GET", | |
| url: "http://" + disqus_shortname + ".disqus.com/embed.js", | |
| dataType: "script", |
| http://ak.worldofwarcraft.com.edgesuite.net/wow-pod-retail/NA/15050.direct/Data/art.MPQ | |
| http://ak.worldofwarcraft.com.edgesuite.net/wow-pod-retail/NA/15050.direct/Data/base-OSX.MPQ | |
| http://ak.worldofwarcraft.com.edgesuite.net/wow-pod-retail/NA/15050.direct/Data/base-Win.MPQ | |
| http://ak.worldofwarcraft.com.edgesuite.net/wow-pod-retail/NA/15050.direct/Data/expansion1.MPQ | |
| http://ak.worldofwarcraft.com.edgesuite.net/wow-pod-retail/NA/15050.direct/Data/expansion2.MPQ | |
| http://ak.worldofwarcraft.com.edgesuite.net/wow-pod-retail/NA/15050.direct/Data/expansion3.MPQ | |
| http://ak.worldofwarcraft.com.edgesuite.net/wow-pod-retail/NA/15050.direct/Data/sound.MPQ | |
| http://ak.worldofwarcraft.com.edgesuite.net/wow-pod-retail/NA/15050.direct/Data/world.MPQ | |
| http://ak.worldofwarcraft.com.edgesuite.net/wow-pod-retail/NA/15050.direct/Data/world2.MPQ | |
| http://ak.worldofwarcraft.com.edgesuite.net/wow-pod-retail/NA/15050.direct/Data/wow-update-base-15211.MPQ |
| UPDATE table_name SET bDeleted=0 WHERE name='xyz'; | |
| “You are using safe update mode and you tried to update a table without a WHERE clause that uses a KEY column.” | |
| SET SQL_SAFE_UPDATES=0; | |
| UPDATE table_name SET bDeleted=0 WHERE name='xyz'; | |
| SET SQL_SAFE_UPDATES=1; | |
| #http://www.xpertdeveloper.com/2011/10/mysql-safe-update/ |