We need to generate secret key for development environment.
mix phoenix.gen.secret
# ednkXywWll1d2svDEpbA39R5kfkc9l96j0+u7A8MgKM+pbwbeDsuYB8MP2WUW1hfLet's generate User model and controller.
| class Goon < Formula | |
| desc "Goon Driver for Elixir Porcelain Library" | |
| homepage "https://github.com/alco/goon" | |
| url "https://github.com/alco/goon.git", :tag => "v1.1.1", :revision => "756deaad8465c4326841d8b8cbd194f724be6160" | |
| head "https://github.com/alco/goon.git" | |
| depends_on "go" => :build | |
| def install | |
| ENV["GOPATH"] = buildpath |
git checkout --orphan future-master
git add -A # Add all files and commit them
git commit
git branch -D master # Deletes the master branch
git branch -m master # Rename the current branch to master
git push -f origin master # Force push master branch to github
git gc --aggressive --prune=all # remove the old files
| // Here is an extremely simple version of work scheduling for multiple | |
| // processors. | |
| // | |
| // The Problem: | |
| // We have a lot of numbers that need to be math'ed. Doing this on one | |
| // CPU core is slow. We have 4 CPU cores. We would thus like to use those | |
| // cores to do math, because it will be a little less slow (ideally | |
| // 4 times faster actually). | |
| // | |
| // The Solution: |
| const buffer = require('buffer'); | |
| const crypto = require('crypto'); | |
| // Demo implementation of using `aes-256-gcm` with node.js's `crypto` lib. | |
| const aes256gcm = (key) => { | |
| const ALGO = 'aes-256-gcm'; | |
| // encrypt returns base64-encoded ciphertext | |
| const encrypt = (str) => { | |
| // The `iv` for a given key must be globally unique to prevent |
| tap "caskroom/cask" | |
| cask "google-chrome" | |
| cask "firefox" | |
| brew "chromedriver" | |
| brew "geckodriver" |
| # Install a fully encrypted ArchLinux on NVMe with detached LUKS | |
| # headers and LUKS encrypted UEFI boot partition on a USB dongle. | |
| # | |
| # Full tutorial can be found here: | |
| # https://headcrash.industries/reference/fully-encrypted-archlinux-with-secure-boot-on-yoga-920/ | |
| # | |
| # Written by Gerke Max Preussner <[email protected]> | |
| # Overview ############################################################ |
| 1. install postgres | |
| 2. run makedb.rb >tiles.csv | |
| 3. run tiles.sql | |
| 4. run archive.rb | |
| 5. enjoy |