I hereby claim:
- I am jasonehines on github.
- I am jasonehines (https://keybase.io/jasonehines) on keybase.
- I have a public key ASD2DEa8O4N4WduhBxs2-UpZzhXsXBDf0POtveHltgAspwo
To claim this, I am signing this object:
# This file contains pin mappings for the Creality "v4.2.7" board. To | |
# use this config, during "make menuconfig" select the STM32F103 with | |
# a "28KiB bootloader" and serial (on USART1 PA10/PA9) communication. | |
# If you prefer a direct serial connection, in "make menuconfig" | |
# select "Enable extra low-level configuration options" and select | |
# serial (on USART3 PB11/PB10), which is broken out on the 10 pin IDC | |
# cable used for the LCD module as follows: | |
# 3: Tx, 4: Rx, 9: GND, 10: VCC |
I hereby claim:
To claim this, I am signing this object:
# https://iridakos.com/how-to/2019/05/16/remove-duplicate-lines-preserving-order-linux.html | |
awk '!visited[$0]++' your_file > deduplicated_file |
This is a quick explanation of how to configure both ZeroTier and two Ubiquiti UniFi USGs to allow routing between two IPv4 networks. Both networks are in private (RFC1918) address space and each one has its own DHCP service. There is no need for NAT between them, only IP routing.
The two networks are 192.168.1.0/24
(call this the "left" network) and 192.168.10.0/24
(the "right" network) but they can be anything. Also, you can have multiple CIDR blocks on one side or the other of the ZeroTier route; if you do, you just have to create more routing table entries.
[default] | |
access_key = #replace with your DO key | |
access_token = | |
add_encoding_exts = | |
add_headers = | |
bucket_location = nyc3 | |
ca_certs_file = | |
cache_file = | |
check_ssl_certificate = True | |
check_ssl_hostname = True |
s3fs hinesnetwork /mnt/hinesnetwork.nyc3.digitaloceanspaces.com -o passwd_file=/etc/passwd-s3fs -o url=https://nyc3.digitaloceanspaces.com -o endpoint=nyc3 -d -d -f -o f2 -o curldbg |
#how to install tinc | |
sudo eopkg install -c system.devel | |
sudo eopkg install lzo-devel git | |
mkdir Source | |
cd Source | |
git clone https://github.com/gsliepen/tinc.git | |
cd tinc | |
autoreconf --install | |
./configure | |
sudo make install |
GNU nano 2.5.3 File: /usr/local/bin/greeting.py | |
#!/usr/bin/python | |
from websocket import create_connection | |
ws = create_connection("ws://localhost:8000/events/ws") | |
ws.send('{"message_type": "speak", "context": null, "metadata": {"utterance": "Welcome back Jason"}}') | |
result = ws.recv() | |
ws.close() | |
# find file in current directory and rename some_file_name to end in .old | |
find . -iname *some_file_name* -exec mv {} {}.old \; | |
# find file in directory starting with rc and rename to end in .old | |
find .rc* -iname *some_file_name* -exec mv {} {}.old \; |