Flag | What | Example |
---|---|---|
-s | size | |
-c | code | |
-f | format | |
-v | verbosity | |
-r | framerate |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# The MIT License | |
# SPDX short identifier: MIT | |
# Further resources on the MIT License | |
# Copyright 2017 Denis Gladkikh (https://www.outcoldman.com/en/archive/2017/07/19/dbhist/) | |
# Permission is hereby granted, free of charge, to any person obtaining a copy | |
# of this software and associated documentation files (the "Software"), to deal | |
# in the Software without restriction, including without limitation the rights | |
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Source: https://gist.github.com/8adaf8fd6496bc99a466ba55834e1838 | |
############################################################### | |
# Metacontroller - Custom Kubernetes Controllers The Easy Way # | |
# https://youtu.be/3xkLYOpXy2U # | |
############################################################### | |
# Additional Info: | |
# - Metacontroller: https://metacontroller.github.io/metacontroller | |
# - DevOps MUST Build Internal Developer Platform (IDP): https://youtu.be/j5i00z3QXyU |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Repaus Media Server | |
# AzuraCast Docker Compose Configuration File | |
# Settings override | |
version: '2.2' | |
networks: | |
proxy: | |
external: |
Inside app.py
:
# Homepage: www.example.com
@route("/")
def homepage():
somevariable = "John"
return template("homepage.html", name=somevariable)
# About Us: www.example.com/about
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class InitialMigration < ActiveRecord::Migration[5.0] | |
def change | |
enable_extension "pgcrypto" unless extension_enabled?("pgcrypto") | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
def compute_collatz(number): | |
if number % 2 == 0: | |
return number / 2 | |
return (number * 3 + 1) / 2 | |
def main(): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Just learned that a `return` inside try-catch blocks does not prevent the execution of code found in a `finally` block. | |
// Case and point, the example below: | |
const help = ({ command, logger }) => { | |
try { | |
console.log("Trying..."); | |
if (!command) { | |
console.log("Missing command. Halting...") | |
return false; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Wraps database read query in an exception handler, | |
* which allows for a consistent return value even if an error occurs. | |
* | |
* @param {*} query | |
* @return {data} on success | |
* @return {[]} on error | |
*/ | |
const handleDatabaseRead = async (query) => { | |
try { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "3.3" | |
services: | |
################################################ | |
#### Traefik Proxy Setup ##### | |
############################################### | |
traefik: | |
image: traefik:v2.0 | |
restart: always |
NewerOlder