Skip to content

Instantly share code, notes, and snippets.

Avatar

Jason Tennier jaytennier

View GitHub Profile
@jaytennier
jaytennier / test_ssh.cr
Created February 20, 2019 16:25
Testing SSH tailing in Crystal
View test_ssh.cr
require "ssh2"
SSH2::Session.open("192.168.1.11") do |session|
session.login("crystaltest", "dumbp455w0rd")
session.open_session do |channel|
channel.command("tail -f log.txt")
while (line = channel.read_line)
puts line
end
end
@jaytennier
jaytennier / keybase.md
Created January 11, 2019 14:54
keybase.md
View keybase.md

Keybase proof

I hereby claim:

  • I am jaytennier on github.
  • I am jaytennier (https://keybase.io/jaytennier) on keybase.
  • I have a public key ASALW6nV1xP9nqh0HCXIaIsFt3A1pHlWSuzRjoRKP2AMQwo

To claim this, I am signing this object:

View Removing private ruby gems
GEMS=`gem list --no-versions`
for x in $GEMS ; do sudo gem uninstall $x -i ~/.gem/ruby/1.8/; done