Skip to content

Instantly share code, notes, and snippets.

View nod0n's full-sized avatar

Nodøn nod0n

  • Switzerland
View GitHub Profile
#!/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
#!/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.
#!/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.
#!/bin/bash
declare -A data
data[host]=''
data[port]=''
data[user]=''
data[pw]=''
data[domain]=''
function usage {
#!/bin/bash
declare -A data
data[host]=''
data[port]=''
data[user]=''
data[pw]=''
data[domain]=''
function usage {
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
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"
require 'zabbixapi'
require 'json'
require 'yaml'
require 'nokogiri'
require 'fileutils'
class ZabbixSync < ZabbixApi
@nod0n
nod0n / zabbixsync.rb
Last active September 29, 2015 10:26 — forked from anonymous/zabbixsync.rb
the complete class
require 'zabbixapi'
require 'json'
require 'yaml'
require 'nokogiri'
require 'fileutils'
class ZabbixSync < ZabbixApi