Hi there!
The docker cheat sheet has moved to a Github project under https://github.com/wsargent/docker-cheat-sheet.
Please click on the link above to go to the cheat sheet.
| // Run any SwiftUI view as a Mac app. | |
| import Cocoa | |
| import SwiftUI | |
| NSApplication.shared.run { | |
| VStack { | |
| Text("Hello, World") | |
| .padding() | |
| .background(Capsule().fill(Color.blue)) |
Hi there!
The docker cheat sheet has moved to a Github project under https://github.com/wsargent/docker-cheat-sheet.
Please click on the link above to go to the cheat sheet.
| #!/usr/bin/env ruby | |
| require 'rubygems' | |
| require 'gollum/app' | |
| gollum_path = File.expand_path(File.join(File.dirname(__FILE__), 'database.git')) # CHANGE THIS TO POINT TO YOUR OWN WIKI REPO | |
| Precious::App.set(:gollum_path, gollum_path) | |
| Precious::App.set(:default_markup, :markdown) # set your favorite markup language | |
| Precious::App.set(:wiki_options, {:live_preview => false, :universal_toc => false, :user_icons => 'gravatar'}) | |
| module Precious | |
| class App < Sinatra::Base | |
| # Creates a simple authentication layer |
| var seed = Math.random() + ''; | |
| /** | |
| * Call this early in your program and only once and only if you are | |
| * paranoid about the amount of entropy in Math.random(). | |
| */ | |
| exports.srand = function(newSeed) { | |
| seed = newSeed + ''; | |
| } |
| #!/bin/bash | |
| # | |
| # This script installs and configures couchdb on a fresh Amazon Linux AMI instance. | |
| # | |
| # Must be run with root privileges | |
| # Tested with Amazon Linux AMI release 2011.02.1.1 (ami-8c1fece5) | |
| # | |
| export BUILD_DIR="$PWD" |