Skip to content

Instantly share code, notes, and snippets.

View miklobit's full-sized avatar

MK miklobit

View GitHub Profile
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
import java.util.Scanner;
public class BCryptPasswordEncoderRun {
public static void main(String[] args) {
System.out.println("Generate BCrypt encoded string of a raw password.");
System.out.println("Enter raw password:");
Scanner s = new Scanner(System.in);
String rawPassword = s.nextLine();
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
import java.util.Scanner;
public class BCryptPasswordEncoderRun {
public static void main(String[] args) {
System.out.println("Generate BCrypt encoded string of a raw password.");
System.out.println("Enter raw password:");
Scanner s = new Scanner(System.in);
String rawPassword = s.nextLine();
to check if the server works - https://webrtc.github.io/samples/src/content/peerconnection/trickle-ice
stun:
stun.l.google.com:19302,
stun1.l.google.com:19302,
stun2.l.google.com:19302,
stun3.l.google.com:19302,
stun4.l.google.com:19302,
stun.ekiga.net,
stun.ideasip.com,
@miklobit
miklobit / 1. docker-compose.yml
Created November 12, 2020 12:20 — forked from Starttoaster/1. docker-compose.yml
Setting up Nextcloud behind Traefik in Docker
version: "2"
services:
# Reverse Proxy and Let's Encrypt
traefik:
container_name: traefik
image: traefik:alpine
restart: always
networks:
- srv
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@miklobit
miklobit / grapher.py
Created August 17, 2020 01:36 — forked from diegopenilla/grapher.py
2D/3D grapher
from IPython.core.display import display, HTML, Markdown, clear_output
import json
import numpy as np
import matplotlib.pyplot as plt
import ipywidgets as widgets
# Defining Widgets:
equation = widgets.Text(
value='np.sin(X*Y)+np.cos(X+Y)',
placeholder='Type something',
@miklobit
miklobit / widget_test.ipynb
Created August 17, 2020 01:19
Jupyter widget test
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@miklobit
miklobit / .gitconfig
Created July 15, 2020 11:34 — forked from pksunkara/config
Sample of git config file (Example .gitconfig)
[user]
name = Pavan Kumar Sunkara
email = [email protected]
username = pksunkara
[core]
editor = vim
whitespace = fix,-indent-with-non-tab,trailing-space,cr-at-eol
excludesfile = ~/.gitignore
[sendemail]
smtpencryption = tls
@miklobit
miklobit / install_Jupyter.sh
Last active June 24, 2020 09:26 — forked from gatopeich/install_Jupyter.sh
Install Jupyter iPython Notebook on Android via Termux
pkg upgrade
# Install runtime deps
pkg install python libzmq libcrypt
# Add build deps
pkg install python-dev libzmq-dev libcrypt-dev clang
pip3 install -U pip
pip3 install pyzmq --install-option="--zmq=/usr/lib"
pip3 install jupyter
@miklobit
miklobit / README.md
Created June 18, 2020 11:21 — forked from leedrch/README.md
Node-Red Flow example : Using Chart node & Http node (Restful API)