wget -O- https://aka.ms/install-vscode-server/setup.sh | sh
code-server serve-local --port 8000
https://code.visualstudio.com/blogs/2022/07/07/vscode-server
wget -O- https://aka.ms/install-vscode-server/setup.sh | sh
code-server serve-local --port 8000
https://code.visualstudio.com/blogs/2022/07/07/vscode-server
import re | |
def _text_sep(f, rexp): | |
with open(f) as cells_md_f: | |
s = '' | |
rr = re.compile(rexp) | |
for l in cells_md_f.readlines(): | |
if re.match(rr, l): | |
yield s |
curl -L https://github.com/github/gitignore/raw/main/{C,C++,Global/{Linux,Windows,macOS,Vim,SublimeText,VisualStudioCode}}.gitignore > .gitignore |
import itertools | |
import collections | |
import numpy as np | |
def isiter(a): | |
return isinstance(a, collections.abc.Iterable) | |
def iter_to_str(a, seps=itertools.repeat(' ')): | |
def _impl(_a, _sep, _nseps): |
#!/usr/bin/env bash | |
sudo dnf -y --disablerepo epel-modular install http://mirror.stream.centos.org/9-stream/BaseOS/x86_64/os/Packages/centos-{gpg-keys,stream-{release,repos}}-9.0-9.el9.noarch.rpm | |
sudo dnf -y --disablerepo epel-modular --nogpgcheck upgrade epel-release | |
sudo dnf -y --releasever=9 --allowerasing --setopt=deltarpm=false distro-sync | |
sudo rpmdb --rebuilddb |
strace $(printf -- '-p %s ' $(pgrep bash))
apt remove --purge motd-news-config
function pscmd() { | |
for e in $@; do | |
ps -p`pgrep $e` -wwo args | tail -n+2 | |
done | |
} |
while true; do airport -I | grep CtlRSSI | tr '\n' '\0'; sleep 0.1; printf '\r'; done |