profile
viewpoint
If you are wondering where the data of this site comes from, please visit https://api.github.com/users/contrun/events. GitMemory does not store any data, but only uses NGINX to cache data for a period of time. The idea behind GitMemory is simply to give users a better reading experience.

contrun/akka 0

Build highly concurrent, distributed, and resilient message-driven applications on the JVM

contrun/ansible-inferno 0

Ansible role to install hosted Inferno OS.

contrun/authelia 0

The Single Sign-On Multi-Factor portal for web apps

contrun/bulletproofs 0

A pure-Rust implementation of Bulletproofs using Ristretto.

contrun/caddy-l4 0

Layer 4 (TCP/UDP) app for Caddy

contrun/chezmoi 0

Manage your dotfiles across multiple machines, securely.

contrun/circe-optics 0

Monocle lenses and other tools for working with JSON values

PR opened hashicorp/vault

remove trailing comma in json file
+1 -1

0 comment

1 changed file

pr created time in 2 hours

create barnchcontrun/vault

branch : fix-config.hcl.json

created branch time in 2 hours

fork contrun/vault

A tool for secrets management, encryption as a service, and privileged access management

https://www.vaultproject.io/

fork in 2 hours

starteddavidmalcolm/antipatterns.ko

started time in 12 hours

push eventcontrun/infra

YI

commit sha 4349245d288c0e409c631afb4f2015ace3b9c2d4

fix sftpgo cors and proxy protocol config, add traefik cors middleware

view details

push time in a day

push eventcontrun/infra

YI

commit sha 714166fa31872039dcba17dcac5a3ef6f83b5ebb

fix sftpgo cors and proxy protocol config, add traefik cors middleware

view details

push time in a day

PR opened rs/cors

add option to allow all methods

This PR add a wildcard option * to allow all methods specified in Access-Control-Request-Method. I was trying to access webdav files from organice. My preflight request is like this curl -vvvvvv -H 'Access-Control-Request-Method: PROPFIND' -H 'Access-Control-Request-Headers: authorization,depth' -H 'Origin: https://organice.200ok.ch' -X OPTIONS http://example.com. There is a few custom http verbs for webdav. I think it makes sense to allow all the http methods, so I added an option to allow all methods, just like the option to allow all http headers.

+13 -0

0 comment

1 changed file

pr created time in a day

create barnchcontrun/cors

branch : allowed-methods-all

created branch time in a day

fork contrun/cors

Go net/http configurable handler to handle CORS requests

fork in a day

push eventcontrun/keeweb-local-server

YI

commit sha 574d01dd94c41193d0f4cb48c1cea27553d48a5c

use a more tolerant config

view details

push time in a day

push eventcontrun/infra

YI

commit sha a21d04f4624b43795c94572bdea1bf8e1773f2ba

ignore zerotier network for syncthing

view details

push time in a day

Pull request review commentNixOS/nixpkgs

code-server: init code-server-module

