aws_iam_user.es: Creating...
arn: "" => "<computed>"
name: "" => "srv_user1"
path: "" => "/"
unique_id: "" => "<computed>"
aws_iam_user.es: Creation complete
aws_iam_access_key.es: Creating...
secret: "" => "<computed>"
ses_smtp_password: "" => "<computed>"
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
public IEnumerator<T> ExecuteQuery(Expression expression) | |
{ | |
//intercept expression | |
var interceptedExpression = InterceptExpression(expression); | |
//execute query using underlying provider | |
var enumerator = _underlyingProvider.CreateQuery<T>(interceptedExpression).GetEnumerator(); | |
//is post processing hook specified? | |
if (this.AfterQueryExecutedHandler != null) |
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
public class LoggingMessageHandler : DelegatingHandler { | |
public LoggingMessageHandler(HttpMessageHandler innerHandler) : base(innerHandler) {} | |
protected override Task<HttpResponseMessage> SendAsync(HttpRequestMessage request, CancellationToken cancellationToken) { | |
Console.WriteLine(request.ToString()); | |
var task = base.SendAsync(request, cancellationToken); | |
task.ContinueWith(t => { | |
if (!t.IsFaulted) | |
Console.WriteLine(t.Result.ToString()); |
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
using System; | |
using System.Collections.Generic; | |
using System.Data.Services.Client; | |
using System.Threading.Tasks; | |
namespace DataServiceAsyncExtensions | |
{ | |
public static class DataServiceQueryExtensions | |
{ | |
public static Task<IEnumerable<T>> ExecuteAsync<T>(this DataServiceQuery<T> query, object state) |
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
sudo su - | |
crontab -e | |
0 1 * * * sudo shutdown -r now |
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: '2' | |
services: | |
service1: | |
build: . | |
image: service1:0.0.1 | |
ports: | |
- "80:3000" | |
environment: | |
FOO: bar |
# bucket
resource "aws_s3_bucket" "bucket" {
bucket = "${var.bucket}"
force_destroy = "true"
versioning {
enabled = "true"
}
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 ( | |
"bytes" | |
"encoding/json" | |
"io" | |
"net/http" | |
) | |
// Headers is a map of string to string where the key is the key for the header |
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
$ docker build -t vscode . | |
Sending build context to Docker daemon 12.42MB | |
Step 1/18 : FROM node:10.15.1 | |
10.15.1: Pulling from library/node | |
741437d97401: Pull complete | |
34d8874714d7: Pull complete | |
0a108aa26679: Pull complete | |
7f0334c36886: Pull complete | |
65c95cb8b3be: Pull complete | |
a36b708560f8: Pull complete |
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
FROM ubuntu:latest | |
RUN apt-get update && \ | |
apt-get install -y zsh git vim wget curl unzip gpg make gcc language-pack-en && \ | |
wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | zsh || true && \ | |
rm $HOME/.zshrc | |
WORKDIR /root | |
RUN curl -sfL https://raw.githubusercontent.com/jritsema/home/main/clone.sh | zsh |
OlderNewer