Skip to content

Instantly share code, notes, and snippets.

Avatar

Mohamed Bana mbana

View GitHub Profile
View setup-fedora-workstation-34.sh
#!/usr/bin/env bash
# References:
#
# * <https://github.com/smvarela/fedora-postinstall>.
# * <https://mutschler.eu/linux/install-guides/fedora-post-install/>.
# * <https://docs.fedoraproject.org/en-US/fedora/f34/system-administrators-guide/basic-system-configuration/System_Locale_and_Keyboard_Configuration/>.
# * <https://docs.fedoraproject.org/en-US/fedora/f34/system-administrators-guide/kernel-module-driver-configuration/Working_with_the_GRUB_2_Boot_Loader/>.
# * <https://docs.fedoraproject.org/en-US/fedora/f34/system-administrators-guide/kernel-module-driver-configuration/Working_with_Kernel_Modules/>.
# * <https://wiki.archlinux.org/index.php/silent_boot>.
# * <https://rpmfusion.org/Howto/NVIDIA>.
View gist:4b8447b85aaefc51142dd09da390d047
langserver: websocket listening on: :4389
langserver-go: wsConn upgrading - w: 0xc42007bba0, r: 0xc4201060f0
langserver: wsConn: 0xc420095680 - upgraded - w: 0xc42007bba0, r: 0xc4201060f0
langserver: wsConn: 0xc420095680 - NextReader - reader: 0xc42007bbf0, messageType: 1
langserver: wsConn: 0xc420095680 - NextWriter - writer: 0xc42007bc10
langserver-go: NewConn - ctx: 0xc42007bc20 conn: 0xc42007bc30, h: 0xc42007bc40
langserver-go: readMessages - ctx: 0xc42007bc70, r: 0xc420076ba0
'angserver-go: readHeaderContentLength - r: 0xc420076ba0, line: 'Content-Length: 188
langserver-go: readHeaderContentLength - line: 188, n: 188 err: <nil>
'angserver-go: readHeaderContentLength - r: 0xc420076ba0, line: '
View gist:cd35257d0dfe608b6b9a555c26b18288
[Mohameds-MacBook-Pro:go-langserver mbana$ ./scripts/run.sh
+ cd langserver/cmd/langserver-antha
+ go build -race -v .
github.com/sourcegraph/go-langserver/langserver/cmd/langserver-antha
+ go install -race -v .
+ go run -race ./langserver-go.go -trace -mode ws
langserver-go: websocket listening on :4389
langserver-go: wsConn upgrading - w: 0xc420013ca0, r: 0xc4200c40f0
langserver-go: wsConn: 0xc42006d680 - upgraded - w: 0xc420013ca0, r: 0xc4200c40f0
langserver-go: wsConn: 0xc42006d680 - NextReader - reader: 0xc420013cf0, messageType: 1
View gist:a7acf0ab65ec7bdb753239ac47860849
[Mohameds-MacBook-Pro:go-langserver mbana$ npm run compile && PORT_WEBSOCKET=4389 node ./tests/js/out/main
> go-langserver@1.0.0 compile /Users/mbana/go/src/github.com/sourcegraph/go-langserver
> tsc -p ./tests/js
connect.js
PORT_WEBSOCKET 4389
Running tests
connect.js
View gist:8148992
mbana@mbana-PC ~/dev/projects/cartrader/web $ sudo npm install -g yo
[sudo] password for mbana:
npm http GET https://registry.npmjs.org/yo
npm http 200 https://registry.npmjs.org/yo
npm http GET https://registry.npmjs.org/yo/-/yo-1.0.7-pre.2.tgz
npm http 200 https://registry.npmjs.org/yo/-/yo-1.0.7-pre.2.tgz
npm http GET https://registry.npmjs.org/yeoman-generator
npm http GET https://registry.npmjs.org/nopt
npm http GET https://registry.npmjs.org/lodash
View gist:8148615
mbana@mbana-PC ~/dev/projects/cartrader $ rm -fr web && mkdir web && cd web
mbana@mbana-PC ~/dev/projects/cartrader/web $ sudo npm install -g generator-angular
npm http GET https://registry.npmjs.org/generator-angular
npm http 304 https://registry.npmjs.org/generator-angular
npm http GET https://registry.npmjs.org/chalk
npm http GET https://registry.npmjs.org/yeoman-generator
npm http GET https://registry.npmjs.org/wiredep
npm http 304 https://registry.npmjs.org/yeoman-generator
npm http 304 https://registry.npmjs.org/chalk