Skip to content

Instantly share code, notes, and snippets.

View jreisinger's full-sized avatar
👋
hello friend

Jozef Reisinger jreisinger

👋
hello friend
View GitHub Profile
http://www.mp3.sk/drziak-do-auta-tab-2-pre-samsung-galaxy-tab-3-p-236447.html
http://www.mp3.sk/drziak-s-uchytenim-na-celne-sklo-a-hlavovu-oprieku-pre-samsung-galaxy-tab-3-p-236674.html
http://www.tabletstore.sk/doplnky-do-auta/samsung-drziak-do-auta-na-tablety-7--az-8-2-/
@jreisinger
jreisinger / recursion.pl
Last active February 5, 2016 08:08
Intermediate Perl (Alpaca Book), exercise 10.4
#/usr/bin/perl
use strict;
use warnings;
use 5.010;
my $path = shift // '.';
my $data = data_for_path($path);
#use Data::Dumper;
#print Dumper \$data;
#!/usr/bin/perl
use strict;
use warnings;
use 5.010;
use autodie;
use Getopt::Long;
use Pod::Usage;
use File::Copy;
# Command line options
@jreisinger
jreisinger / mask_data.pl
Last active June 10, 2017 12:52
Exercise for Danik
#!/usr/bin/env perl
use strict;
use warnings;
use Digest::SHA qw(sha1_hex);
use List::Util qw(shuffle);
while (<DATA>) { # loop over lines of __DATA__ below
chomp; # remove newline
my ( $num, $last, $first ) = split /;/;
https://sport.bazos.sk/inzerat/74073185/Bicykel-Dema-Alvito.php - 300
https://sport.bazos.sk/inzerat/73374506/FOCUS-Arriba-Disc-Tiagra-2016.php - 700
#!/usr/bin/perl
use v5.14;
use warnings;
my %funcs = (
suberr => sub { return },
subok => sub { return 1 },
);
for ( keys %funcs ) {
#!/usr/bin/env python3
import sys, os, subprocess
if len(sys.argv) != 2:
raise SystemExit("Usage: {} USB_MOUNT_POINT".format(sys.argv[0]))
usb_mount_point = sys.argv[1]
home = os.path.expanduser("~")
package main
import "fmt"
func main() {
// array of 5 elements
x := [5]float64{98, 93, 77, 82, 83}
var total float64 = 0
// we don't need array index -> _

https://justpaste.it/openslava

filebeat (collection - lightweight) -> kafka (buffer) -> logstash (collection) -> elasticsearch (storage) -> kibana (display)

Kafka

Start Kafka:

@jreisinger
jreisinger / pyargs.py
Created November 21, 2017 07:57
Parse command line arguments in Python using sys.argv
#!/usr/bin/env python3
import sys
import re
script = sys.argv.pop(0)
while sys.argv:
arg = sys.argv.pop(0)