Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
Loading: | |
Loading: 0 packages loaded | |
Analyzing: target //html:html (0 packages loaded, 0 targets configured) | |
INFO: Analyzed target //html:html (0 packages loaded, 0 targets configured). | |
INFO: Found 1 target... | |
[0 / 2] [Prepa] BazelWorkspaceStatusAction stable-status.txt | |
ERROR: /home/grayhatter/code/hastur/html/BUILD:3:11: Compiling html/parse.cpp failed: (Exit 1): clang failed: error executing command /usr/bin/clang -U_FORTIFY_SOURCE -fstack-protector -Wall -Wthread-safety -Wself-assign -fcolor-diagnostics -fno-omit-frame-pointer '-std=c++0x' -MD -MF ... (remaining 16 argument(s) skipped) | |
Use --sandbox_debug to see verbose messages from the sandbox clang failed: error executing command /usr/bin/clang -U_FORTIFY_SOURCE -fstack-protector -Wall -Wthread-safety -Wself-assign -fcolor-diagnostics -fno-omit-frame-pointer '-std=c++0x' -MD -MF ... (remaining 16 argument(s) skipped) |
# Switch to workspace | |
bindcode $mod+87 workspace 1 | |
bindcode $mod+88 workspace 2 | |
bindcode $mod+89 workspace 3 | |
bindcode $mod+83 workspace 4 | |
bindcode $mod+84 workspace 5 | |
bindcode $mod+85 workspace 6 | |
bindcode $mod+79 workspace 7 | |
bindcode $mod+80 workspace 8 | |
bindcode $mod+81 workspace 9 |
[ 7875.325261] surfacegen5_acpi_ssh serial0-0: recv: invalid start of message | |
[ 7875.426305] surfacegen5_acpi_ssh serial0-0: recv: invalid start of message | |
[ 7875.527547] surfacegen5_acpi_ssh serial0-0: recv: invalid start of message | |
[ 7876.337392] surfacegen5_acpi_ssh serial0-0: rqst: communication timed out | |
[ 7876.337399] surfacegen5_acpi_san MSHW0091:00: surfacegen5_ec_rqst: IO error occured, trying again | |
[ 7876.339037] surfacegen5_acpi_ssh serial0-0: recv: invalid start of message | |
[ 7876.339042] surfacegen5_acpi_ssh serial0-0: recv: invalid start of message | |
[ 7876.440249] surfacegen5_acpi_ssh serial0-0: recv: invalid start of message | |
[ 7876.541496] surfacegen5_acpi_ssh serial0-0: recv: invalid start of message | |
[ 7877.350797] surfacegen5_acpi_ssh serial0-0: rqst: communication timed out |
class BaseGroup(Base): | |
# ... | |
parent_id = Column(Integer, ForeignKey('base_groups.id')) | |
parent = relationship('BaseGroup', | |
foreign_keys='BaseGroup.id', | |
primaryjoin='BaseGroup.parent_id == BaseGroup.id', | |
uselist=False) | |
child_groups = relationship('BaseGroup', | |
foreign_keys='BaseGroup.parent_id', |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
[uwsgi] | |
plugin = python | |
socket = 127.0.0.1:3031 | |
module = metasrht.app:app | |
processes = 1 | |
threads = 2 | |
#stats = 127.0.0.1:9191 | |
/* | |
* Simple sound playback using ALSA API and libasound. | |
* | |
* Compile: | |
* $ cc -o play sound_playback.c -lasound | |
* | |
* Usage: | |
* $ ./play <sample_rate> <channels> <seconds> < <file> | |
* | |
* Examples: |
settings.ringtone_enabled = save->audible_notifications_enabled; | |
settings.audiofilter_enabled = save->audio_filtering_enabled; | |
settings.send_typing_status = !save->no_typing_notifications; | |
settings.group_notifications = save->group_notifications; | |
settings.status_notifications = save->status_notifications; |
struct SAVED_DEVICE { | |
uint8_t device_status; | |
uint8_t real_pk[CRYPTO_PUBLIC_KEY_SIZE]; | |
}; |
struct SAVED_FRIEND { | |
uint8_t save_version; | |
uint8_t status; | |
uint8_t info[SAVED_FRIEND_REQUEST_SIZE]; // the data that is sent during the friend requests we do. | |
uint16_t info_size; // Length of the info. | |
uint8_t name[MAX_NAME_LENGTH]; | |
uint16_t name_length; | |
uint8_t statusmessage[MAX_STATUSMESSAGE_LENGTH]; | |
uint16_t statusmessage_length; | |
uint8_t userstatus; |