This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Descriptioon of the sequence below: | |
# | |
# AT+... <- AT Command sent to modem | |
# OK <- Modem Response | |
//Switch the modem to minimum functionality | |
AT+CFUN=0,0 | |
OK | |
// Verbose Error Reporting to get understandable error reporting (optional) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
create table user_stats | |
( | |
ts timestamp, | |
username symbol, | |
name symbol, | |
ip_address symbol, | |
post_count int | |
) | |
timestamp(ts); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import time | |
import socket | |
HOST = 'localhost' | |
PORT = 9009 | |
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) | |
try: | |
sock.connect((HOST, PORT)) | |
sock.sendall(('eod,instrument=fut open=141.5,high=142.0,low=139.9,close=142.0,settle_price=143.7,value=42.27\n').encode()) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mkdir bin_dir && cd bin_dir | |
wget https://github.com/questdb/questdb/releases/download/6.0.4/questdb-6.0.4-no-jre-bin.tar.gz | |
tar -xvf questdb-6.0.4-no-jre-bin.tar.gz | |
cd questdb-6.0.4-no-jre-bin | |
./questdb.sh start -d /path/to/my_data_dir | |
./questdb.sh stop | |
# /path/to/my_data_dir will create a new root directory for QuestDB | |
# If a server config file exists already, it will be loaded, i.e. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Path to your oh-my-zsh configuration. | |
export ZSH=$HOME/.oh-my-zsh | |
# Set name of the theme to load. | |
# Look in ~/.oh-my-zsh/themes/ | |
# Optionally, if you set this to "random", it'll load a random theme each | |
# time that oh-my-zsh is loaded. | |
#export ZSH_THEME="robbyrussell" | |
export ZSH_THEME="zanshin" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Using 19 | |
node -v | |
v19.0.0 | |
yarn && yarn start | |
zsh: command not found: yarn | |
# of course, everything is broken | |
# try reinstall 19 with all of the global modules from 18 | |
nvm install 19 --reinstall-packages-from=18 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const customerData = [ | |
{ ssn: "444-44-4444", name: "Bill", age: 35, email: "bill@company.com" }, | |
{ ssn: "555-55-5555", name: "Donna", age: 32, email: "donna@home.org" }, | |
]; | |
const dbName = "my_database"; | |
const request = indexedDB.open(dbName, 2); | |
request.onerror = (event) => { | |
console.log(event); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import urllib.request | |
import pandas as pd | |
import requests | |
def import_data(file_name, table_name): | |
params = {} | |
params['timestamp'] = 'TradeDate' | |
params['partitionBy'] = 'MONTH' | |
url_values = urllib.parse.urlencode(params) | |
query_url = "http://%s:9000/imp?" % (server_ip) + url_values |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<style> | |
.wrapper { | |
transform-style: preserve-3d; | |
} | |
.wrapper2 { | |
transform-style: flat; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"$schema": "https://raw.githubusercontent.com/streetsidesoftware/cspell/main/cspell.schema.json", | |
"version": "0.2", | |
"language": "en", | |
"languageId": "*", | |
"dictionaries": [ | |
"bash", | |
"css", | |
"cpp", | |
"django", |