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();
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
@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 / .gitconfig
Created July 15, 2020 11:34 — forked from pksunkara/config
Sample of git config file (Example .gitconfig)
[user]
name = Pavan Kumar Sunkara
email = pavan.sss1991@gmail.com
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)
@miklobit
miklobit / riot-matrix-workshop.md
Created June 11, 2020 00:51 — forked from attacus/riot-matrix-workshop.md
Create your own encrypted chat server with Riot and Matrix

This guide is unmaintained and was created for a specific workshop in 2017. It remains as a legacy reference. Use at your own risk.

Running your own encrypted chat service with Matrix and Riot

Workshop Instructor:

This workshop is distributed under a CC BY-SA 4.0 license.

What are we doing here?

@miklobit
miklobit / README.md
Last active March 12, 2020 11:14 — forked from veltman/README.md
SVG animation to video

Converting an SVG animation to a video with the MediaRecorder API and a hidden canvas.

Drawing frames from img elements can introduce an extra delay, so this version generates all the frames upfront and then renders them in a loop with requestAnimationFrame().

See also: Canvas animation to video

@miklobit
miklobit / deploy-keys.md
Created February 17, 2020 15:11 — forked from holmberd/deploy-keys.md
Setup GitHub repository SSH deploy keys

Setup GitHub repository SSH deploy keys

  1. Create GitHub repository in github and save the SSH repository url

  2. Init git on server in code directory

  • git init
  1. Create SSH keys on the server
  • ssh-keygen -t rsa -b 4096 -C your@email.here
  • Rename the key that doesn't end with .pub to repo-name.deploy.pem