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
#!/usr/bin/env bash | |
if [ -z "$1" ]; then | |
echo "Missing product name" | |
exit -1 | |
fi | |
if [ -z "$2" ]; then | |
echo "Missing service name" | |
exit -1 |
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
package main | |
import ( | |
"os" | |
"sigs.k8s.io/kustomize/api/krusty" | |
"sigs.k8s.io/kustomize/kyaml/filesys" | |
"sigs.k8s.io/kustomize/kyaml/fn/framework" | |
"sigs.k8s.io/kustomize/kyaml/fn/framework/command" | |
"sigs.k8s.io/kustomize/kyaml/kio" |
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
package main | |
import ( | |
"os" | |
"sigs.k8s.io/kustomize/api/krusty" | |
"sigs.k8s.io/kustomize/kyaml/filesys" | |
"sigs.k8s.io/kustomize/kyaml/fn/framework" | |
"sigs.k8s.io/kustomize/kyaml/fn/framework/command" | |
"sigs.k8s.io/kustomize/kyaml/kio" |
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
#!/usr/bin/env bash | |
set -e | |
gdisk /dev/sda <<'EOF' | |
o | |
y | |
n | |
1 | |
2048 |
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
#!/usr/bin/env bash | |
set -e | |
gdisk /dev/sda <<'EOF' | |
o | |
y | |
n | |
1 | |
2048 |
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
{-# START_FILE Procfile #-} | |
worker: worker | |
{-# START_FILE main.hs #-} | |
import Control.Concurrent | |
import Control.Monad | |
import System.IO | |
main :: IO () | |
main = do |
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
#!/usr/bin/env stack | |
-- stack runghc --package basic-prelude --package turtle | |
{-# LANGUAGE NoImplicitPrelude #-} | |
{-# LANGUAGE OverloadedStrings #-} | |
import BasicPrelude hiding (empty) | |
import Turtle | |
process :: MonadIO m => Text -> [Text] -> Shell Text -> m Text |
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
// Compiles with gcc -O0 sdiff_empty.c | |
// After running your sdiff function once, it will run | |
// a second time on canned data and compare your results with | |
// known outputs. | |
#include <stdint.h> | |
#include <stdbool.h> | |
#include <string.h> | |
#include <stdio.h> | |
#include <inttypes.h> |
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
#!/usr/bin/env bash | |
set -e | |
function get-stream-arn () { | |
aws dynamodbstreams list-streams \ | |
--table "$1" \ | |
--output json \ | |
| jq -r ".Streams[0].StreamArn" | |
} |
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
yo do | |
https://gist.github.com/56dae8a3a5b14f6176e2gis |
NewerOlder