-
# ip link
-
# ip link set <network interface> up
# +--------- Minute (0-59) | Output Dumper: >/dev/null 2>&1 | |
# | +------- Hour (0-23) | Multiple Values Use Commas: 3,12,47 | |
# | | +----- Day Of Month (1-31) | Do every X intervals: */X -> Example: */15 * * * * Is every 15 minutes | |
# | | | +--- Month (1 -12) | Aliases: @reboot -> Run once at startup; @hourly -> 0 * * * *; | |
# | | | | +- Day Of Week (0-6) (Sunday = 0) | @daily -> 0 0 * * *; @weekly -> 0 0 * * 0; @monthly ->0 0 1 * *; | |
# | | | | | | @yearly -> 0 0 1 1 *; | |
# * * * * * COMMAND |
Community
Cheatsheets
- GenServer Cheatsheet by Benjamin Tan Wei Hao
Books
A port of a cheat sheet authored by Hafiz Ismail.
defmodule MyApp.Schema do
use Absinthe.Schema
FROM elixir:1.4.5 as asset-builder-mix-getter | |
ENV HOME=/opt/app | |
RUN mix do local.hex --force, local.rebar --force | |
# Cache elixir deps | |
COPY config/ $HOME/config/ | |
COPY mix.exs mix.lock $HOME/ | |
COPY apps/myproject_web/mix.exs $HOME/apps/myproject_web/ | |
COPY apps/myproject_web/config/ $HOME/apps/myproject_web/config/ |
#!/usr/bin/env bash | |
# SOURCE: https://eligiblestore.com/blog/2017/05/02/how-to-install-mosh-on-centos/ | |
# ensure running as root | |
if [[ "$(id -u)" != "0" ]]; then | |
exec sudo "$0" "$@" | |
fi | |
# install mosh | |
yum install -y epel-release |
Moved to Shopify/graphql-design-tutorial
Following steps work for F29 for F31 look here
cat /etc/redhat-release
Fedora release 29 (Twenty Nine)
If someone asked me the question "what layout should I use for my Go code repository?", I'd start by asking back "what are you building: an executable, or a library?"
Create a directory named however you want your final executable to be called (e.g. "mycommand"), change into that directory, and create the following files:
Caution Upgrading from Debian 12 to Debian 13 on machines with mdadm has intermittently failed for me; symptom is that grub EFI is not up to date and system boots into BIOS. Root cause under investigation; it might not be related to mdadm.
To start, read the official release notes.
If your install fits into "vanilla Debian plus maybe a handful of 3rd-party repos", then this guide for a simple upgrade to Debian 13 "trixie" from Debian 12 "bookworm" can be helpful. 3rd-party repos are handled with a find command.
Note upgrade is only supported from Debian 12 to Debian 13. If you are on Debian 11, upgrade to Debian 12 first. Then once on Debian 12, you can upgrade to Debian 13.