Skip to content

Instantly share code, notes, and snippets.

@ashutoshdtu
ashutoshdtu / install_linuxbrew_on_centos7.sh
Last active January 6, 2022 12:11 — forked from warking/install_linuxbrew_on_centos7.sh
standalone linuxbrew setup script for CentOS 7
# Non-root account is recommended for this process
# centos-specific prepration
sudo yum -y update && sudo yum -y groupinstall 'Development Tools' && sudo yum -y install curl irb m4 ruby
# Sanitize the environment
PATH=~/.linuxbrew/bin:/usr/local/bin:/usr/bin:/bin
unset LD_LIBRARY_PATH PKG_CONFIG_PATH
# install linuxbrew
{
"openapi": "3.0.0",
"info": {
"title": "BachatBaazi REST API",
"description": "HATEOAS compliant RESTful API for BachatBaazi",
"termsOfService": "https://bachatbaazi.com/termsandconditions",
"contact": {
"name": "BachatBaazi",
"url": "https://api.bachatbaazi.com/v1"
},
{
"openapi": "3.0.0",
"info": {
"title": "REST API Server",
"description": "REST APIs for Cloud Provisioning Assistant",
"termsOfService": "For demo purposes only. Use at your own risk",
"contact": {
"name": "Ashutosh Mishra",
"url": "https://ashutoshmishra.net"
},
@ashutoshdtu
ashutoshdtu / mosh-setup-guide.md
Created July 16, 2020 18:59 — forked from marcwjj/mosh-setup-guide.md
Step by step guide to setup mosh ssh client to Google Cloud VM instance

A beginner's guide to setup Mosh roaming terminal on Mac to access Google Cloud Compute Engine instance

Being new to training ML models using Google Cloud VM instances, I faced issues where my ssh connection to the cloud instance (using either the clound web-based ssh client or using cloud shell) would disconnect from time to time (for example when I power off my laptop or the network gets disconnected) which would terminate the model training process. Therefore I searched for a ssh client that can handle disconnection and can resume connection without disrupting the process running on the server and came across with Mosh mobile shell, a remote terminal app that supports roaming.

It took me a while to figure out how to set up a third party ssh terminal using the google cloud OAuth. Here's a step-by-step guide:

Update: a simpler alternative for persisting remote sessions

Since this writing, another Mosh user kindly advised me that using terminal multiplexer co

@ashutoshdtu
ashutoshdtu / cloudSettings
Last active June 25, 2020 16:57
Settings for code-server
{"lastUpload":"2020-06-25T16:57:19.888Z","extensionVersion":"v3.4.3"}
# Copyright 2017 The Kubernetes Authors.
#
# 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
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,