That is is basically a "fork" of blog article i'm constantly returning to. It seems that the blog is down:
Dave Bass proposed this which I picked up for my implementation (here for an 8-chars token):
| variable "bucket_site" {} | |
| variable "region" {} | |
| variable "route53_domain_name" {} | |
| variable "route53_domain_zoneid" {} | |
| variable "route53_domain_alias_name" {} | |
| variable "route53_domain_alias_zoneid" {} | |
| provider "aws" { | |
| region = "${var.region}" | |
| } |
| #!/user/bin/env ruby | |
| require 'bundler/inline' | |
| gemfile(true) do | |
| source 'https://rubygems.org' | |
| gem 'sinatra', '~> 1.4' | |
| gem 'bcrypt', '~> 3.1' | |
| end | |
| require 'sinatra/base' |
| { | |
| "AWSEBDockerrunVersion": "1", | |
| "Image": { | |
| "Name": "<AWS_ACCOUNT_ID>.dkr.ecr.us-east-1.amazonaws.com/<NAME>:<TAG>", | |
| "Update": "true" | |
| }, | |
| "Ports": [ | |
| { | |
| "ContainerPort": "443" | |
| } |
That is is basically a "fork" of blog article i'm constantly returning to. It seems that the blog is down:
Dave Bass proposed this which I picked up for my implementation (here for an 8-chars token):
| - Open Automator | |
| - File -> New -> Service | |
| - Change "Service Receives" to "files or folders" in "Finder" | |
| - Add a "Run Shell Script" action | |
| - Change "Pass input" to "as arguments" | |
| - Paste the following in the shell script box: open -n -b "com.microsoft.VSCode" --args "$*" | |
| - Save it as something like "Open in Visual Studio Code" |
| # Add the "https://github.com/jwt/ruby-jwt" gem to your "Gemfile" | |
| gem 'jwt' |
| module ActiveRecord | |
| module Scopes | |
| module SetOperations | |
| extend ActiveSupport::Concern | |
| class_methods do | |
| def union_scope(*scopes) | |
| apply_operation 'UNION', scopes | |
| end |
Source: Below are my step-by-step notes based on the instructions found here: https://github.com/jaap-karssenberg/zim-wiki/wiki/Install-on-OS-X-using-Platypus
Zim is a desktop wiki app written in Python and GTK. Learn more at: http://zim-wiki.org/
On Macs, you normally run the app by calling:
python zim.py
| #!/bin/bash | |
| # https://gist.github.com/joshenders/52cb78bedaea6787faac | |
| # This script uses the BSD variants of commands and is intended to | |
| # be run on an unmodified installation of OSX. | |
| pmset noidle & | |
| now=$(date +%s) | |
| duration=$((86400*3)) # 3days |