Last active
June 11, 2020 17:48
-
-
Save waynr/a53b3f4ab3a80f76bea99c5ae705803d to your computer and use it in GitHub Desktop.
Revisions
-
waynr revised this gist
May 15, 2020 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -3,4 +3,4 @@ $ mv cgconfig.conf /etc/cgconfig.conf $ sed -i -e 's|UID|$(id -u)|' /etc/cgconfig.conf $ sudo cgconfigparser -l /etc/cgconfig.conf $ mv $GOPATH/bin/gopls $GOPATH/bin/gopls.real $ ln -sf /path/to/gopls.bash $GOPATH/bin/gopls -
waynr renamed this gist
May 15, 2020 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
waynr revised this gist
May 15, 2020 . 1 changed file with 1 addition and 0 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,3 +1,4 @@ $ sudo apt install cgroup-tools $ mv cgconfig.conf /etc/cgconfig.conf $ sed -i -e 's|UID|$(id -u)|' /etc/cgconfig.conf $ sudo cgconfigparser -l /etc/cgconfig.conf -
waynr created this gist
May 15, 2020 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,20 @@ group gotools { perm { admin { uid = UID; gid = UID; } task { uid = UID; gid = UID; } } cpu { cpu.shares = 256; } memory { # limit to 6GB memory.limit_in_bytes = 6442450944; } } ~ This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,5 @@ $ mv cgconfig.conf /etc/cgconfig.conf $ sed -i -e 's|UID|$(id -u)|' /etc/cgconfig.conf $ sudo cgconfigparser -l /etc/cgconfig.conf $ mv $GOPATH/bin/gopls $GOPATH/bin/gopls.real $ ln -sf /patch/to/gopls.bash $GOPATH/bin/gopls This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,5 @@ #!/bin/bash cgexec \ -g memory,cpu:gotools \ $GOPATH/bin/gopls.real "$@"