This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/ruby | |
require 'rubygems' | |
require 'net/ssh' | |
class Remote | |
attr_accessor :hostfile, :user, :pass, :commands | |
def initialize(hostfile,user, pass, commands) | |
@hostfile = hostfile | |
@user = user |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
import paramiko | |
import getpass | |
class Remote(): | |
def __init__(self, hostfile, username, commands): | |
self.hostfile = hostfile | |
self.username = username |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/jython | |
from java.awt.event import ActionListener | |
from java.awt import * | |
from java.lang import Runnable | |
from javax.swing import * | |
import os | |
class mainWindow(Runnable): | |
def __init__(self): | |
self.frame = JFrame("Tools", defaultCloseOperation = JFrame.EXIT_ON_CLOSE) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/jython | |
import javax.swing as swing | |
from java.awt import BorderLayout, GridLayout | |
import java | |
import os | |
class jGUI(swing.JFrame): | |
def __init__(self): | |
swing.JFrame.__init__(self, title="Server Specs", size=(350, 400), defaultCloseOperation = swing.JFrame.EXIT_ON_CLOSE) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import os | |
def main(): | |
command = "cat foo.txt| rev | cut -d\. -f1,2 | rev | sort | uniq -c" | |
print("________________________Results_____________________________") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/ruby | |
require 'rubygems' | |
require 'pty' | |
require 'expect' | |
require 'highline/import' | |
module SSHKeyUtil | |
$expect_verbose = true | |
$VERBOSE=true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/ruby2.0 -v | |
require 'rubygems' | |
require 'pty' | |
require 'expect' | |
require 'highline/import' | |
$expect_verbose = true #To see the output of the session | |
#VERBOSE=nil | |
def create_key |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
import time | |
import pexpect | |
import getpass | |
def create_key(): | |
gen = pexpect.spawn('ssh-keygen -t rsa', timeout=None) | |
gen.expect('Enter file in') | |
gen.sendline('') | |
gen.expect('Enter passphrase') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
# <nbformat>3.0</nbformat> | |
# <codecell> | |
from httplib import HTTPConnection | |
import time | |
import re | |
import random |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
# <nbformat>3.0</nbformat> | |
# <codecell> | |
from httplib import HTTPConnection | |
import time | |
import re |
OlderNewer