Skip to content

Instantly share code, notes, and snippets.

@jabb3rd
jabb3rd / keybase.md
Last active August 29, 2015 14:13
keybase.md

Keybase proof

I hereby claim:

  • I am jabberd on github.
  • I am jabberd (https://keybase.io/jabberd) on keybase.
  • I have a public key whose fingerprint is EC32 8333 C8DD A991 C9DC DEE1 F337 A17B D2B3 0C61

To claim this, I am signing this object:

@jabb3rd
jabb3rd / scan.ps1
Created January 24, 2015 00:41
Get list of files and directories of current logged on user on each machine from scan.list
function get-loggedonusers
{
param([Array]$Computer)
$computers = get-wmiobject Win32_Computersystem -computername $Computer
$report = @()
foreach ($c in $computers) {
$temp = "" | Select Computer, Username
$temp.Computer = $c.name
$temp.Username = $c.username
$report += $temp
@jabb3rd
jabb3rd / mikrotik-bittwiste
Last active December 10, 2019 21:50 — forked from anonymous/mikrotik-bittwiste
Convert tcpdump from MikroTik wireless sniffer into airodump-ng friendly format (remove TZSP headers)
1. Set up streaming server:
/interface wireless sniffer set streaming-server=X.X.X.X
/interface wireless sniffer set streaming-enabled=yes
/interface wireless sniffer set multiple-channels=yes
2. Set up scan list or specific channel(s) (frequencies in MHz):
/interface wireless set scan-list=default
3. Start up the sniffer:
/interface wireless sniffer sniff interface=wlan1
@jabb3rd
jabb3rd / TrueImages.pm
Created October 11, 2015 12:36
Shutter plugin for uploading images to trueimages.ru
#! /usr/bin/env perl
###################################################
#
# Copyleft (C) 2014 @jabberd
#
# This file is part of Shutter.
#
# Shutter is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
@jabb3rd
jabb3rd / synology-pushall.php
Created November 1, 2015 11:44
PushAll.Ru support for Synology DSM
<?php
echo time();
if ($_SERVER['HTTP_HOST'] != 'localhost') {
die;
}
$options = array(
'type' => 'self',
'id' => isset($_GET['id']) ? $_GET['id'] : false,
'key' => isset($_GET['key']) ? $_GET['key'] : false,
@jabb3rd
jabb3rd / gist:abda2622c3e4ef77b19d
Created December 31, 2015 08:17
Mikrotik Proxy allow acess to Trello
add dst-host=d78fikflryjgj.cloudfront.net
add dst-host=trello.com
add dst-host=trello-avatars.s3.amazonaws.com
add dst-host=trello-attachments.s3.amazonaws.com
add dst-host=trello-backgrounds.s3.amazonaws.com
add dst-host=trello-logos.s3.amazonaws.com
add dst-host=pixel.quantserve.com
add src-address=<IP ADDRESS TO ALLOW>
add action=deny comment="Deny everything else"
@jabb3rd
jabb3rd / LogTrap-Parse
Last active December 16, 2023 10:00
Log parser for RouterOS
# tgSendMessage is set by tgSetEnvironment script which runs at startup by the scheduler,
# contains Telegram BotAPI string for sendMessage method.
:global tgSendMessage
:global tgID
# This is used to track already shown log entries
:global lastLogID
# Log buffer name
:local logName "LogTrap"
@jabb3rd
jabb3rd / tgAPI
Created February 24, 2017 05:13
Set global variables and functions for Telegram BotAPI
:global tgAPI "https://api.telegram.org/bot123456789:ABCDEF0123456789abcdef0123456789ABC"
:global tgID "123456"
# Telegram BotAPI sendMessage method
# Example: $tgSendMessage $chatid $text
:global tgSendMessage do={
:global tgAPI
:local url ($tgAPI . "/sendMessage\?chat_id=" . $1 . "&text=" . $2)
/tool fetch keep-result=no url="$url"
}
@jabb3rd
jabb3rd / rsc_read.py
Last active August 31, 2017 12:37
Read RouterOS .rsc file
#!/usr/bin/python
# -*- coding: utf-8 -*-
import sys
def read_config(filename):
config = None
try:
f = open(filename, 'r')
except:
@jabb3rd
jabb3rd / qwerty.py
Created December 8, 2017 00:14
Keyboard walker
#!/usr/bin/env python
layout = [
['1234567890-=', 'qwertyuiop[]', 'asdfghjkl;\'\\', 'zxcvbnm,./'],
['!@#$%^&*()_+', 'QWERTYUIOP{}', 'ASDFGHJKL:"|', 'ZXCVBNM<>?']
]
def get_char(xy, shift = 0):
x, y = xy;
return layout[shift][x][y]