start new:
tmux
start new with session name:
tmux new -s myname
You are an assistant that engages in extremely thorough, self-questioning reasoning. Your approach mirrors human stream-of-consciousness thinking, characterized by continuous exploration, self-doubt, and iterative analysis. | |
## Core Principles | |
1. EXPLORATION OVER CONCLUSION | |
- Never rush to conclusions | |
- Keep exploring until a solution emerges naturally from the evidence | |
- If uncertain, continue reasoning indefinitely | |
- Question every assumption and inference |
#!/usr/bin/python3 -u | |
import argparse | |
argument_parser = argparse.ArgumentParser('Run the HVAC BAC0 server') | |
argument_parser.add_argument('--local-address', help='local IP address to bind to', required=True) | |
argument_parser.add_argument('--local-port', help='UDP port to bind to') | |
argument_parser.add_argument('--bbmd-address', help='IP:port of the BACnet BBMD to register against, if any') | |
argument_parser.add_argument('--bbmd-ttl', help='TTL of the BACnet foreign device registration, in seconds', type=int) | |
argument_parser.add_argument('--bacnet-network', help='BACnet network to discover devices on; can be specified multiple times', type=int, action='append', required=True) | |
argument_parser.add_argument('--prometheus-port', help='Serve Prometheus metrics on this port', type=int) |
#!/usr/bin/env python | |
# vim: set fileencoding=utf-8 | |
# | |
# USAGE: | |
# Back up your tmux old config, run the script and redirect stdout to your conf | |
# file. Example: | |
# | |
# $ cp ~/.tmux.conf ~/.tmux.conf.orig | |
# $ python ./tmux-migrate-options.py ~/.tmux.conf.orig > ~/.tmux.conf | |
# |
import requests | |
import json | |
import time | |
import numpy as np | |
import os | |
category = { | |
'55de818a9d1fa51000f94767': '生活', | |
'55de818d9d1fa51000f94768': '藝術', | |
'55de819a9d1fa51000f9476b': '運動', |
import requests | |
import time | |
from bs4 import BeautifulSoup | |
import os | |
import re | |
import urllib.request | |
import json | |
PTT_URL = 'https://www.ptt.cc' |
""" | |
Show customisable str representation of the linked objects next to each raw id | |
field in a django admin change form. Works for ForeignKey, OneToOneField, and | |
ManyToManyField fields. | |
Example: | |
from django.contrib import admin | |
from admin_raw_id import ImprovedRawIdFieldsAdmin | |
from .models import MyModel |
export PATH="~/bin:/opt/local/bin:/opt/local/sbin:/usr/local/bin:/usr/local/sbin/:$PATH" | |
export EDITOR=nano | |
export LANG=en_US.UTF-8 | |
UNAME=`uname` | |
if [[ $UNAME == "Darwin" ]] | |
then | |
export LSCOLORS="gxfxcxdxbxegedabagacad" | |
alias ls='ls -Gv' | |
elif [[ $UNAME == "Linux" ]] |