Skip to content

Commit 56799c0

Browse files
committed
Elide long outputs
1 parent 5587ed9 commit 56799c0

File tree

1 file changed

+6
-164
lines changed

1 file changed

+6
-164
lines changed

ngrok-tricks.ipynb

+6-164
Original file line numberDiff line numberDiff line change
@@ -153,174 +153,14 @@
153153
"metadata": {
154154
"id": "J_WEZOLUyTs2",
155155
"colab_type": "code",
156-
"outputId": "f1dc1ce5-a309-4bd4-90cd-9ce00922b1a9",
157-
"colab": {
158-
"base_uri": "https://localhost:8080/",
159-
"height": 1000
160-
}
156+
"colab": {},
157+
"cellView": "code"
161158
},
162159
"source": [
163160
"!apt-get install ssh tmux vim"
164161
],
165162
"execution_count": 0,
166-
"outputs": [
167-
{
168-
"output_type": "stream",
169-
"text": [
170-
"Reading package lists... Done\n",
171-
"Building dependency tree \n",
172-
"Reading state information... Done\n",
173-
"The following additional packages will be installed:\n",
174-
" libevent-2.1-6 libgpm2 libutempter0 ncurses-term openssh-server\n",
175-
" openssh-sftp-server python3-certifi python3-chardet python3-idna\n",
176-
" python3-pkg-resources python3-requests python3-six python3-urllib3\n",
177-
" ssh-import-id vim-common vim-runtime xxd\n",
178-
"Suggested packages:\n",
179-
" gpm molly-guard monkeysphere rssh ssh-askpass ufw python3-setuptools\n",
180-
" python3-cryptography python3-openssl python3-socks ctags vim-doc vim-scripts\n",
181-
"The following NEW packages will be installed:\n",
182-
" libevent-2.1-6 libgpm2 libutempter0 ncurses-term openssh-server\n",
183-
" openssh-sftp-server python3-certifi python3-chardet python3-idna\n",
184-
" python3-pkg-resources python3-requests python3-six python3-urllib3 ssh\n",
185-
" ssh-import-id tmux vim vim-common vim-runtime xxd\n",
186-
"0 upgraded, 20 newly installed, 0 to remove and 35 not upgraded.\n",
187-
"Need to get 8,264 kB of archives.\n",
188-
"After this operation, 41.3 MB of additional disk space will be used.\n",
189-
"Get:1 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 openssh-sftp-server amd64 1:7.6p1-4ubuntu0.3 [45.6 kB]\n",
190-
"Get:2 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 openssh-server amd64 1:7.6p1-4ubuntu0.3 [333 kB]\n",
191-
"Get:3 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 ssh all 1:7.6p1-4ubuntu0.3 [5,204 B]\n",
192-
"Get:4 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 xxd amd64 2:8.0.1453-1ubuntu1.1 [49.2 kB]\n",
193-
"Get:5 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 vim-common all 2:8.0.1453-1ubuntu1.1 [70.4 kB]\n",
194-
"Get:6 http://archive.ubuntu.com/ubuntu bionic/main amd64 libevent-2.1-6 amd64 2.1.8-stable-4build1 [133 kB]\n",
195-
"Get:7 http://archive.ubuntu.com/ubuntu bionic/main amd64 libgpm2 amd64 1.20.7-5 [15.1 kB]\n",
196-
"Get:8 http://archive.ubuntu.com/ubuntu bionic/main amd64 libutempter0 amd64 1.1.6-3 [7,898 B]\n",
197-
"Get:9 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 ncurses-term all 6.1-1ubuntu1.18.04 [248 kB]\n",
198-
"Get:10 http://archive.ubuntu.com/ubuntu bionic/main amd64 python3-certifi all 2018.1.18-2 [144 kB]\n",
199-
"Get:11 http://archive.ubuntu.com/ubuntu bionic/main amd64 python3-pkg-resources all 39.0.1-2 [98.8 kB]\n",
200-
"Get:12 http://archive.ubuntu.com/ubuntu bionic/main amd64 python3-chardet all 3.0.4-1 [80.3 kB]\n",
201-
"Get:13 http://archive.ubuntu.com/ubuntu bionic/main amd64 python3-idna all 2.6-1 [32.5 kB]\n",
202-
"Get:14 http://archive.ubuntu.com/ubuntu bionic/main amd64 python3-six all 1.11.0-2 [11.4 kB]\n",
203-
"Get:15 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 python3-urllib3 all 1.22-1ubuntu0.18.04.1 [86.0 kB]\n",
204-
"Get:16 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 python3-requests all 2.18.4-2ubuntu0.1 [58.3 kB]\n",
205-
"Get:17 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 tmux amd64 2.6-3ubuntu0.2 [248 kB]\n",
206-
"Get:18 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 vim-runtime all 2:8.0.1453-1ubuntu1.1 [5,435 kB]\n",
207-
"Get:19 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 vim amd64 2:8.0.1453-1ubuntu1.1 [1,152 kB]\n",
208-
"Get:20 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 ssh-import-id all 5.7-0ubuntu1.1 [10.9 kB]\n",
209-
"Fetched 8,264 kB in 10s (841 kB/s)\n",
210-
"Preconfiguring packages ...\n",
211-
"Selecting previously unselected package openssh-sftp-server.\n",
212-
"(Reading database ... 132684 files and directories currently installed.)\n",
213-
"Preparing to unpack .../00-openssh-sftp-server_1%3a7.6p1-4ubuntu0.3_amd64.deb ...\n",
214-
"Unpacking openssh-sftp-server (1:7.6p1-4ubuntu0.3) ...\n",
215-
"Selecting previously unselected package openssh-server.\n",
216-
"Preparing to unpack .../01-openssh-server_1%3a7.6p1-4ubuntu0.3_amd64.deb ...\n",
217-
"Unpacking openssh-server (1:7.6p1-4ubuntu0.3) ...\n",
218-
"Selecting previously unselected package ssh.\n",
219-
"Preparing to unpack .../02-ssh_1%3a7.6p1-4ubuntu0.3_all.deb ...\n",
220-
"Unpacking ssh (1:7.6p1-4ubuntu0.3) ...\n",
221-
"Selecting previously unselected package xxd.\n",
222-
"Preparing to unpack .../03-xxd_2%3a8.0.1453-1ubuntu1.1_amd64.deb ...\n",
223-
"Unpacking xxd (2:8.0.1453-1ubuntu1.1) ...\n",
224-
"Selecting previously unselected package vim-common.\n",
225-
"Preparing to unpack .../04-vim-common_2%3a8.0.1453-1ubuntu1.1_all.deb ...\n",
226-
"Unpacking vim-common (2:8.0.1453-1ubuntu1.1) ...\n",
227-
"Selecting previously unselected package libevent-2.1-6:amd64.\n",
228-
"Preparing to unpack .../05-libevent-2.1-6_2.1.8-stable-4build1_amd64.deb ...\n",
229-
"Unpacking libevent-2.1-6:amd64 (2.1.8-stable-4build1) ...\n",
230-
"Selecting previously unselected package libgpm2:amd64.\n",
231-
"Preparing to unpack .../06-libgpm2_1.20.7-5_amd64.deb ...\n",
232-
"Unpacking libgpm2:amd64 (1.20.7-5) ...\n",
233-
"Selecting previously unselected package libutempter0:amd64.\n",
234-
"Preparing to unpack .../07-libutempter0_1.1.6-3_amd64.deb ...\n",
235-
"Unpacking libutempter0:amd64 (1.1.6-3) ...\n",
236-
"Selecting previously unselected package ncurses-term.\n",
237-
"Preparing to unpack .../08-ncurses-term_6.1-1ubuntu1.18.04_all.deb ...\n",
238-
"Unpacking ncurses-term (6.1-1ubuntu1.18.04) ...\n",
239-
"Selecting previously unselected package python3-certifi.\n",
240-
"Preparing to unpack .../09-python3-certifi_2018.1.18-2_all.deb ...\n",
241-
"Unpacking python3-certifi (2018.1.18-2) ...\n",
242-
"Selecting previously unselected package python3-pkg-resources.\n",
243-
"Preparing to unpack .../10-python3-pkg-resources_39.0.1-2_all.deb ...\n",
244-
"Unpacking python3-pkg-resources (39.0.1-2) ...\n",
245-
"Selecting previously unselected package python3-chardet.\n",
246-
"Preparing to unpack .../11-python3-chardet_3.0.4-1_all.deb ...\n",
247-
"Unpacking python3-chardet (3.0.4-1) ...\n",
248-
"Selecting previously unselected package python3-idna.\n",
249-
"Preparing to unpack .../12-python3-idna_2.6-1_all.deb ...\n",
250-
"Unpacking python3-idna (2.6-1) ...\n",
251-
"Selecting previously unselected package python3-six.\n",
252-
"Preparing to unpack .../13-python3-six_1.11.0-2_all.deb ...\n",
253-
"Unpacking python3-six (1.11.0-2) ...\n",
254-
"Selecting previously unselected package python3-urllib3.\n",
255-
"Preparing to unpack .../14-python3-urllib3_1.22-1ubuntu0.18.04.1_all.deb ...\n",
256-
"Unpacking python3-urllib3 (1.22-1ubuntu0.18.04.1) ...\n",
257-
"Selecting previously unselected package python3-requests.\n",
258-
"Preparing to unpack .../15-python3-requests_2.18.4-2ubuntu0.1_all.deb ...\n",
259-
"Unpacking python3-requests (2.18.4-2ubuntu0.1) ...\n",
260-
"Selecting previously unselected package tmux.\n",
261-
"Preparing to unpack .../16-tmux_2.6-3ubuntu0.2_amd64.deb ...\n",
262-
"Unpacking tmux (2.6-3ubuntu0.2) ...\n",
263-
"Selecting previously unselected package vim-runtime.\n",
264-
"Preparing to unpack .../17-vim-runtime_2%3a8.0.1453-1ubuntu1.1_all.deb ...\n",
265-
"Adding 'diversion of /usr/share/vim/vim80/doc/help.txt to /usr/share/vim/vim80/doc/help.txt.vim-tiny by vim-runtime'\n",
266-
"Adding 'diversion of /usr/share/vim/vim80/doc/tags to /usr/share/vim/vim80/doc/tags.vim-tiny by vim-runtime'\n",
267-
"Unpacking vim-runtime (2:8.0.1453-1ubuntu1.1) ...\n",
268-
"Selecting previously unselected package vim.\n",
269-
"Preparing to unpack .../18-vim_2%3a8.0.1453-1ubuntu1.1_amd64.deb ...\n",
270-
"Unpacking vim (2:8.0.1453-1ubuntu1.1) ...\n",
271-
"Selecting previously unselected package ssh-import-id.\n",
272-
"Preparing to unpack .../19-ssh-import-id_5.7-0ubuntu1.1_all.deb ...\n",
273-
"Unpacking ssh-import-id (5.7-0ubuntu1.1) ...\n",
274-
"Setting up ncurses-term (6.1-1ubuntu1.18.04) ...\n",
275-
"Setting up libevent-2.1-6:amd64 (2.1.8-stable-4build1) ...\n",
276-
"Processing triggers for mime-support (3.60ubuntu1) ...\n",
277-
"Setting up xxd (2:8.0.1453-1ubuntu1.1) ...\n",
278-
"Setting up libgpm2:amd64 (1.20.7-5) ...\n",
279-
"Setting up python3-idna (2.6-1) ...\n",
280-
"Setting up python3-six (1.11.0-2) ...\n",
281-
"Setting up python3-certifi (2018.1.18-2) ...\n",
282-
"Setting up python3-pkg-resources (39.0.1-2) ...\n",
283-
"Setting up libutempter0:amd64 (1.1.6-3) ...\n",
284-
"Setting up openssh-sftp-server (1:7.6p1-4ubuntu0.3) ...\n",
285-
"Processing triggers for libc-bin (2.27-3ubuntu1) ...\n",
286-
"Setting up python3-chardet (3.0.4-1) ...\n",
287-
"Processing triggers for systemd (237-3ubuntu10.31) ...\n",
288-
"Setting up vim-common (2:8.0.1453-1ubuntu1.1) ...\n",
289-
"Setting up tmux (2.6-3ubuntu0.2) ...\n",
290-
"Processing triggers for man-db (2.8.3-2ubuntu0.1) ...\n",
291-
"Setting up vim-runtime (2:8.0.1453-1ubuntu1.1) ...\n",
292-
"Setting up python3-urllib3 (1.22-1ubuntu0.18.04.1) ...\n",
293-
"Processing triggers for hicolor-icon-theme (0.17-2) ...\n",
294-
"Setting up vim (2:8.0.1453-1ubuntu1.1) ...\n",
295-
"update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/vim (vim) in auto mode\n",
296-
"update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/vimdiff (vimdiff) in auto mode\n",
297-
"update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/rvim (rvim) in auto mode\n",
298-
"update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/rview (rview) in auto mode\n",
299-
"update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/vi (vi) in auto mode\n",
300-
"update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/view (view) in auto mode\n",
301-
"update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/ex (ex) in auto mode\n",
302-
"update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/editor (editor) in auto mode\n",
303-
"Setting up openssh-server (1:7.6p1-4ubuntu0.3) ...\n",
304-
"\n",
305-
"Creating config file /etc/ssh/sshd_config with new version\n",
306-
"Creating SSH2 RSA key; this may take some time ...\n",
307-
"2048 SHA256:mmq6A+PQaLXC8tPYty7WBRKx1n8ZgMsOoCafE7BBsvM root@3c23b9622498 (RSA)\n",
308-
"Creating SSH2 ECDSA key; this may take some time ...\n",
309-
"256 SHA256:+pDIuueGT8YvM5JrJMpJGzOge2nRQ/wb9XTzo/pX6qI root@3c23b9622498 (ECDSA)\n",
310-
"Creating SSH2 ED25519 key; this may take some time ...\n",
311-
"256 SHA256:MvGwnV7V9Le8BsMkyLwRNnvn5GkniO/KYhhO6TbxUPA root@3c23b9622498 (ED25519)\n",
312-
"Created symlink /etc/systemd/system/sshd.service → /lib/systemd/system/ssh.service.\n",
313-
"Created symlink /etc/systemd/system/multi-user.target.wants/ssh.service → /lib/systemd/system/ssh.service.\n",
314-
"invoke-rc.d: could not determine current runlevel\n",
315-
"invoke-rc.d: policy-rc.d denied execution of start.\n",
316-
"Setting up python3-requests (2.18.4-2ubuntu0.1) ...\n",
317-
"Setting up ssh-import-id (5.7-0ubuntu1.1) ...\n",
318-
"Setting up ssh (1:7.6p1-4ubuntu0.3) ...\n",
319-
"Processing triggers for systemd (237-3ubuntu10.31) ...\n"
320-
],
321-
"name": "stdout"
322-
}
323-
]
163+
"outputs": []
324164
},
325165
{
326166
"cell_type": "markdown",
@@ -345,9 +185,11 @@
345185
"colab": {
346186
"base_uri": "https://localhost:8080/",
347187
"height": 34
348-
}
188+
},
189+
"cellView": "form"
349190
},
350191
"source": [
192+
"#@title\n",
351193
"%%writefile /drive/ngrok-ssh/sshd_config\n",
352194
"#\t$OpenBSD: sshd_config,v 1.101 2017/03/14 07:19:07 djm Exp $\n",
353195
"\n",

0 commit comments

Comments
 (0)