This file contains 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
#!/bin/bash | |
# This script searchs for all hosts which has an specific port (default 3389 ) | |
# open. | |
# | |
declare network port='3389' user pw | |
declare ips wrong_usage e_wrong_usage=1 |
This file contains 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
#!/bin/bash | |
# ~/bin/connect-rdp or /usr/local/bin/connect-rdp | |
# or ~/bin/connect-rdp.bash or /usr/local/bin/connect-rdp.bash | |
# | |
# | |
# this script should (when completly written) | |
# - connect with the xfreerdp tool to hosts | |
# - get settings from global config file | |
# - get credentials from a domain specific config file or ask for it. | |
# - usable with out many or complicated options. |
This file contains 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
#!/bin/bash | |
# this script should (when completly written) | |
# - list hosts | |
# - provide some information about hosts | |
# - connect to hosts | |
# - get credentials from config file | |
# - get information about hosts from a provided textfile | |
# config file has to have 3 lines, lines beginning with '#' are ignored. |
This file contains 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
#!/bin/bash | |
declare -A data | |
data[host]='' | |
data[port]='' | |
data[user]='' | |
data[pw]='' | |
data[domain]='' | |
function usage { |
This file contains 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
#!/bin/bash | |
declare -A data | |
data[host]='' | |
data[port]='' | |
data[user]='' | |
data[pw]='' | |
data[domain]='' | |
function usage { |
This file contains 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
root@chat-00:/home/weechat$ pip install --upgrade --user python-potr | |
Downloading/unpacking python-potr | |
Downloading python-potr-1.0.1.zip | |
Running setup.py (path:/tmp/pip-build-Wh4eCK/python-potr/setup.py) egg_info for package python-potr | |
Downloading/unpacking pycrypto>=2.1 (from python-potr) | |
Downloading pycrypto-2.6.1.tar.gz (446kB): 446kB downloaded | |
Running setup.py (path:/tmp/pip-build-Wh4eCK/pycrypto/setup.py) egg_info for package pycrypto | |
Installing collected packages: python-potr, pycrypto |
This file contains 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
16:49 python: stdout/stderr: Traceback (most recent call last): | |
16:49 python: stdout/stderr: File "/home/weechat/.weechat/python/autoload/otr.py", line 127, in <module> | |
16:49 python: stdout/stderr: import potr | |
16:49 python: stdout/stderr: ImportError: No module named potr | |
16:49 =!= python: unable to parse file "/home/weechat/.weechat/python/autoload/otr.py" |
This file contains 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
require 'zabbixapi' | |
require 'json' | |
require 'yaml' | |
require 'nokogiri' | |
require 'fileutils' | |
class ZabbixSync < ZabbixApi | |
This file contains 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
require 'zabbixapi' | |
require 'json' | |
require 'yaml' | |
require 'nokogiri' | |
require 'fileutils' | |
class ZabbixSync < ZabbixApi | |