Skip to content

Instantly share code, notes, and snippets.

@zeropool
zeropool / x11_f0rwarding.sh
Created December 3, 2023 16:23 — forked from thomasgroch/x11_f0rwarding.sh
X11 Forwarding (to connect from macOS to Debian Linux)
# Connect from macOS to remote Linux server. For example to Debian or Ubuntu.
# Prepare remote server.
# Enable X11 Forwarding in SSH.
vim /etc/ssh/sshd_config
#X11Forwarding yes
#X11DisplayOffset 10
#X11UseLocalhost no
systemctl restart sshd
@zeropool
zeropool / main.go
Created March 20, 2023 03:28 — forked from sangupta/main.go
Parse Typescript code in Go lang using QuickJS. The idea is to re-use the original Typescript library than rolling out a parser of our own.
package main
import (
"errors"
"fmt"
"io/ioutil"
"time"
stdruntime "runtime"
@zeropool
zeropool / docker-install.sh
Created October 11, 2019 03:29
centos install docker
cat /etc/redhat-release
yum remove docker*
yum update -y
yum install -y yum-utils device-mapper-persistent-data lvm2
yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
yum install -y docker-ce
systemctl start docker
systemctl enable docker