Skip to content

Instantly share code, notes, and snippets.

View mfilippov's full-sized avatar

Mikhail Filippov mfilippov

  • JetBrains
  • Yerevan
View GitHub Profile
import java.util.Scanner;
public class Program
{
public static void Menu(String[] args)
{
Scanner in = new Scanner(System.in);
System.out.println("Welcome");
while(true) {
System.out.print("Please enter you ZIP(quit for exit):");
@mfilippov
mfilippov / gist:2031049
Created March 13, 2012 19:37
Postal code checker.
import java.util.regex.Matcher;
import java.util.regex.Pattern;
public class Program
{
public String test(String postalCode)
{
Pattern nan = Pattern.compile("\\d[A-Z]\\d");
Pattern ana = Pattern.compile("[A-Z]\\d[A-Z]");
Matcher mNan = nan.matcher(postalCode);
@mfilippov
mfilippov / gist:10009192
Last active July 11, 2024 12:38
Netty multicast demo.
package me.filippov.netty_demo;
import io.netty.bootstrap.Bootstrap;
import io.netty.bootstrap.ChannelFactory;
import io.netty.channel.*;
import io.netty.channel.nio.NioEventLoopGroup;
import io.netty.channel.socket.DatagramPacket;
import io.netty.channel.socket.InternetProtocolFamily;
import io.netty.channel.socket.nio.NioDatagramChannel;
Set-ExplorerOptions -showHidenFilesFoldersDrives -showProtectedOSFiles -showFileExtensions
Enable-RemoteDesktop
cinst 1password
cinst 7zip
cinst 7zip.install
cinst AdobeAIR
cinst adobereader
cinst Atom
cinst markdownpad2
@mfilippov
mfilippov / Readme.md
Last active August 29, 2015 14:19 — forked from killercup/Readme.md
@mfilippov
mfilippov / gist:144981275f8ba3dde9d7
Last active September 2, 2015 20:52 — forked from saetia/gist:1623487
Clean Install – OS X 10.11 El Capitan Developer Preview 2

OS X Preferences


most of these require logout/restart to take effect

# Enable character repeat on keydown
defaults write -g ApplePressAndHoldEnabled -bool false

# Set a shorter Delay until key repeat
@mfilippov
mfilippov / fix_openssl_catalina.sh
Created November 27, 2019 20:53 — forked from llbbl/fix_openssl_catalina.sh
fix missing openssl files in catalina
#!/bin/bash
echo 'update brew'
brew update
echo 'upgrade brew'
brew upgrade

Forward GnuPG agent from macOS to Linux

On the remote machine

Run gpg once as your to create the directory structure

gpg --list-keys

For headless systemd based hosts

@mfilippov
mfilippov / ca.md
Created March 7, 2023 12:06 — forked from soarez/ca.md
How to setup your own CA with OpenSSL

How to setup your own CA with OpenSSL

For educational reasons I've decided to create my own CA. Here is what I learned.

First things first

Lets get some context first.