- Updated on May 29 to accommodate etcd container not having
/bin/shavailable anymore.
curl -sL https://get.rke2.io | sh
systemctl daemon-reload
systemctl start rke2-server
| 0. Don't have a SIM card in when you're updating radio firmware or it will bomb out partway through as it changes from internal IP to IP passthrough | |
| 1. Disable external IP passthrough mode: Network Setting -> Broadband -> Cellular APN -> #1 -> Modify icon -> "IP Passthrough" slider to off | |
| 2. Use "management" Wi-Fi AP as general Wi-Fi AP (with limitations) -> Network Setting -> Bridge1 -> Modify icon -> Move the Wi-Fi AP interface to the pane on the right alongside LAN1 | |
| NOTE: by default, once you do the above, the router will happily pass traffic from devices on the Wi-Fi AP to other devices on the LAN1 subnet, but will block traffic originating from the Wi-Fi AP from exiting to the Internet via the LTE side of the device. You can clumsily hack around this by setting another device, e.g. another Wi-Fi AP or Raspberry Pi or Cray supercomputer, as the default gateway for the LAN1 subnet in your DHCP server config, and pointing *that* device at the Zyxel as *its* default GW. This adds additional hops, but enabl |
rsync (Everyone seems to like -z, but it is much slower for me)
| package demo.example; | |
| import java.net.URI; | |
| import java.net.http.HttpClient; | |
| import java.net.http.HttpRequest; | |
| import java.net.http.HttpResponse; | |
| public class HttpClientExample { | |
| public static void main(String[] args) throws Exception { |
| # this code is based on get_historical_data() from python-binance module | |
| # https://github.com/sammchardy/python-binance | |
| # it also requires pybybit.py available from this page | |
| # https://note.mu/mtkn1/n/n9ef3460e4085 | |
| # (where pandas & websocket-client are needed) | |
| import time | |
| import dateparser | |
| import pytz | |
| import json |
I've been working with Kafka for over 7 years. I inevitably find myself doing the same set of activities while I'm developing or working with someone else's system. Here's a set of Kafka productivity hacks for doing a few things way faster than you're probably doing them now. 🔥
| #!/bin/sh | |
| # Download the certificate you need from the website | |
| openssl s_client -connect my-nexus-website.com:443 > www.crt | |
| # Go into the certificate and delete everything before -------START ----- and after ------ END ------ | |
| # Create your own keystore to use for this certificate -- add as many as you want | |
| sudo keytool -trustcacerts -keystore cacerts -storepass cacerts -noprompt -importcert -alias www -file www.crt |
Permalink: git.io/vps
| Provider | Type | RAM | Cores | Storage | Transfer | Network | Price |
|---|
| brew update | |
| brew cask install java | |
| brew cask install jce-unlimited-strength-policy | |
| export JAVA_HOME=`/usr/libexec/java_home -v 1.8` |