I hereby claim:
- I am ksylvan on github.
- I am ksylvan (https://keybase.io/ksylvan) on keybase.
- I have a public key whose fingerprint is 30E9 AE71 105E CF9C 40C4 A95D 3822 6E74 4D57 96BA
To claim this, I am signing this object:
| # /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
| # brew install bash-completion git git-extras git-flow | |
| # Then add the following snippet to your .bash_profile | |
| if [ -f $(brew --prefix)/etc/bash_completion ]; then | |
| . $(brew --prefix)/etc/bash_completion | |
| fi | |
| if [ -d $(brew --prefix)/bin ]; then | |
| PATH=$(brew --prefix)/bin:$PATH | |
| fi |
| # Based on https://blog.vandenbrand.org/2016/01/04/how-to-automate-your-mac-os-x-setup-with-ansible/ | |
| # | |
| - hosts: all | |
| tasks: | |
| - name: Current Dock names | |
| shell: > | |
| dockutil --list | | |
| python -c 'import sys; [sys.stdout.write(line.split("\t")[0] + "\n") | |
| for line in sys.stdin]' | |
| register: dockitems |
I hereby claim:
To claim this, I am signing this object:
| # MVN IDEA settings | |
| # | |
| --- | |
| - hosts: all | |
| gather_facts: false | |
| roles: | |
| - cmprescott.xml | |
| vars: | |
| - m2_settings_file: ~/.m2/settings.xml | |
| tasks: |
| #!/bin/sh | |
| # | |
| #IMAGE=gitlab/gitlab-ce:previous | |
| IMAGE=gitlab/gitlab-ce | |
| NAME=gitlab | |
| PORTS="-p 443:443 -p 80:80 -p 22:22" | |
| G_CONFIG=/etc/gitlab |
| kayvan@thor mail-server:(master)$ make redo | |
| ansible-playbook -u deploy bootstrap.yml | |
| PLAY [all] ******************************************************************************************** | |
| TASK [Install python 2 if not there] ****************************************************************** | |
| ok: [netconnect.net] | |
| TASK [Install sudo if not there] ********************************************************************** | |
| ok: [netconnect.net] |
| 2017-08-23 01:48:43,076:DEBUG:certbot.main:certbot version: 0.17.0 | |
| 2017-08-23 01:48:43,077:DEBUG:certbot.main:Arguments: ['--expand', '--standalone', '--agree-tos', '--rsa-key-size', '4096', '-m', 'postmaster@sylvan.com', '-d', 'spam.sylvan.com', '-d', 'mail.sylvan.com', '-d', 'postfixadmin.sylvan.com', '-d', 'sylvan.com', '-d', 'webmail.sylvan.com', '-d', 'www.sylvan.com'] | |
| 2017-08-23 01:48:43,077:DEBUG:certbot.main:Discovered plugins: PluginsRegistry(PluginEntryPoint#manual,PluginEntryPoint#null,PluginEntryPoint#standalone,PluginEntryPoint#webroot) | |
| 2017-08-23 01:48:43,093:DEBUG:certbot.log:Root logging level set at 20 | |
| 2017-08-23 01:48:43,094:INFO:certbot.log:Saving debug log to /var/log/letsencrypt/letsencrypt.log | |
| 2017-08-23 01:48:43,095:DEBUG:certbot.plugins.selection:Requested authenticator standalone and installer None | |
| 2017-08-23 01:48:43,189:DEBUG:certbot.plugins.selection:Single candidate plugin: * standalone | |
| Description: Spin up a temporary webserver | |
| Interfaces: IAuthenticator, IPlugin | |
| Entry point: sta |
| #!/bin/bash | |
| # | |
| # After you start your Pi-Hole in a Docker container according | |
| # to this: https://github.com/diginc/docker-pi-hole | |
| # | |
| # NOTE: On the Mac, I had to add "-h $(scutil --get LocalHostName)" to | |
| # the "docker run" command. Otherwise, the Mac hostname was being reset | |
| # to the random hostname generated for the container. | |
| # | |
| # Run this to replicate Will's setup here: |
FWIW: I didn't produce the content presented here (the outline from Edmond Lau's book). I've just copy-pasted it from somewhere over the Internet, but I cannot remember what exactly the original source is. I was also not able to find the author's name, so I cannot give him/her the proper credits.
| # You are building an educational website and want | |
| # to create a simple calculator for students to use. | |
| # The calculator will only allow addition and subtraction | |
| # of non-negative integers. | |
| # We also want to allow parentheses in our input. | |
| # Given an expression string using | |
| # the "+", "-", "(", and ")" | |
| # operators like "5+(16-2)", write a function to parse the | |
| # string and evaluate the result. |