This file contains hidden or 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
Navigation menu | |
NixOS Wiki | |
Packaging/Binaries | |
Downloading and attempting to run a binary on NixOS will almost never work. This is due to hard-coded paths in the executable. Unfortunately, almost all unfree and proprietary software comes in binary form - the main reason to include binaries is because no source code is available. This tutorial will guide you through packaging a binary executable. | |
If a downloaded binary is not packaged for NixOS then running the binary may fail like the following: | |
$ ~/.local/share/nvim/mason/packages/rust-analyzer/rust-analyzer-x86_64-unknown-linux-gnu --help |
This file contains hidden or 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
class State(rx.State): | |
# --- State Variables --- | |
current_time: str = "" # Note: rx.moment replaces the need for this if used for display | |
alarm_time: str = "" | |
alarms: list = [] | |
news: List[Dict[str, Any]] = [] | |
nba_scores: List[Dict[str, Any]] = [] | |
mlb_scores: List[Dict[str, Any]] = [] |
This file contains hidden or 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
worker_processes 1; | |
events { | |
worker_connections 1024; | |
} | |
http { | |
upstream lemmy { | |
# this needs to map to the lemmy (server) docker service hostname | |
server "lemmy:8536"; | |
} | |
upstream lemmy-ui { |
This file contains hidden or 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
location / { | |
# The default ports: | |
# lemmy_ui_port: 1236(not used here) | |
# lemmy_port: 8536 | |
set $proxpass "http://100.117.212.36:1236"; | |
if ($http_accept ~ "^application/.*$") { | |
set $proxpass "http://100.117.212.36:8536"; | |
} |
This file contains hidden or 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
# pictrs host | |
pictrs: { | |
url: "http://pictrs:8080/" | |
# api_key: "API_KEY" | |
} | |
# settings related to the postgresql database | |
database: { | |
# name of the postgres database for lemmy | |
database: "lemmy" |
This file contains hidden or 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
networks: | |
# communication to web and clients | |
lemmyexternalproxy: | |
# communication between lemmy services | |
lemmyinternal: | |
driver: bridge | |
internal: true | |
services: |
This file contains hidden or 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
### Keybase proof | |
I hereby claim: | |
* I am death916 on github. | |
* I am death916 (https://keybase.io/death916) on keybase. | |
* I have a public key ASDjg7Jh0cGdY2kmPgtT4cMLiekUVU3HJlouOrCJCjcYzgo | |
To claim this, I am signing this object: |
This file has been truncated, but you can view the full file.
This file contains hidden or 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
2017-07-18 19:20:55,388 INFO lbrynet.lbrynet_daemon.DaemonControl:92: Starting lbrynet-daemon from command line | |
2017-07-18 19:20:56,450 INFO lbrynet.lbrynet_daemon.DaemonServer:64: Using non-authenticated API | |
2017-07-18 19:20:56,453 INFO lbrynet.lbrynet_daemon.Daemon:254: Starting lbrynet-daemon | |
2017-07-18 19:20:56,565 INFO lbrynet.lbrynet_daemon.ExchangeRateManager:174: Starting exchange rate manager | |
2017-07-18 19:20:56,720 INFO lbrynet.lbrynet_daemon.Daemon:281: Platform: {"lbrynet_version": "0.13.1", "platform": "Windows-10-10.0.15063", "os_system": "Windows", "python_version": "2.7.13", "os_release": "10", "lbryum_version": "2.8.4", "ip": "2601:204:d500:5d11:6d68:226a:c929:a143", "lbryschema_version": "0.0.7", "processor": "AMD64 Family 23 Model 1 Stepping 1, AuthenticAMD", "build": "release"} | |
2017-07-18 19:20:56,726 INFO lbrynet.lbrynet_daemon.Daemon:488: Loading databases | |
2017-07-18 19:20:56,726 WARNING lbrynet.lbrynet_daemon.Daemon:499: db_revision file not found. Creating it | |
2 |
This file has been truncated, but you can view the full file.
This file contains hidden or 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
2017-07-18 19:20:55,388 INFO lbrynet.lbrynet_daemon.DaemonControl:92: Starting lbrynet-daemon from command line | |
2017-07-18 19:20:56,450 INFO lbrynet.lbrynet_daemon.DaemonServer:64: Using non-authenticated API | |
2017-07-18 19:20:56,453 INFO lbrynet.lbrynet_daemon.Daemon:254: Starting lbrynet-daemon | |
2017-07-18 19:20:56,565 INFO lbrynet.lbrynet_daemon.ExchangeRateManager:174: Starting exchange rate manager | |
2017-07-18 19:20:56,720 INFO lbrynet.lbrynet_daemon.Daemon:281: Platform: {"lbrynet_version": "0.13.1", "platform": "Windows-10-10.0.15063", "os_system": "Windows", "python_version": "2.7.13", "os_release": "10", "lbryum_version": "2.8.4", "ip": "2601:204:d500:5d11:6d68:226a:c929:a143", "lbryschema_version": "0.0.7", "processor": "AMD64 Family 23 Model 1 Stepping 1, AuthenticAMD", "build": "release"} | |
2017-07-18 19:20:56,726 INFO lbrynet.lbrynet_daemon.Daemon:488: Loading databases | |
2017-07-18 19:20:56,726 WARNING lbrynet.lbrynet_daemon.Daemon:499: db_revision file not found. Creating it | |
2 |
This file contains hidden or 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
class BotStrategy(object): | |
def __init__(self): | |
self.output = BotLog() | |
self.prices = [] | |
self.closes = [] # Needed for Momentum Indicator | |
self.trades = [] | |
self.currentPrice = "" | |
self.currentClose = "" | |
self.numSimulTrades = 1 | |
self.indicators = BotIndicators() |
NewerOlder