$ cd /path/to/Dockerfile
$ sudo docker build .
View running processes
No. Time Source Destination Protocol Length Info | |
7 0.003263 127.0.0.1 127.0.0.1 AMQP 393 Connection.Start | |
Frame 7: 393 bytes on wire (3144 bits), 393 bytes captured (3144 bits) | |
Arrival Time: Jul 21, 2011 08:05:16.227656000 MSD | |
Epoch Time: 1311221116.227656000 seconds | |
[Time delta from previous captured frame: 0.000145000 seconds] | |
[Time delta from previous displayed frame: 0.000000000 seconds] | |
[Time since reference or first frame: 0.003263000 seconds] | |
Frame Number: 7 |
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# Example of `prototype' design pattern | |
# Copyright (C) 2011 Radek Pazdera | |
# This program is free software: you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation, either version 3 of the License, or | |
# (at your option) any later version. |
# Rime setting | |
patch: | |
"menu/page_size": 9 | |
schema_list: | |
- schema: luna_pinyin | |
- schema: cangjie5 | |
- schema: luna_pinyin_fluency | |
- schema: luna_pinyin_simp | |
- schema: double_pinyin_flypy |
Decoding the data in /proc/net/tcp: | |
Linux 5.x /proc/net/tcp | |
Linux 6.x /proc/PID/net/tcp | |
Given a socket: | |
$ ls -l /proc/24784/fd/11 | |
lrwx------ 1 jkstill dba 64 Dec 4 16:22 /proc/24784/fd/11 -> socket:[15907701] |
#!/bin/bash | |
TMUX_VERSION=2.3 | |
NCURSES_VERSION=6.0 | |
LIBEVENT_VERSION=2.0.22 | |
BASEDIR=${HOME}/work/tmux-static | |
TMUXTARGET=${BASEDIR}/local | |
mkdir -p $TMUXTARGET | |
cd $BASEDIR |
import asyncio | |
import threading | |
import random | |
def thr(i): | |
# we need to create a new loop for the thread, and set it as the 'default' | |
# loop that will be returned by calls to asyncio.get_event_loop() from this | |
# thread. | |
loop = asyncio.new_event_loop() |
import threading | |
from IPython.display import display | |
import ipywidgets as widgets | |
import time | |
def get_ioloop(): | |
import IPython, zmq | |
ipython = IPython.get_ipython() | |
if ipython and hasattr(ipython, 'kernel'): | |
return zmq.eventloop.ioloop.IOLoop.instance() | |
ioloop = get_ioloop() |
apt update && apt upgrade | |
apt install python python-dev pip clang | |
pip install --upgrade pip | |
pip install conda | |
## All the following packages are needed by conda | |
pip install auxlib ruamel.yaml requests | |
## Install pycosat (this can be ignored if https://github.com/ContinuumIO/pycosat/pull/29 is fixed) | |
wget https://pypi.python.org/packages/76/0f/16edae7bc75b79376f2c260b7a459829785f08e463ecf74a8ccdef62dd4a/pycosat-0.6.1.tar.gz#md5=c1fc35b17865f5f992595ae0362f9f9f | |
tar -xf pycosat-0.6.1.tar.gz |