A prompt to boost your lazy "do this" prompts. Install with one of the buttons below.
| package main | |
| import ( | |
| "crypto/sha256" | |
| "encoding/json" | |
| "fmt" | |
| "strconv" | |
| "strings" | |
| "time" | |
| ) |
| package main | |
| import ( | |
| "errors" | |
| "fmt" | |
| "github.com/streadway/amqp" | |
| "log" | |
| "math/rand" | |
| "strconv" | |
| ) |
| # ---- Base python ---- | |
| FROM python:3.6 AS base | |
| # Create app directory | |
| WORKDIR /app | |
| # ---- Dependencies ---- | |
| FROM base AS dependencies | |
| COPY gunicorn_app/requirements.txt ./ | |
| # install app dependencies | |
| RUN pip install -r requirements.txt |
| /** | |
| * Compile: | |
| * gcc -std=gnu11 -Wall -Wextra c_priority_queue_threads.c -o priority_queue_threads -lpthread -lrt | |
| */ | |
| #include <errno.h> | |
| #include <mqueue.h> | |
| #include <fcntl.h> /* For O_* constants. */ | |
| #include <sys/stat.h> /* For mode constants. */ |
| # This is something that I always forget and had a surprisingly hard time finding (or better yet, understanding). Here's the | |
| # scenario: a colleague creates a new kubernetes cluster, named" cluster-foo.example.com". You want to look at it (for | |
| # troubleshooting, updating the deployment, whatever). To get your kubectl installation to "see" the new cluster, take the | |
| # following steps: | |
| # ASSUMPTION: You have pointed kops to some location where the cluster configurations are stored | |
| # (I have this in my ~/.bash_profile): | |
| export KOPS_STATE_STORE=s3://example-state-store | |
| # Use kops to get the list of clusters |
| package main | |
| import ( | |
| "database/sql" | |
| "encoding/json" | |
| "fmt" | |
| "reflect" | |
| "time" | |
| "github.com/go-sql-driver/mysql" |
This article will briefly describe how to install SonarQube as Docker container on Amazon EC2 and integrate it with Jenkins.
Go to RDS > Parameter Groups
Create a new Parameter Group with the following parameter:
max_allowed_packet = 268435456
We need to create a new RDS database for SonarQube (you may use an existing MySQL instance)