Blogs
Books
- Metaprogramming Elixir by Chris McCord
Official Documentation
| ### | |
| ### [2023-06-19] UPDATE: Just tried to use my instructions again on a fresh install and it failed in a number of places. | |
| ###. Not sure if I'll update this gist (though I realise it seems to still have some traffic), but here's a list of | |
| ###. things to watch out for: | |
| ### - Check out the `nix-darwin` instructions, as they have changed. | |
| ### - There's a home manager gotcha https://github.com/nix-community/home-manager/issues/4026 | |
| ### | |
| # I found some good resources but they seem to do a bit too much (maybe from a time when there were more bugs). | |
| # So here's a minimal Gist which worked for me as an install on a new M1 Pro. |
| # Alex Ellis 2018 | |
| # Example from: https://blog.alexellis.io/quick-look-at-google-kaniko/ | |
| # Pre-steps: | |
| # kubectl create secret generic docker-config --from-file $HOME/.docker/config.json | |
| # Other potential optimizations (suggested by @errordeveloper) | |
| # - Store "templates" in a permanent volume | |
| # - Download source via "tar" instead of git clone |
| defmodule Game do | |
| use GenServer | |
| def init(game_id) do | |
| {:ok, %{game_id: game_id}} | |
| end | |
| def start_link(game_id) do | |
| GenServer.start_link(__MODULE__, game_id, name: {:global, "game:#{game_id}"}) | |
| end |
Blogs
Books
Official Documentation
| { | |
| "Version": "2012-10-17", | |
| "Statement": [ | |
| { | |
| "Sid": "AllowUserToSeeBucketListInTheConsole", | |
| "Action": [ | |
| "s3:ListAllMyBuckets", | |
| "s3:GetBucketLocation" | |
| ], | |
| "Effect": "Allow", |
| using System; | |
| using System.IO; | |
| using System.Security.Cryptography; | |
| using System.Text; | |
| namespace YourProject.Security | |
| { | |
| public static class Cryptography<E> | |
| where E : Encoding, new() | |
| { |
| <!-- place this in an %angular paragraph --> | |
| <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/leaflet/0.7.5/leaflet.css" /> | |
| <div id="map" style="height: 800px; width: 100%"></div> | |
| <script type="text/javascript"> | |
| function initMap() { | |
| var map = L.map('map').setView([30.00, -30.00], 3); | |
| L.tileLayer('http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', { |
| #! /usr/bin/env bash | |
| HOST_IP_1="10.0.10.10" | |
| HOST_IP_2="10.0.20.10" | |
| HOST_IP_3="10.0.30.10" | |
| ###### DO NOT TOUCH BELOW HERE ######## | |
| SCRIPT=`basename "$0"` |
These commands are needed every time you want to generate a new certificate signing request to give to an authority in order for them to generate and sign a certificate for you.
https://letsencrypt.org/ solves a lot of the pain involved with SSL certs, but sometimes you still need to go the "old school" route. I constantly forget how this stuff works, so I collected the most important commands (and what they do) here for easy copy & paste.
| $EC2SettingsFile="C:\\Program Files\\Amazon\\Ec2ConfigService\\Settings\\BundleConfig.xml" | |
| $xml = [xml](get-content $EC2SettingsFile) | |
| $xmlElement = $xml.get_DocumentElement() | |
| foreach ($element in $xmlElement.Property) | |
| { | |
| if ($element.Name -eq "AutoSysprep") | |
| { | |
| $element.Value="Yes" | |
| } |