Skip to content

Instantly share code, notes, and snippets.

View mishudark's full-sized avatar
:octocat:
Rocking

mishudark mishudark

:octocat:
Rocking
View GitHub Profile
#!/usr/bin/env bash
set -Eeuo pipefail
cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1
trap cleanup SIGINT SIGTERM ERR EXIT
usage() {
cat <<EOF
scripts/sdk/bazel/generate.py --archive out/default/sdk/archive/core.tar.gz --output my_workspace --tests my_test_workspace && my_test_workspace/run.py
package httputil
import (
"context"
"net/http"
"encoding/json"
)
// RequestFunc may take information from an HTTP request and put it into a
// request context. In Servers, RequestFuncs are executed prior to invoking the
@mishudark
mishudark / init.vim
Created February 12, 2020 11:32
$HOME/.config/nvim/init.vim
" vim:foldmethod=marker:foldlevel=0
" zo + zc to open / close folds in case I forgot :P
if (!isdirectory(expand("$HOME/.config/nvim/repos/github.com/Shougo/dein.vim")))
call system(expand("mkdir -p $HOME/.config/nvim/repos/github.com"))
call system(expand("git clone https://github.com/Shougo/dein.vim $HOME/.config/nvim/repos/github.com/Shougo/dein.vim"))
endif
" DEIN {{{
set runtimepath+=~/.config/nvim/repos/github.com/Shougo/dein.vim/
call dein#begin(expand('~/.config/nvim'))
#!/usr/bin/env python3
#
# Copyright 2018 The Bazel Authors. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
[user]
email = mishu.drk@gmail.com
name = mishudark
[push]
default = current
[merge]
conflictstyle = diff3
@mishudark
mishudark / startup-tech.md
Last active December 9, 2021 18:07
general ideas of a stack inside of a startup with remote machines

General idea

  • gerrit(k8s) - linked to github repo - partial clone activated
  • bazel remote cache(k8s)
  • bazel Remote Build API on VM (no containers until it is not an issue for bazel runner)
  • drone master(k8s)
  • drone worker(physical)
  • developers working on remote workstation only (except for mobile apps)

Build agent container/machine(agent)

This container/machine is used as a proxy to invoke Bazel to run jobs using Remote Build API, the advantage

Dark theme

nvim ~/.config/gtk-4.0/settings.ini

[Settings]
gtk-application-prefer-dark-theme=1

Set elementary-X theme

# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running ‘nixos-help’).
{ config, pkgs, ... }:
{
imports =
[ # Include the results of the hardware scan.
./hardware-configuration.nix
@mishudark
mishudark / README-Template.md
Created July 21, 2019 08:36 — forked from ramantehlan/README-Fancy.md
README template I use for most of my projects.

Introduction

  • Add your project logo.
  • Write a short introduction to the project.
  • If you are using badges, add them here.

📒 Index