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
#!/bin/bash | |
# | |
# chkconfig: 235 10 90 | |
# description: TeamCity startup script | |
# | |
TEAMCITY_USER=teamcity | |
TEAMCITY_DIR=/home/teamcity/TeamCity/ | |
TEAMCITY_SERVER=bin/teamcity-server.sh |
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
# Build the $MODULE target (which produces a $MODULE binary) | |
FROM debian:latest as builder | |
ARG MODULE | |
COPY src/ . | |
RUN make ${MODULE} | |
# Build a minimal image containing the $MODULE binary | |
FROM alpine:latest as product |
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 | |
# | |
# Summary: | |
# Distributes updated x509 tls certs and resolves outdate cert problems which effectively kill your kube cluster | |
# ref: https://github.com/kubernetes-incubator/kube-aws/issues/1132 | |
# ref: https://github.com/kubernetes-incubator/kube-aws/issues/1057 | |
# | |
# NOTES: Ensure this is the correct process for your etcd2 kube cluster before using. | |
# Test on a dev/test cluster first. | |
# Use at own risk. |
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
#!/bin/bash | |
# | |
# Get all IPs from an autoscale group and update set the local ip as | |
# equal weight A entries (round robin dns). Takes autoscale group as | |
# parameter. | |
# | |
# Amit Bakshi | |
# 10/21/2014 | |
# |
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
input { | |
s3 { | |
bucket => "<CLOUDFRONT_LOG_BUCKET>" | |
prefix => "<CLOUDFRONT_LOG_KEY_PREFIX>" | |
region => "<BUCKET_REGION_NAME>" | |
} | |
} | |
filter { |
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-Module WebAdministration | |
# Get the latest certificate in store that applies to my site | |
$cert = (Get-ChildItem Cert:\LocalMachine\My | | |
Where-Object {$_.Subject.Contains('*.example.com')} | | |
Sort-Object -Descending {[System.DateTime]::Parse($_.GetExpirationDateString())} | | |
Select-Object -First 1) | |
Set-Location IIS:\Sites |
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
#!/bin/bash | |
#Author Jobin Joseph | |
#Blog : nixhive.com | |
#Bio : JobinJoseph.com | |
#Bitbucket credentials | |
bbuser='Username_here' | |
bbpass='password_here' | |
fname=`date +%F_%H_%M` |
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
'also see: https://gist.github.com/anonymous/573a875dac68a4af560d | |
Option Explicit | |
Dim intValid | |
Dim objMD5, objSHA256 | |
Dim strAlgorithm, strHash, strString | |
intValid = 0 |
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 general idea | |
ImageTag="git" | |
FilePath="/Dockerfile" | |
RepoURI="123456789012.dkr.ecr.eu-west-1.amazonaws.com/repo" | |
Stages=$(cat $FilePath | grep -oP '^FROM .+ (AS|as) \K(.+)$') | |
CacheArgs=$(for Stage in $Stages; do echo "--cache-from $RepoURI:cache-$Stage"; done | paste -sd ' ') | |
BuildArgs="--file $FilePath $CacheArgs" | |
for Stage in $Stages; do docker pull $RepoURI:cache-$Stage || true; done | |
for Stage in $Stages; do docker build $BuildArgs --tag $RepoURI:cache-$Stage --target $Stage . || break; done | |
docker build $BuildArgs --tag $RepoURI:$ImageTag . |
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
// Imprved the script from this blog https://www.grahn.io/posts/2020-02-08-s3-vs-b2-static-web-hosting/ | |
// Backblaze Url | |
const baseURL = "https://f000.backblazeb2.com/file/yourbucket" | |
addEventListener('fetch', event => { | |
event.respondWith(handleRequest(event)) | |
}) | |
async function handleRequest(event) { |
OlderNewer