+{ config, lib, pkgs, ... }:++with lib;+let++  cfg = config.services.code-server;+  defaultUser = "code-server";+  defaultGroup = defaultUser;++in {+  ###### interface+  options = {+    services.code-server = {+      enable = mkEnableOption "code-server";++      package = mkOption {+        default = pkgs.code-server;+        defaultText = "pkgs.code-server";+        description = "Which code-server derivation to use.";+        type = types.package;+      };++      extraPackages = mkOption {+        default = [ ];+        description = "Packages that are available in the PATH of code-server.";+        example = "[ pkgs.go ]";+        type = types.listOf types.package;+      };++      extraEnvironment = mkOption {+        type = types.attrsOf types.str;+        description =+          "Additional environment variables to passed to code-server.";+        default = { };+        example = { PKG_CONFIG_PATH = "/run/current-system/sw/lib/pkgconfig"; };+      };++      host = mkOption {+        default = "127.0.0.1";+        description = "The host-ip to bind to.";+        type = types.str;+      };++      port = mkOption {+        default = 4444;+        description = "The port where code-server runs.";+        type = types.port;+      };++      auth = mkOption {+        default = "password";+        description = "The type of authentication to use.";+        type = types.enum [ "none" "password" ];+      };++      hashedPassword = mkOption {+        default = "";+        description =+          "Create the password with: 'echo -n 'thisismypassword' | npx argon2-cli -e'.";+        type = types.str;+      };++      user = mkOption {+        default = defaultUser;+        example = "yourUser";+        description = ''+          The user to run code-server as.+          By default, a user named <literal>${defaultUser}</literal> will be created.+        '';+        type = types.str;+      };++      group = mkOption {+        default = defaultGroup;+        example = "yourGroup";+        description = ''+          The group to run code-server under.+          By default, a group named <literal>${defaultGroup}</literal> will be created.+        '';+        type = types.str;+      };++      extraGroups = mkOption {+        default = [ ];+        description =+          "An array of additional groups for the <literal>${defaultUser}</literal> user.";+        example = [ "docker" ];+        type = types.listOf types.str;+      };++    };+  };++  ###### implementation+  config = mkIf cfg.enable {+    systemd.services.code-server = {+      description = "VSCode server";+      wantedBy = [ "multi-user.target" ];+      after = [ "network-online.target" ];+      path = cfg.extraPackages;+      environment = {+        HASHED_PASSWORD = cfg.hashedPassword;+      } // cfg.extraEnvironment;+      serviceConfig = {+        ExecStart = "${cfg.package}/bin/code-server --disable-telemetry --bind-addr ${cfg.host}:${toString cfg.port} --auth ${cfg.auth}";

Please add an option to let users fill in extra arguments.

stackshadow

comment created time in a day

PullRequestReviewEvent

push eventcontrun/infra

YI

commit sha d8bb20ba35f7ead8816f415031ebc75142396227

add new syncthing device gcv

view details

push time in a day

push eventcontrun/infra

YI

commit sha f47b4265ef2d406619b036627617aa892d94fb95

sftpgo: add cors config and orgmode volume

view details

push time in a day

push eventcontrun/dotfiles

YI

commit sha aacc74d98c94e25025b22f2736af8c89f731d09d

update vscode server, add wstunnel for ssh hosts

view details

push time in a day

issue openedserokell/deploy-rs

wrong arguments given to ssh when some ssh argument specified in ssh-opts contains space

Running deploy --ssh-opts='-o ProxyCommand="wstunnel --upgradePathPrefix=simple-test -L stdio:%h:%p wss://wstunnel.example.com"' '.#test' passes ["-o", "ProxyCommand=\"wstunnel", "--upgradePathPrefix=simple-test", "-L", "stdio:%h:%p", "wss://wstunnel.example.com\""] to ssh.

The current implementation just splits spaces. https://github.com/serokell/deploy-rs/blob/e5546f9c2503c26d175f08a81fc0a0f330be4cbe/src/lib.rs#L418

Instead, we should do something like shlex.split. I expect the arguments given to ssh is ssh_opts = ['-o', 'ProxyCommand=wstunnel --upgradePathPrefix=simple-test -L stdio:%h:%p wss://wstunnel.example.com'] instead of ssh_opts = ["-o", "ProxyCommand=\"wstunnel", "--upgradePathPrefix=simple-test", "-L", "stdio:%h:%p", "wss://wstunnel.example.com\""].

This may be usefule. https://users.rust-lang.org/t/crate-for-splitting-a-string-like-bash/40062

created time in a day

delete branch contrun/infra

delete branch : tmp

delete time in 2 days

push eventcontrun/infra

YI

commit sha 361c91e7734245dc54599cfa066c960d94dc9538

change keeweb password

view details

YI

commit sha 88943a5b54a5eff4feae621473bc69335affcbb4

add sftpgo

view details

YI

commit sha 679a354c33c1d4694b494cb6434d8fcbcd11faa8

add filestash

view details

YI

commit sha 27221bb660537575727a4f0661dc04db7e3cbf0f

add sftpgo proxy protocol support

view details

push time in 2 days

push eventcontrun/infra

YI

commit sha c66ace745f7df33fbdc23df4a4052a2ca4335664

Revert "use master for nixpkgs" This reverts commit d0110d18c5394923849bef155ddc379b7b328d1f. Master branch takes a long time to build, revert for now.

view details

push time in 2 days

push eventcontrun/infra

YI

commit sha dffa8b2f11b278460eea3c04d82b070ef9698b1a

Revert "use master for nixpkgs" This reverts commit d0110d18c5394923849bef155ddc379b7b328d1f.

view details

push time in 2 days

push eventcontrun/infra

YI

commit sha b6431addfcd27da4c110d912d9f96a91988190f6

add sftpgo proxy protocol support

view details

push time in 2 days

push eventcontrun/infra

YI

commit sha f92a25ada3bc9c9c5e07be8a2fa86f9c8168f007

add filestash

view details

push time in 2 days

create barnchcontrun/infra

branch : tmp

created branch time in 2 days

startedsalesforce/Merlion

started time in 2 days

push eventcontrun/infra

YI

commit sha d0110d18c5394923849bef155ddc379b7b328d1f

use master for nixpkgs

view details

push time in 2 days

startedscaredos/cfresearch

started time in 2 days

push eventcontrun/infra

YI

commit sha e1ac7e11c8d92496841c6cdaee08972027f3c9c5

add nextcloud maintenance timer

view details

push time in 3 days

push eventcontrun/infra

YI

commit sha 71d8b07b8c03b50e03a4606ce5996097d8bf08ec

add nextcloud maintenance timer

view details

push time in 3 days

push eventcontrun/infra

YI

commit sha bd33c6d4d8d2afb080de782f86f8f900cf15421b

refactor nix users groups

view details

push time in 3 days