Setup
bin/kafka-topics.sh \
--zookeeper zookeeper.example.com:2181 \
--create \
REM use hub4com-2.1.0.0-386 | |
REM com0com setup: | |
REM | |
REM COM5 real device you want to "man in the middle" | |
REM virtual pair: COM6 CNCB2 | |
REM virtual pair: COM7 CNCB3 | |
REM | |
REM hook COM 5 to real device, hook COM6 to application, hook COM7 to monitoring app - eg.realterm | |
hub4com.exe --route=0:1,2 --route=1:0,2 COM5 \\.\CNCB2 \\.\\CNCB3 |
Format: [>9999999999]###\,###\,###"g "##"s "#0"c";[>9999999]###\,###"g "##"s "#0"c";#0"g "00"s "00"c"; | |
How it looks | |
0g 00s 00c | |
0g 00s 12c | |
0g 01s 23c | |
0g 12s 34c // Does not support hiding silver/copper | |
1g 23s 45c | |
12g 34s 56c | |
123g 45s 67c |
const buffer = require('buffer'); | |
const crypto = require('crypto'); | |
// Demo implementation of using `aes-256-gcm` with node.js's `crypto` lib. | |
const aes256gcm = (key) => { | |
const ALGO = 'aes-256-gcm'; | |
// encrypt returns base64-encoded ciphertext | |
const encrypt = (str) => { | |
// The `iv` for a given key must be globally unique to prevent |
cmake_minimum_required(VERSION 3.6) | |
project(php_driver) | |
set(CMAKE_C_STANDARD 90) | |
include_directories(/usr/local/include) | |
include_directories(${CMAKE_SOURCE_DIR}/ext) | |
include_directories(${CMAKE_SOURCE_DIR}/ext/src/Cassandra) | |
include_directories(${CMAKE_SOURCE_DIR}/ext/utils) | |
include_directories(/usr/local/include/php/) | |
include_directories(/usr/local/include/php/main/) | |
include_directories(/usr/local/include/php/Zend/) |
<?php namespace App\Providers; | |
use Elastica\Client; | |
use Illuminate\Support\ServiceProvider; | |
use Monolog\Formatter\LogstashFormatter; | |
use Monolog\Handler\ElasticSearchHandler; | |
class ElasticLoggingProvider extends ServiceProvider | |
{ |
#!/usr/bin/python | |
# Python port of keepass2john from the John the Ripper suite (http://www.openwall.com/john/) | |
# ./keepass2john.c was written by Dhiru Kholia <dhiru.kholia at gmail.com> in March of 2012 | |
# ./keepass2john.c was released under the GNU General Public License | |
# source keepass2john.c source code from: http://fossies.org/linux/john/src/keepass2john.c | |
# | |
# Python port by @harmj0y, GNU General Public License | |
# |
-- 1. Вывести список сотрудников, получающих заработную плату большую чем у непосредственного руководителя | |
SELECT * | |
FROM Employee AS employees, Employee AS chieves | |
WHERE chieves.id = employees.chief_id AND employees.salary > chieves.salary; | |
-- 2. Вывести список сотрудников, получающих максимальную заработную плату в своем отделе | |
SELECT * | |
FROM Employee AS employees | |
WHERE employees.salary = (SELECT MAX(salary) FROM Employee AS max WHERE max.department_id = employees.department_id); |
ssh-keygen -t rsa -b 4096 -m PEM -f jwtRS256.key | |
# Don't add passphrase | |
openssl rsa -in jwtRS256.key -pubout -outform PEM -out jwtRS256.key.pub | |
cat jwtRS256.key | |
cat jwtRS256.key.pub |
<?php | |
abstract class AbstractEntity extends AbstractValueObject | |
{ | |
/** | |
* Offset Set | |
* | |
* @param mixed $offset | |
* @param mixed $value | |
* |