YouTube video: https://www.youtube.com/watch?v=r-8isv_TnVA
Stackblitz: https://stackblitz.com/edit/js-mbehz9?file=index.js
version: '3.3' | |
services: | |
trino_a: | |
image: trinodb/trino | |
container_name: trino_a | |
ports: | |
- 8080:8080 | |
volumes: | |
- ./trino_a.config.properties:/etc/trino/config.properties |
YouTube video: https://www.youtube.com/watch?v=r-8isv_TnVA
Stackblitz: https://stackblitz.com/edit/js-mbehz9?file=index.js
#!/usr/bin/env bash | |
#=========================================================================== | |
# Works only with the official image available in the Mac App Store. | |
# Make sure you download the official installer before running this script. | |
#=========================================================================== | |
hdiutil create -o /tmp/Catalina.cdr -size 9000m -layout SPUD -fs HFS+J | |
hdiutil attach /tmp/Catalina.cdr.dmg -noverify -mountpoint /Volumes/install_build | |
sudo /Applications/Install\ macOS\ Catalina.app/Contents/Resources/createinstallmedia --volume /Volumes/install_build --nointeraction | |
hdiutil detach "/Volumes/Install macOS Catalina" |
It is hard to make Eclipse-based apps to work on Max OS X if you do not have Oracle Java installed. Usually you get an error like this:
To open X you need to install the legacy java se 6 runtime
Liberica JDK fixes running Eclipse-based apps on Mac OS. So, you can install tools like DBeaver or SpringToolsSuite from command line without need to modify eclipse.ini or any other files.
import org.bouncycastle.asn1.ASN1Encodable; | |
import org.bouncycastle.asn1.DERSequence; | |
import org.bouncycastle.asn1.x500.X500Name; | |
import org.bouncycastle.asn1.x509.BasicConstraints; | |
import org.bouncycastle.asn1.x509.Extension; | |
import org.bouncycastle.asn1.x509.GeneralName; | |
import org.bouncycastle.asn1.x509.KeyUsage; | |
import org.bouncycastle.cert.X509CertificateHolder; | |
import org.bouncycastle.cert.X509v3CertificateBuilder; | |
import org.bouncycastle.cert.jcajce.JcaX509CertificateConverter; |
[Unit] | |
Description=Job that runs the python SimpleHTTPServer daemon | |
Documentation=man:SimpleHTTPServer(1) | |
[Service] | |
Type=simple | |
WorkingDirectory=/tmp/letsencrypt | |
ExecStart=/usr/bin/python -m SimpleHTTPServer 80 & | |
ExecStop=/bin/kill `/bin/ps aux | /bin/grep SimpleHTTPServer | /bin/grep -v grep | /usr/bin/awk '{ print $2 }'` |
/** | |
* Apache HTTP Fluent client configuration | |
* @throws KeyStoreException | |
* @throws NoSuchAlgorithmException | |
* @throws KeyManagementException | |
* @throws IOException | |
* @throws CertificateException | |
*/ | |
public static void httpClientConfigurator() throws KeyStoreException, KeyManagementException, NoSuchAlgorithmException, | |
CertificateException, IOException { |
<?php | |
namespace Acme\Util; | |
/** | |
* ImageExtractor | |
*/ | |
class ImageExtractor | |
{ | |
const FORMAT_JPG = 'jpg'; |
//Generate a self signed X509 certificate with Bouncy Castle. | |
// StringBuilder sb = new StringBuilder(); | |
// | |
// for (int i = 0; i < pub.length; ++i) | |
// { | |
// sb.append(Integer.toHexString(0x0100 + (pub[i] & 0x00FF)).substring(1)); | |
// } | |
// | |
// System.out.println(sb); | |
// sb.setLength(0); |