Skip to content

Instantly share code, notes, and snippets.

View shubhang93's full-sized avatar

Shubhang Balkundi shubhang93

View GitHub Profile
@shubhang93
shubhang93 / unix-to-tcp.go
Created April 10, 2024 00:55 — forked from jpillora/unix-to-tcp.go
Forward unix socket to tcp socket
package main
import (
"io"
"log"
"net"
"os"
)
const (
@shubhang93
shubhang93 / nomad-job-parsing.go
Created July 2, 2022 16:32 — forked from ont/nomad-job-parsing.go
Example of parsing part of nomad's job hcl file.
package main
import (
"fmt"
hcl "github.com/hashicorp/hcl/v2"
"github.com/hashicorp/hcl/v2/hclsimple"
//"github.com/zclconf/go-cty/cty"
)
@shubhang93
shubhang93 / how-to-tmux-background-process.md
Created April 22, 2022 10:51 — forked from davydany/how-to-tmux-background-process.md
Using TMUX for running processes after you log off

How to Run a Process in the Background with TMUX

There are times when you need to log off your Linux Desktop, and you want a process to run in the background. TMUX manages this very well.

For this example, let's suppose you're running a long running task like running rspecs on your project and it is 5pm, and you need to go home.

Run Your Process

.paginator{
flex-direction:row;
flex:1
}
.button-active {
color:orange
}
.button-normal {
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<style id="jsbin-css">
.paginator{
flex-direction:row;
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<div id="root"></div>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<script id="jsbin-javascript">