How to have a simple debian repository to offer your packages.
You probably have them already installed
- Python (I used 2.7).
- dpkg-scanpackages:
sudo apt-get install dpkg-dev - gzip:
sudo apt-get install gzip
| #!/bin/bash | |
| TARGETDIR=$1 | |
| if [ "$TARGETDIR" = "" ]; then | |
| TARGETDIR=$(python -c 'import os; print os.path.realpath("local")') | |
| fi | |
| mkdir -p $TARGETDIR | |
| libevent() { | |
| curl -LO https://github.com/libevent/libevent/releases/download/release-2.0.22-stable/libevent-2.0.22-stable.tar.gz | |
| tar -zxvf libevent-2.0.22-stable.tar.gz |
running:
bash create-vod-hls.sh beach.mkv
will produce:
beach/
|- playlist.m3u8
|- 360p.m3u8
| # Download new packages but don't install them | |
| # Save in /etc/systemd/system/ | |
| [Unit] | |
| Description=Pacman Automatic Download (no install) service | |
| After=network-online.target | |
| [Service] | |
| # Wait time if process hangs | |
| TimeoutStopSec=5m |
| #!/bin/sh | |
| set -u | |
| set -e | |
| umask 0077 | |
| prefix="/opt/openssh" | |
| top="$(pwd)" | |
| root="$top/root" | |
| build="$top/build" |
>>> docker exec -it CONTAINERID /bin/sh
/app # telnet
/bin/sh: telnet: not found
/app # apk update
fetch http://dl-cdn.alpinelinux.org/alpine/v3.7/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.7/community/x86_64/APKINDEX.tar.gz
v3.7.0-243-gf26e75a186 [http://dl-cdn.alpinelinux.org/alpine/v3.7/main]
v3.7.0-229-g087f28e29d [http://dl-cdn.alpinelinux.org/alpine/v3.7/community]
| # 退出桌面模式,以節省記憶體,不然編譯到一半會有記憶體不足的狀況,造成失敗 | |
| # 你的畫面會進入Console 模式,是正常的 | |
| sudo systemctl isolate multi-user | |
| # 準備建置原始碼 | |
| yarn | |
| # 建置原始碼,這個會要花一些時間,約15~20分鐘 | |
| yarn run gulp vscode-linux-arm64-min | |
| yarn run gulp vscode-linux-arm64-build-deb |
| git log --author="Linus Torvalds" --date=iso | perl -nalE 'if (/^Date:\s+[\d-]{10}\s(\d{2})/) { say $1+0 }' | sort | uniq -c|perl -MList::Util=max -nalE '$h{$F[1]} = $F[0]; }{ $m = max values %h; foreach (0..23) { $h{$_} = 0 if not exists $h{$_} } foreach (sort {$a <=> $b } keys %h) { say sprintf "%02d - %4d %s", $_, $h{$_}, "*"x ($h{$_} / $m * 50); }' | |
| """ | |
| Classify photos by EXIF attributes. | |
| Before classified: | |
| DCIM | |
| ├── 100ANDRO | |
| │ ├── DSC_2828.JPG | |
| │ └── DSC_2830.JPG | |
| ├── 99ANDRO |