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
--- default.yaml 2022-01-24 15:12:57.000000000 +0100 | |
+++ default.aarch64.yaml 2022-01-24 15:13:39.000000000 +0100 | |
@@ -110,6 +110,9 @@ | |
else | |
echo "Docker already installed" | |
fi | |
+ # Add aarch64 support | |
+ systemctl start containerd | |
+ nerdctl run --privileged --rm tonistiigi/binfmt --install all | |
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
# ===================================================================== # | |
# BASIC CONFIGURATION | |
# ===================================================================== # | |
# Arch: "default", "x86_64", "aarch64". | |
# "default" corresponds to the host architecture. | |
arch: "default" | |
# An image must support systemd and cloud-init. | |
# Ubuntu and Fedora are known to work. |
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
# _ ______ ____ __ _______ ____ ___ ____________ | |
# | | / / __ \/ __ \/ //_/ ___// __ \/ | / ____/ ____/ | |
# | | /| / / / / / /_/ / ,< \__ \/ /_/ / /| |/ / / __/ | |
# | |/ |/ / /_/ / _, _/ /| |___/ / ____/ ___ / /___/ /___ | |
# |__/|__/\____/_/ |_/_/ |_/____/_/ /_/ |_\____/_____/ | |
# | |
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_file") | |
http_file( | |
name = "kubectl", |
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
load("@io_bazel_rules_docker//container:container.bzl", "container_push") | |
def push_multiple_containers(registry, tag, images, visibility = ["//visibility:public"], **kwargs): | |
[container_push( | |
name = "push_" + image.get("name"), | |
image = image.get("image"), | |
format = "Docker", | |
registry = registry, | |
repository = image.get("repository"), | |
tag = tag |
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
Restart-Service LxssManager | |
Restart-Service -Force -Name hns | |
Restart-NetAdapter -Name "vEthernet (WSL)" | |
net stop winnat | |
net start winnat | |
Restart-Service -Force -Name hns |
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
Optimize-VHD -Path %LOCALAPPDATA%\Docker\wsl\data\ext4.vhdx -Mode Full |
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
# `services` is a directory with application services that are packages as docker containers. | |
# It has source codes as well as BUILD.bazel files that define container images for each service. | |
# We ask git to give us a list of changed files in services directory which is then piped into | |
# bazel query comand that will give you all container image targets that should be rebuild. | |
git diff --name-only services ${PREVIOUS_REVISION} | xargs -I{dep} bazel query 'kind("_app_layer", rdeps(//services, {dep}))' | |
# building changed packages | |
bazelisk build `git diff --name-only ${PREVIOUS_REVISION} | xargs -I{dep} -P8 bazelisk query 'rdeps(//..., {dep})' --output package` | |
# publishing docker container image with current revision |
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
k;double sin() | |
,cos();main(){float A= | |
0,B=0,i,j,z[1760];char b[ | |
1760];printf("\x1b[2J");for(;; | |
){memset(b,32,1760);memset(z,0,7040) | |
;for(j=0;6.28>j;j+=0.07)for(i=0;6.28 | |
>i;i+=0.02){float c=sin(i),d=cos(j),e= | |
sin(A),f=sin(j),g=cos(A),h=d+2,D=1/(c* | |
h*e+f*g+5),l=cos (i),m=cos(B),n=s\ | |
in(B),t=c*h*g-f* e;int x=40+30*D* |
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
--- a.yaml 2020-06-26 14:36:39.678864700 +0400 | |
+++ b.yaml 2020-06-26 14:34:38.222195787 +0400 | |
@@ -321,6 +321,12 @@ | |
# Mail Server # | |
############### | |
+ # Set the default socket timeout to a value that prevents connections | |
+ # to our SMTP server from timing out, due to sendmail's greeting pause | |
+ # feature. | |
+ import socket |
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
SEMREL_PATH?=~/.local/bin/semantic-release | |
release: sr-install | |
$(SEMREL_PATH) release | |
sr-install: | |
[ -f ${SEMREL_PATH} ] || ./install-semantic-release.sh ${SEMREL_PATH} |
NewerOlder