Skip to content

Instantly share code, notes, and snippets.

View xSAVIKx's full-sized avatar
🇺🇦

Yurii Serhiichuk xSAVIKx

🇺🇦
View GitHub Profile
@xSAVIKx
xSAVIKx / logstash.xml
Last active January 15, 2017 20:10
Logstash IDEA configuration
<filetype binary="false" description="Logstash Config" name="Logstash Config">
<highlighting>
<options>
<option name="LINE_COMMENT" value="#" />
<option name="COMMENT_START" value="" />
<option name="COMMENT_END" value="" />
<option name="HEX_PREFIX" value="" />
<option name="NUM_POSTFIXES" value="" />
<option name="HAS_BRACES" value="true" />
<option name="HAS_BRACKETS" value="true" />
package school.lemon.changerequest.java.pr1.lesson;
import java.util.Arrays;
/**
* Created by User on 19.12.2016.
*/
public class Array {
private int[] array;
private int size;
@xSAVIKx
xSAVIKx / BarcodeGenerator.java
Created July 26, 2016 13:11
BarcodeGenerator
import javax.imageio.ImageIO;
import java.awt.*;
import java.awt.image.BufferedImage;
import java.awt.image.RenderedImage;
import java.io.File;
import java.io.IOException;
import java.util.HashMap;
public class BarcodeGenerator {
public static void main(String[] args) throws IOException {
@xSAVIKx
xSAVIKx / HttpsRequestPoster.java
Created April 28, 2016 13:04
Simple HTTPS POST request using raw JAVA for quering web-form
import javax.net.ssl.*;
import java.io.*;
import java.net.URL;
import java.net.URLConnection;
import java.net.URLEncoder;
import java.security.GeneralSecurityException;
import java.security.SecureRandom;
import java.security.cert.X509Certificate;
import java.util.HashMap;
import java.util.Map;
@xSAVIKx
xSAVIKx / Caesar cipher decryptor
Created April 21, 2015 20:16
Easy decryptor for Caesar cipher written in Python (maybe not the best variant, but the clearest one for me)
# coding=utf-8
__author__ = 'Iurii Sergiichuk'
# Text to decrypt
text = u"ТЙШЛЙРН ВЧУ ЭНЩХ ЫЙМЕХД? ЧУЗИЕ ИЙХЛН УЧЖЙЧ: ИЛШФЖ"
# Alphabet that encrypted message consists of (means, that in encrypted message only this letters can be encrypted)
ALPHABET = u'АБВГДЕЁЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ'
alphabet_len = len(ALPHABET)
letter_map = {}
@xSAVIKx
xSAVIKx / Rabbit.java
Last active August 28, 2024 23:59 — forked from Chase-san/Rabbit.java
package org.csdgn.crypt;
import java.util.Arrays;
/**
* Tested against the actual RFC.
*
* @author Chase (Robert Maupin)
* @see {@link http://tools.ietf.org/rfc/rfc4503.txt}
*/