This is a quick way to find a random free port on a system using PHP:
$port = find_free_port();
Benchmarked locally, where finding a port always took around 0.15ms.
#!/bin/sh | |
echo "Atualiza pacotes" | |
apt -y update | |
echo "Instalar [WGET]" | |
apt install wget -y | |
echo "Download Nessus" |
import streamlit as st | |
import concurrent.futures # We'll do computations in separate processes! | |
import mymodule # This is where you'll do the computation | |
# Your st calls must go inside this IF block. | |
if __name__ == '__main__': | |
st.write("Starting a long computation on another process") | |
# Pick max number of concurrent processes. Depends on how heavy your computation is, and how | |
# powerful your machine is. |
Europe
Running games through Steam's Proton is great. But what if there is a secondary exe or configuration application bundled with the game? How can you launch it if Steam itself only launches the game?
Simply run this command in a terminal:
cd /path/to/steam/steamapps/compatdata/20920/pfx
STEAM_COMPAT_DATA_PATH="/path/to/steam/steamapps/compatdata/20920" WINEPREFIX=$PWD \
"$HOME/.steam/root/steamapps/common/Proton 5.0/proton" run ./drive_c/path/to/custom_application.exe
(Note: This is a draft, and subject to change.)
Many writing systems have been proposed for Lojban. Hangul is the writing system used in Korean, and potentially a great option to use for Lojban. It's a featural writing system, meaning that most of its symbols are chosen for a reason, and not just arbitrarily. The most attractive feature of Hangul is the syllable-blocks that well compress the language.
Sync observables created from a synchronous source will emit values synchronously, so the observers will receive values in the order of subscription.
The source iterable is traversed for each observer subscribed. For example, the size of source iterable is M, there are N observers, so the traversal times is M*N. This is explained in RxJS5 Manual:
Plain Observables are unicast (each subscribed Observer owns an independent execution of the Observable)
let sub = Rx.Observable.range(0, 3);
sub.subscribe(value => console.log(`observer 1: ${value}`));
sub.subscribe(value => console.log(`observer 2: ${value}`));
server { | |
listen 127.0.0.1:5002; | |
listen [::1]:5002; | |
server_name .dev; | |
## Set dev's base path in order to appending L1 name | |
set $base_path "/Library/WebServer/Documents"; | |
## Start domain regex match | |
set $domain $host; |
영어지만, 조금 더 상세하게 마크다운 사용법을 안내하고 있는
"Markdown Guide (https://www.markdownguide.org/)" 를 보시는 것을 추천합니다. ^^
아, 그리고 마크다운만으로 표현이 부족하다고 느끼신다면, HTML 태그를 활용하시는 것도 좋습니다.
import ctypes | |
import maya.OpenMaya as om | |
import maya.OpenMayaUI as omui | |
from PySide2 import QtCore, QtGui, QtWidgets | |
# Capture viewport to MImage | |
view = omui.M3dView.active3dView() | |
mIm = om.MImage() |