- a/o 2015-05-27 *
 
—
- Restart with cmd-R or cmd-D
 - Erase drive / 3x if second-handk
 - Reinstall MacOS
 
| ========================================== ========================================== | |
| TMUX COMMAND WINDOW (TAB) | |
| ========================================== ========================================== | |
| List tmux ls List ^b w | |
| New -s <session> Create ^b c | |
| Attach att -t <session> Rename ^b , <name> | |
| Rename rename-session -t <old> <new> Last ^b l (lower-L) | |
| Kill kill-session -t <session> Close ^b & | 
| # Step 1: Set priveleges | |
| $ sudo /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -configure -allowAccessFor -allUsers -privs -all | |
| Starting... | |
| Setting allow all users to YES. | |
| Setting all users privileges to 1073742079. | |
| Done. | |
| # Step 2: Allow VNC clients | 
#!/usr/bin/env bash
# Assuming OS X Yosemite 10.10.4
# Install XCode and command line tools
# See https://itunes.apple.com/us/app/xcode/id497799835?mt=12#
# See https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man1/xcode-select.1.html
xcode-select --install| #!/bin/bash | |
| ## Install Gogs 0.6.3 on Ubuntu 14.04 LTS 64Bits | |
| ## Author: Nilton OS -- www.linuxpro.com.br | |
| ## Version: 0.2 | |
| echo 'install_gogs_ubuntu.sh' | |
| echo 'Support Ubuntu/Debian' | |
| echo 'Installs Gogs 0.6.3' | |
| echo 'Requires Ubuntu 14.04+, Debian 7+' | 
| module DapperFSharp = | |
| open System.Data.SqlClient | |
| open System.Dynamic | |
| open System.Collections.Generic | |
| open Dapper | |
| let dapperQuery<'Result> (query:string) (connection:SqlConnection) = | |
| connection.Query<'Result>(query) | |
| let dapperParametrizedQuery<'Result> (query:string) (param:obj) (connection:SqlConnection) : 'Result seq = | 
| # Python code to generate an animation showing compound interest taking place with | |
| # increasingly smaller terms. You will require matplotlib to run this code. | |
| # You'll also require ImageMagick installed to generate the .gif animation. | |
| # You can find this at http://usn.pw/blog/maths/2015/04/09/compound-interest | |
| import matplotlib.pyplot as mp | |
| import matplotlib.animation as ma | |
| def gen_data(steps): | |
| """Creates the data to be plotted in this animation frame.""" | 
I spent a lot of time trying to find a pretty optimal (for me) setup for Clojure… at the same time I was trying to dive in and learn it. This is never optimal; you shouldn't be fighting the environment while trying to learn something.
I feel like I went through a lot of pain searching Google, StackOverflow, blogs, and other sites for random tidbits of information and instructions.
This is a comprehensive "what I learned and what I ended up doing" that will hopefully be of use to others and act as a journal for myself if I ever have to do it again. I want to be very step-by-step and explain what's happening (and why) at each step.
| using System; | |
| using System.Linq; | |
| using Autofac; | |
| using Autofac.Core; | |
| using NLog; | |
| using log4net; | |
| using LogManager = NLog.LogManager; | |
| namespace AutofacIdea | |
| { | 
| using System; | |
| using System.Collections.Generic; | |
| using System.Diagnostics; | |
| using System.IO; | |
| using System.Net; | |
| namespace EventStoreService | |
| { | |
| public class EventStoreService | |
| { |