Skip to content

Instantly share code, notes, and snippets.

        self.auth_token = auth_token                                                                                                                                                                                                                                           
        self.user_name = user_name                                                                                                                                                                                                                                             
        self.project_name = project_name                                                                                                                                                                                                                                       
        self.domain_name = domain_name                                                                                                                                                                       
@gcla
gcla / tm.sh
Created June 16, 2019 20:19
tm.sh
#!/usr/bin/env bash
PANE="$1"
shift
tmux select-pane -t $PANE
"$@"
tmux select-pane -t $TMUX_PANE
@gcla
gcla / gowidimages
Created June 16, 2019 20:17
placeholder for gowid images
Placeholder
@gcla
gcla / gowidtty.patch
Created June 16, 2019 19:38
Run gowid applications in a different tty
diff --git a/tscreen_linux.go b/tscreen_linux.go
index 79602f4..6514956 100644
--- a/tscreen_linux.go
+++ b/tscreen_linux.go
@@ -33,10 +33,19 @@ func (t *tScreen) termioInit() error {
var ioc uintptr
t.tiosp = &termiosPrivate{}
- if t.in, e = os.OpenFile("/dev/tty", os.O_RDONLY, 0); e != nil {
+ intty := "/dev/tty"
@gcla
gcla / termshark.rb
Created May 26, 2019 22:03
experimental homebrew formula for termshark
class Termshark < Formula
desc "Terminal UI for tshark, inspired by Wireshark"
homepage "https://termshark.io"
url "https://github.com/gcla/termshark/archive/v1.0.0.tar.gz"
sha256 "669bba0e8dd7df54ade6321a5c7d2ec20563ffd777f7b3b0394a11f88da64698"
depends_on "go" => :build
depends_on "socat" => :test
depends_on "wireshark"
@gcla
gcla / # wireshark - 2019-05-25_15-18-40.txt
Created May 25, 2019 19:22
wireshark on Ubuntu 18.04.2 LTS - Homebrew build logs
Homebrew build logs for wireshark on Ubuntu 18.04.2 LTS
Build date: 2019-05-25 15:18:40
@gcla
gcla / # wireshark - 2019-05-24_22-24-59.txt
Created May 25, 2019 14:32
wireshark on Ubuntu 18.04.2 LTS - Homebrew build logs
Homebrew build logs for wireshark on Ubuntu 18.04.2 LTS
Build date: 2019-05-24 22:24:59
@gcla
gcla / # glib - 2019-05-24_18-59-53.txt
Created May 25, 2019 00:46
glib on Ubuntu 18.04.2 LTS - Homebrew build logs
Homebrew build logs for glib on Ubuntu 18.04.2 LTS
Build date: 2019-05-24 18:59:53
@gcla
gcla / # glib - 2019-05-24_18-36-40.txt
Created May 24, 2019 22:43
glib on Ubuntu 18.04.2 LTS - Homebrew build logs
Homebrew build logs for glib on Ubuntu 18.04.2 LTS
Build date: 2019-05-24 18:36:40
@gcla
gcla / # wireshark - 2019-05-24_17-45-45.txt
Created May 24, 2019 22:21
wireshark on Ubuntu 18.04.2 LTS - Homebrew build logs
Homebrew build logs for wireshark on Ubuntu 18.04.2 LTS
Build date: 2019-05-24 17:45:45