├── .gitattributes ├── .pylintrc ├── Jenkinsfile ├── LICENSE ├── Makefile ├── README.md ├── ansible ├── Makefile ├── ansible.cfg ├── bin │ ├── show-tags.bash │ └── ssh-keys.bash ├── inventory │ ├── group_vars │ │ ├── all │ │ ├── my │ │ ├── my_local_hosts │ │ └── my_vm_hosts │ ├── host_vars │ │ ├── debian11.vm │ │ ├── debian12.vm │ │ ├── debianmac.vm │ │ ├── hotdog.local │ │ ├── koko.local │ │ ├── netbook.local │ │ ├── netty.local │ │ ├── ryson.local │ │ ├── ryzen.local │ │ ├── viva.local │ │ ├── webtv.local │ │ └── xiaobear.local │ └── my_nodes ├── my_playbook.yaml └── roles │ ├── ansible-user │ └── tasks │ │ └── main.yaml │ ├── local-system │ ├── defaults │ │ └── main.yaml │ ├── files │ │ ├── iptables │ │ └── nopasswd-users │ ├── tasks │ │ ├── main.yaml │ │ ├── system-setup.yaml │ │ └── tlp-setup.yaml │ └── templates │ │ ├── iptables.conf │ │ └── rc.local-opt │ ├── local-users │ ├── defaults │ │ └── main.yaml │ └── meta │ │ └── main.yaml │ └── user-home │ ├── defaults │ └── main.yaml │ ├── files │ ├── accels │ ├── animate.desktop │ ├── geeqierc.xml │ ├── gimp.desktop │ ├── play.desktop │ ├── rotate-270.desktop │ ├── rotate-90.desktop │ ├── thunar.xml │ └── vlcrc │ ├── tasks │ ├── cmdline-apps.yaml │ ├── gui-apps.yaml │ ├── login-user.yaml │ └── main.yaml │ ├── templates │ ├── bootstart.bash │ ├── htoprc │ └── netnice.json │ └── vars │ └── main.yaml ├── appimage ├── 0ad-0.0.26-deb11 │ ├── AppImageBuilder.yaml │ └── Makefile ├── 0ad-0.0.26-deb12 │ ├── AppImageBuilder.yaml │ └── Makefile ├── Makefile ├── bash-5.1.4-deb11 │ ├── AppImageBuilder.yaml │ └── Makefile ├── bash-5.2.15-deb12 │ ├── AppImageBuilder.yaml │ └── Makefile ├── bin │ ├── build-appimage.bash │ ├── check-debs.bash │ ├── gpg │ └── zsyncmake ├── vlc-3.0.18-deb12 │ ├── AppImageBuilder.yaml │ └── Makefile ├── wesnoth-1.14.15-deb11 │ ├── AppImageBuilder.yaml │ └── Makefile ├── wesnoth-1.16.8-deb11 │ ├── AppImageBuilder.yaml │ └── Makefile └── wesnoth-1.16.9-deb12 │ ├── AppImageBuilder.yaml │ └── Makefile ├── bin ├── 0ad ├── 0ad.py ├── 2to3 ├── 7z ├── 7z.py ├── afile ├── afile.py ├── aftp ├── aftp.py ├── ansible ├── ansible-galaxy ├── ansible-inventory ├── ansible-playbook ├── ansible-vault ├── aplay ├── aplay.py ├── appimage-builder ├── appimagetool ├── appimagetool.py ├── aria2c ├── aria2c.py ├── asmc ├── audacity ├── audacity.py ├── avi ├── avi.py ├── aws ├── aws-venv ├── battery ├── battery.py ├── bell ├── bell.ogg ├── bell.py ├── breaktimer ├── breaktimer.py ├── bson ├── bson_.py ├── bz2 ├── bz2_.py ├── cal ├── cal.py ├── calendar ├── calendar_.py ├── cdspeed ├── cdspeed.py ├── chkconfig ├── chkconfig.py ├── chkpath ├── chkpath.py ├── chksequence ├── chksequence.py ├── chkxml ├── chkxml.py ├── chrome ├── chrome.py ├── chromium ├── chromium.py ├── chroot ├── chroot.py ├── clam ├── clam.py ├── cluster ├── cluster.py ├── cmd ├── code ├── code.py ├── column ├── column.py ├── command_mod.py ├── config_mod.py ├── config_mod.yaml ├── cookiecutter ├── countdown ├── countdown.py ├── cqlsh ├── crictl ├── crypt-mount ├── crypt-umount ├── crypt_mod.bash ├── cython ├── cythonize ├── deb ├── deb.py ├── debcheck ├── debcheck.py ├── debget ├── debget.py ├── debgrep ├── debgrep.py ├── debian_mod.py ├── debinstall ├── debinstall.py ├── debug_mod.py ├── debupdate ├── debupdate.py ├── dep ├── desktop_mod.py ├── devpi ├── devpi-venv ├── django-admin ├── django-admin-venv ├── docker-compose ├── docker-images ├── docker-list ├── docker-load ├── docker-prune ├── docker-pull ├── docker-push ├── docker-sandbox ├── docker-save ├── docker-sudo ├── docker-tag ├── docker_mod.bash ├── dockerreg ├── dockerreg.py ├── dpkg ├── dpkg.py ├── dropbox ├── dropbox_.py ├── eclipse ├── eclipse.py ├── edge ├── edge.py ├── egrep ├── espeak ├── espeak.py ├── et ├── et.py ├── etl ├── etl.py ├── etl.tcl ├── evince ├── evince.py ├── extjs ├── extjs.py ├── exturl ├── exturl.py ├── f7z ├── f7z.py ├── fcat ├── fcat.py ├── fchop ├── fchop.py ├── fcount ├── fcount.py ├── fcp ├── fcp.bash ├── fcp.py ├── fcpall ├── fcpall.py ├── fcpclip ├── fcpclip.py ├── fcplink ├── fcplink.py ├── fdiff ├── fdiff.py ├── fdu ├── fdu.py ├── ffind ├── ffind.py ├── ffind0 ├── ffind0.py ├── ffix ├── ffix.py ├── ffmpeg ├── ffplay ├── ffprobe ├── fget ├── fget.py ├── fgrep.py ├── fhead ├── fhead.py ├── file-roller ├── file_mod.py ├── file_roller_.py ├── firefox ├── firefox.py ├── fixwav ├── fixwav.py ├── flask ├── flink ├── flink.py ├── fls ├── fls.py ├── fmkdir ├── fmkdir.py ├── fmod ├── fmod.py ├── fmv ├── fmv.py ├── fpar ├── fpar.py ├── fpeek ├── fpeek.py ├── fprint ├── fprint.py ├── frm ├── frm.py ├── frn ├── frn.py ├── fsame ├── fsame.py ├── fsort ├── fsort.py ├── fstat ├── fstat.py ├── fstrings ├── fstrings.py ├── fsub ├── fsub.py ├── fsum ├── fsum.py ├── ftail ├── ftail.py ├── ftodos ├── ftodos.py ├── ftolower ├── ftolower.py ├── ftomac ├── ftomac.py ├── ftouch ├── ftouch.py ├── ftounix ├── ftounix.py ├── ftoupper ├── ftoupper.py ├── ftp ├── ftp.py ├── fwatch ├── fwatch.py ├── fwhich ├── fwhich.py ├── fwrapper ├── fwrapper.py ├── fzero ├── fzero.py ├── g++ ├── gcc ├── gedit ├── gedit.py ├── gem ├── getip ├── getip.py ├── geturl ├── geturl.py ├── gfortran ├── gimp ├── gimp.py ├── git ├── git-diff ├── git-gc ├── git-lfs ├── git-reset ├── git-squash ├── git-time ├── git_.py ├── git_mod.bash ├── git_time_.py ├── gitk ├── gitk.py ├── glances ├── gnomine ├── gnomine.py ├── go ├── go.py ├── gparted ├── gparted.py ├── gpg ├── gpg.py ├── gqview ├── gqview.py ├── graph ├── graph.py ├── grpcurl ├── grpcurl.py ├── gtts-cli ├── gz ├── gz.py ├── halt ├── hardinfo ├── hardinfo.py ├── hearts ├── hearts.py ├── helm ├── helm.py ├── host-keys ├── host-mount ├── host-run ├── host-setup ├── host-umount ├── host_mod.bash ├── htmlformat ├── htmlformat.py ├── httpd ├── httpd.py ├── httplog ├── httplog.py ├── icheck ├── icheck.py ├── iedge ├── iedge.py ├── ifile ├── ifile.py ├── ihtml ├── ihtml.py ├── ilink ├── ilink.py ├── imeg ├── imeg.py ├── index ├── index.py ├── inkscape ├── inkscape.py ├── inum ├── inum.py ├── ipdb3 ├── ipython ├── ipython3 ├── isame ├── isame-venv ├── isame.py ├── isitup ├── isitup.py ├── iso ├── iso.py ├── isum ├── isum-venv ├── isum.py ├── iterm ├── jar ├── jar.py ├── java ├── java.py ├── javac ├── jinja2 ├── jsformat ├── jsformat.py ├── json ├── json_.py ├── jsonformat ├── jsonformat.py ├── jython ├── k3s ├── k3s-server ├── keymap.tcl ├── keytool ├── kmodsign ├── kmodsign.py ├── kubectl ├── kubectl.py ├── kubeseal ├── logging_mod.py ├── lsblk ├── lsblk.py ├── lzma ├── lzma_.py ├── markdown ├── markdown.py ├── markdown2 ├── md5 ├── md5.py ├── md5cd ├── md5cd.py ├── meld ├── meld.py ├── menu ├── menu.py ├── menu.tcl.jinja2 ├── menu.yaml ├── mget ├── mget.py ├── mirror ├── mirror.bash ├── mirror.py ├── mkcd ├── mkcd.py ├── mkpasswd ├── mkpasswd.py ├── mksshkeys ├── mksshkeys.py ├── mousepad ├── mousepad.py ├── mp3 ├── mp3.py ├── mp4 ├── mp4.py ├── mv ├── mvn ├── mvn.py ├── mypy ├── myqdel ├── myqdel.py ├── myqexec ├── myqexec.py ├── myqsd ├── myqsd.py ├── myqstat ├── myqstat.py ├── myqsub ├── myqsub.py ├── myqwrap.py ├── nautilus ├── nautilus.py ├── netnice ├── netnice.py ├── netroute ├── netroute.py ├── network_mod.py ├── nexus3 ├── nexus3-venv ├── node ├── npm ├── ntpdate ├── ntpdate.py ├── ntplib ├── ntplib_.py ├── ocr ├── ocr.py ├── ogg ├── ogg.py ├── open ├── open.py ├── padman ├── padman.py ├── par2 ├── pause ├── pause.py ├── pbsetup ├── pbsetup.py ├── pdf ├── pdf.py ├── pidgin ├── pidgin.py ├── pip ├── pip3 ├── play ├── play.py ├── poetry ├── pop ├── pop.jar ├── pop.py ├── power_mod.py ├── poweroff ├── pyc ├── pyc.py ├── pycodestyle ├── pydisasm ├── pydisasm-venv ├── pydoc3 ├── pyflakes ├── pyld_gen.py ├── pyld_mod.bash ├── pyld_mod.py ├── pylint ├── pyprof ├── pyprof.py ├── python ├── python2 ├── python2.7 ├── python3 ├── python3.10 ├── python3.11 ├── python3.12 ├── python3.13 ├── python3.7 ├── python3.8 ├── python3.9 ├── pyz ├── pyz.py ├── qdel ├── qemu-compress ├── qemu-mount ├── qemu-trim ├── qemu-umount ├── qemu_mod.bash ├── qstat ├── qsub ├── random ├── random_.py ├── readcd ├── readcd.py ├── ripcd ├── ripcd.py ├── ripdvd ├── ripdvd.py ├── rm ├── robo3t ├── robo3t.py ├── rotate ├── rotate.py ├── rpm ├── rpm.py ├── run ├── run.py ├── safe_mod.bash ├── sandbox ├── sandbox.py ├── say ├── say.py ├── scalar ├── scalar.py ├── scp ├── sdd ├── sdd.py ├── sequence ├── sequence.py ├── sha256 ├── sha256.py ├── sha512 ├── sha512.py ├── shotcut ├── shotcut.py ├── shuffle ├── shuffle.py ├── smount ├── smount.py ├── soffice ├── soffice.py ├── sqlplus ├── sqlplus.py ├── sqlplus64 ├── ssh ├── ssh-askpass ├── ssh_askpass_.py ├── ssync ├── ssync.py ├── subtask_mod.py ├── sudo ├── sudo.py ├── sumount ├── sumount.py ├── svncviewer ├── svncviewer.py ├── swell-foop ├── swell_foop_.py ├── sysinfo ├── sysinfo.py ├── sysinfo.sh ├── systemd-analyze ├── systemd_analyze_.py ├── tar ├── tar.py ├── tar_py.py ├── task_mod.py ├── terraform ├── test_command_mod.py ├── test_pyld_mod.py ├── tiller ├── tinyproxy ├── tinyproxy.py ├── tkill ├── tkill.py ├── tls ├── tls.py ├── tmux ├── tmux.py ├── tocapital ├── tocapital.py ├── tolower ├── tolower.py ├── top ├── top.py ├── toupper ├── toupper.py ├── twait ├── twait.py ├── twine ├── un7z ├── un7z.py ├── unace ├── unace.py ├── unbz2 ├── unbz2.py ├── undeb ├── undeb.py ├── undmg ├── undmg.py ├── ungpg ├── ungpg.py ├── ungz ├── ungz.py ├── uninitrd ├── uninitrd.py ├── uniso ├── uniso.py ├── unjar ├── unjar.py ├── unlzma ├── unpdf ├── unpdf.py ├── unpyc ├── unpyc-venv ├── unpyc.py ├── unrar ├── unrar.py ├── unrpm ├── unrpm.py ├── unsqlite ├── unsqlite.py ├── unsquashfs ├── unsquashfs.py ├── untar ├── untar.py ├── untar_py.py ├── unwine ├── unwine.py ├── unxz ├── unxz.py ├── unz ├── unz.py ├── unzip ├── unzip.py ├── unzst ├── unzst.py ├── urldecode ├── urldecode.py ├── ut ├── ut.py ├── vbox ├── vbox.py ├── venv-ansible ├── venv-appimage-builder ├── venv-awscli ├── venv-cqlsh ├── venv-devpi-client ├── venv-django ├── venv-docker-compose ├── venv-dropbox ├── venv-flask ├── venv-glances ├── venv-imagehash ├── venv-mypy ├── venv-nexus3-cli ├── venv-poetry ├── venv-twine ├── venv-xdis ├── venv-yt-dlp ├── venv_mod.bash ├── vfile ├── vfile.py ├── vget ├── vget.py ├── vi ├── view ├── view.py ├── vim ├── vim.py ├── virtualbox ├── virtualbox.py ├── virtualenv ├── vlc ├── vlc.py ├── vlcget ├── vlcget.py ├── vmware ├── vmware.py ├── vncpasswd ├── vncpasswd.py ├── vncserver ├── vncserver.py ├── vncviewer ├── vncviewer.py ├── vplay ├── vplay.py ├── warsow ├── wav ├── wav.py ├── weather ├── weather.py ├── wesnoth ├── wesnoth.py ├── wget ├── wget.py ├── wine ├── wine.py ├── wine64 ├── wipe ├── xcalc ├── xcalc.py ├── xclip ├── xclip.py ├── xdesktop ├── xdesktop.py ├── xdiff ├── xdiff.py ├── xedit ├── xedit.py ├── xfreerdp.tcl ├── xlight ├── xlight.py ├── xlock ├── xlock.py ├── xlogout ├── xlogout.py ├── xmail ├── xmail.py ├── xmixer ├── xmixer.py ├── xml ├── xml_.py ├── xmlformat ├── xmlformat.py ├── xournal ├── xournal.py ├── xreset ├── xreset.py ├── xrun ├── xrun.py ├── xrun.tcl ├── xsnapshot ├── xsnapshot.py ├── xsudo ├── xsudo.bat ├── xsudo.py ├── xterm ├── xterm.py ├── xvolume ├── xvolume.py ├── xweb ├── xweb.py ├── xz ├── xz.py ├── yaml ├── yaml_.py ├── yping ├── yping.py ├── yt-dlp ├── z ├── z.py ├── zcat ├── zcat.py ├── zgrep ├── zgrep.py ├── zhspeak ├── zhspeak.py ├── zhspeak.tcl ├── zip ├── zip.py ├── zoom ├── zst ├── zst.py ├── zstd └── zstd_.py ├── cloudformation ├── 1pxy │ ├── 1pxy.json │ ├── Makefile │ └── submit.bash └── multi-stacks │ ├── Makefile │ ├── main_stack.json │ ├── pxy_stack.json │ ├── sg_stack.json │ └── submit.bash ├── codefresh.yaml ├── compile ├── COMPILE-7zip.bash ├── COMPILE-aria2.bash ├── COMPILE-cutils.bash ├── COMPILE-git-lfs.bash ├── COMPILE-git.bash ├── COMPILE-helm.bash ├── COMPILE-libdvdcss.bash ├── COMPILE-openmpi.bash ├── COMPILE-par2.bash ├── COMPILE-python2.7.bash ├── COMPILE-python3.11+.bash ├── COMPILE-python3.7.bash ├── COMPILE-python3.8-3.10.bash ├── COMPILE-tinyproxy.bash ├── COMPILE-tmux.bash ├── COMPILE-unace.bash ├── COMPILE-unrar.bash ├── COMPILE-unzip.bash ├── COMPILE-xz-utils.bash ├── COMPILE-zip.bash └── COMPILE-zstd.bash ├── config ├── Xresources ├── autostart-opt.bash ├── autostart.bash ├── autostart.desktop ├── bashrc ├── bootstart.bash ├── config ├── config-opt ├── gitconfig ├── iptables.conf ├── login ├── mimeapps.list ├── minttyrc ├── profile ├── profile-opt ├── rc.local ├── rc.local-opt ├── setup.bat ├── setupwin.ash ├── terminalrc ├── tmux.conf ├── userapp-evince.desktop ├── userapp-gqview.desktop ├── userapp-soffice.desktop ├── userapp-vlc.desktop ├── vimrc ├── vm-linux0.vbox └── vm-win10.vbox ├── cookiecutter ├── Makefile └── docker │ ├── cookiecutter.json │ └── {{cookiecutter.project_name}} │ ├── Dockerfile │ └── Makefile ├── dist ├── debian_10_amd64.dist ├── debian_10_i386.dist ├── debian_11_amd64.dist ├── debian_11_i386.dist ├── debian_12+_amd64.dist ├── debian_12_amd64.dist ├── debian_12_arm64.dist ├── debian_12_i386.dist ├── debian_13_amd64.dist ├── debian_13_i386.dist ├── debian_4_amd64.dist ├── debian_5_amd64.dist ├── debian_6_amd64.dist ├── debian_7_amd64.dist ├── debian_8_amd64.dist ├── debian_9_amd64.dist ├── debian_sid_amd64.dist └── debian_sid_i386.dist ├── docker ├── Makefile ├── almalinux-8 │ ├── Dockerfile │ └── Makefile ├── almalinux-9 │ ├── Dockerfile │ └── Makefile ├── alpine-3.17 │ ├── Dockerfile │ └── Makefile ├── alpine-3.18 │ ├── Dockerfile │ └── Makefile ├── bin │ ├── bash2ash │ ├── create-rootfs.bash │ └── pull-save.bash ├── busybox-1.36 │ ├── Dockerfile │ └── Makefile ├── centos-7 │ ├── CentOS-Base.repo │ ├── CentOS-CR.repo │ ├── Dockerfile │ └── Makefile ├── debian-10 │ ├── Dockerfile │ └── Makefile ├── debian-11 │ ├── Dockerfile │ └── Makefile ├── debian-12 │ ├── Dockerfile │ ├── Makefile │ ├── ops │ │ ├── Dockerfile │ │ └── Makefile │ ├── wine │ │ ├── Dockerfile │ │ └── Makefile │ └── xfce │ │ ├── Dockerfile │ │ ├── Makefile │ │ └── files │ │ ├── allow-owner │ │ ├── docker-init │ │ └── xstartup ├── golang-1.22 │ ├── Dockerfile │ └── Makefile ├── httpd-2.4 │ ├── Dockerfile │ ├── Makefile │ ├── files │ │ └── httpd.conf │ └── public-html │ │ ├── index.html │ │ ├── testlcd.js │ │ └── testlcd.xhtml ├── i386-alpine-3.18 │ ├── Dockerfile │ └── Makefile ├── i386-debian-11 │ ├── Dockerfile │ └── Makefile ├── i386-debian-12 │ ├── Dockerfile │ └── Makefile ├── nginx-1.26 │ ├── Dockerfile │ ├── Makefile │ └── files │ │ └── nginx-proxy.conf ├── oraclelinux-8 │ ├── Dockerfile │ └── Makefile ├── oraclelinux-9 │ ├── Dockerfile │ └── Makefile ├── python-3.12 │ ├── Dockerfile │ ├── Makefile │ ├── devpi │ │ ├── Dockerfile │ │ └── Makefile │ └── pip │ │ ├── Dockerfile │ │ └── Makefile ├── registry-2.6 │ ├── Dockerfile │ ├── Makefile │ └── files │ │ └── config.yaml ├── rockylinux-8 │ ├── Dockerfile │ └── Makefile ├── rockylinux-9 │ ├── Dockerfile │ └── Makefile ├── scratch │ ├── Dockerfile │ └── Makefile ├── ubuntu-20.04 │ ├── Dockerfile │ └── Makefile ├── ubuntu-22.04 │ ├── Dockerfile │ └── Makefile └── ubuntu-24.04 │ ├── Dockerfile │ └── Makefile ├── etc ├── python-packages.bash ├── python-requirements.txt ├── python-requirements_2.7.txt ├── python-requirements_3.10.txt ├── python-requirements_3.10mac.txt ├── python-requirements_3.11mac.txt ├── python-requirements_3.7.txt ├── python-requirements_3.8.txt ├── python-requirements_3.9.txt ├── python-requirements_3.9mac.txt ├── setbin ├── setbin.bat └── setbin.ps1 ├── helm ├── Makefile ├── bin │ └── helm-save.bash ├── etcd │ ├── Makefile │ └── values.yaml ├── grafana │ ├── Makefile │ └── values.yaml ├── jenkins │ ├── Makefile │ └── values.yaml ├── mongodb │ ├── Makefile │ └── values.yaml ├── nexus │ ├── Makefile │ └── values.yaml ├── nginx │ ├── Makefile │ └── values.yaml ├── oracle-xe │ ├── Makefile │ ├── drtuxwang │ │ └── oracle-xe │ │ │ ├── Chart.yaml │ │ │ ├── templates │ │ │ ├── _helpers.tpl │ │ │ ├── box-headless-service.yaml │ │ │ ├── box-service.yaml │ │ │ └── box-statefulset.yaml │ │ │ └── values.yaml │ └── values.yaml ├── prometheus │ ├── Makefile │ └── values.yaml ├── pushgateway │ ├── Makefile │ └── values.yaml ├── rabbitmq │ ├── Makefile │ └── values.yaml ├── test-box │ ├── Makefile │ ├── drtuxwang │ │ └── test-box │ │ │ ├── Chart.yaml │ │ │ ├── templates │ │ │ ├── _helpers.tpl │ │ │ └── box-deployment.yaml │ │ │ └── values.yaml │ └── values.yaml ├── test-server │ ├── Makefile │ ├── drtuxwang │ │ └── test-server │ │ │ ├── Chart.yaml │ │ │ ├── requirements.lock │ │ │ ├── requirements.yaml │ │ │ ├── templates │ │ │ ├── _helpers.tpl │ │ │ ├── box-headless-service.yaml │ │ │ ├── box-ingress.yaml │ │ │ ├── box-secret-tls.yaml │ │ │ ├── box-service.yaml │ │ │ └── box-statefulset.yaml │ │ │ └── values.yaml │ └── values.yaml └── xfce-server │ ├── Makefile │ ├── drtuxwang │ └── xfce-server │ │ ├── Chart.yaml │ │ ├── requirements.lock │ │ ├── requirements.yaml │ │ ├── templates │ │ ├── _helpers.tpl │ │ ├── box-headless-service.yaml │ │ ├── box-service.yaml │ │ └── box-statefulset.yaml │ │ └── values.yaml │ └── values.yaml ├── kubernetes ├── Makefile ├── bin │ ├── kube-connect.bash │ └── kube-save.bash ├── monitor-host │ ├── Makefile │ └── monitor-host-daemonset.yaml ├── nginx-proxy-fwd │ ├── Makefile │ ├── nginx-proxy-fwd.conf │ └── nginx-proxy-fwd.yaml ├── socat-fwd │ ├── Makefile │ └── socat-fwd.yaml ├── test-box │ ├── Makefile │ └── test-box.yaml ├── test-cronjob │ ├── Makefile │ └── test-cronjob.yaml ├── test-server │ ├── Makefile │ ├── test-server-daemonset.yaml │ ├── test-server-deployment.yaml │ ├── test-server-headless-service.yaml │ ├── test-server-ingress.yaml │ ├── test-server-pod.yaml │ ├── test-server-replicationcontroller.yaml │ ├── test-server-secret-tls.yaml │ ├── test-server-service.yaml │ └── test-server-statefulset.yaml └── test-storage │ ├── Makefile │ ├── test-storage-pv.yaml │ └── test-storage-statefulset.yaml ├── python ├── simple-cython │ ├── Makefile │ ├── cython_example.pyx │ └── run.py ├── simple-flask │ ├── Makefile │ ├── simple_flask.py │ └── templates │ │ └── hello.html ├── simple-package │ ├── Makefile │ ├── hello │ │ ├── __init__.py │ │ └── message.py │ ├── run.py │ └── setup.py └── simple-tornado │ ├── Makefile │ ├── tornado_client.py │ └── tornado_server.py ├── qemu ├── debian10-32.bash ├── debian10.bash ├── debian11.bash ├── debian12-arm.bash ├── debian12.bash ├── debian4.bash ├── debian5.bash ├── debian6.bash ├── debian7.bash ├── debian8.bash ├── debian9.bash ├── qemu-system-aarch64.bash ├── qemu-system-x86_64.bash ├── windows10.bash ├── windows51-32.bash ├── windows60-32.bash ├── windows61-32.bash └── windows63-32.bash ├── terraform-aws ├── 1pxy │ ├── aws_config.tf │ ├── aws_resources.tf │ ├── pxy_resources.tf │ └── pxy_variables.tf └── pxy-as │ ├── aws_config.tf │ ├── aws_resources.tf │ ├── pxy_resources.tf │ └── pxy_variables.tf ├── wipe ├── Makefile └── wipe.c └── zhspeak ├── Makefile ├── README.md ├── dicts.7z └── voices.7z /.gitattributes: -------------------------------------------------------------------------------- 1 | **/*.7z filter=lfs diff=lfs merge=lfs -text 2 | -------------------------------------------------------------------------------- /.pylintrc: -------------------------------------------------------------------------------- 1 | # 2 | # Use "pylint --generate-rcfile" for template 3 | # 4 | 5 | [MASTER] 6 | jobs=0 7 | 8 | [MESSAGES CONTROL] 9 | # Use "python3.exe -X utf8" for Python 3.7+ UTF-8 files on Windows 10 | disable=duplicate-code,unspecified-encoding 11 | 12 | [REPORTS] 13 | output-format=parseable 14 | ##reports=yes 15 | 16 | [TYPECHECK] 17 | generated-members= 18 | 19 | [FORMAT] 20 | max-line-length=79 21 | -------------------------------------------------------------------------------- /ansible/ansible.cfg: -------------------------------------------------------------------------------- 1 | [defaults] 2 | remote_tmp = /tmp/$USER/.ansible 3 | retry_files_enabled = false 4 | callback_enabled = profile_tasks 5 | timeout = 60 6 | 7 | [privilege_escalation] 8 | become = false 9 | become_method = su 10 | become_exe = sudo su - 11 | become_user = root 12 | 13 | [ssh_connection] 14 | ssh_args = -o ControlMaster=auto -o ControlPersist=60s 15 | pipelining = true 16 | -------------------------------------------------------------------------------- /ansible/bin/show-tags.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | cd ${0%/*}/.. 4 | 5 | for FILE in $(find * \( -name "*.yaml" -o -name "*.yml" \) | sort) 6 | do 7 | sed ':a;N;$!ba;s/\n *- */ /g' $FILE | grep tags: | sed -e "s/.*tags: //;s/ /\\n/" | \ 8 | sort | uniq | sed -e "s@^@$FILE: @" 9 | done 10 | -------------------------------------------------------------------------------- /ansible/bin/ssh-keys.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | cd "${0%/*}/.." 4 | 5 | for HOST in $* 6 | do 7 | ANSIBLE_USER=$(ansible-inventory --inventory=inventory/my_nodes --host "$HOST" --yaml 2> /dev/null | awk '/ansible_user: / {printf("%s@", $2)}') 8 | for KEY in $(ssh -G "$ANSIBLE_USER$HOST" 2> /dev/null | awk '/^identityfile / {print $2}' | sed -e "s@\~@$HOME@") 9 | do 10 | if [ -f "$KEY" ] 11 | then 12 | ID=$(awk '{print $3}' "$KEY.pub" 2> /dev/null) 13 | if [ ! "$(ssh-add -l 2> /dev/null | grep -E " ($KEY|$ID) ")" -a "$SSH_AUTH_SOCK" ] 14 | then 15 | echo -e "\033[33mSSH key for $ANSIBLE_USER$HOST: ssh-add $KEY\033[0m" 16 | ssh-add $KEY 17 | fi 18 | break 19 | fi 20 | done 21 | done 22 | -------------------------------------------------------------------------------- /ansible/inventory/group_vars/all: -------------------------------------------------------------------------------- 1 | config_directory: ../config 2 | -------------------------------------------------------------------------------- /ansible/inventory/group_vars/my: -------------------------------------------------------------------------------- 1 | ansible_python_interpreter: /opt/software/bin/python3 2 | home: /home 3 | -------------------------------------------------------------------------------- /ansible/inventory/group_vars/my_local_hosts: -------------------------------------------------------------------------------- 1 | cmdline_apps: true 2 | guest_user: true 3 | gui_apps: true 4 | sudo_commands: true 5 | zram_swap: true 6 | -------------------------------------------------------------------------------- /ansible/inventory/group_vars/my_vm_hosts: -------------------------------------------------------------------------------- 1 | dhclient_call: true 2 | vm_9pnet: true 3 | vm_guest: true 4 | -------------------------------------------------------------------------------- /ansible/inventory/host_vars/debian11.vm: -------------------------------------------------------------------------------- 1 | cmdline_apps: true 2 | dhclient_call: false 3 | gui_apps: true 4 | sudo_commands: true 5 | vncserver: true 6 | -------------------------------------------------------------------------------- /ansible/inventory/host_vars/debian12.vm: -------------------------------------------------------------------------------- 1 | cmdline_apps: true 2 | dhclient_call: false 3 | gui_apps: true 4 | sudo_commands: true 5 | vncserver: true 6 | -------------------------------------------------------------------------------- /ansible/inventory/host_vars/debianmac.vm: -------------------------------------------------------------------------------- 1 | cmdline_apps: true 2 | dhclient_call: false 3 | gui_apps: true 4 | sudo_commands: true 5 | vncserver: true 6 | -------------------------------------------------------------------------------- /ansible/inventory/host_vars/hotdog.local: -------------------------------------------------------------------------------- 1 | clamav_directory: /mnt/data1/var/lib/clamav 2 | download_rate: 32000 3 | -------------------------------------------------------------------------------- /ansible/inventory/host_vars/koko.local: -------------------------------------------------------------------------------- 1 | clamav_directory: /mnt/data1/var/lib/clamav 2 | docker_daemon: true 3 | download_rate: 32000 4 | vm_host: true 5 | -------------------------------------------------------------------------------- /ansible/inventory/host_vars/netbook.local: -------------------------------------------------------------------------------- 1 | charge_start: 0 2 | charge_stop: 60 3 | guest_user: false 4 | portable: true 5 | -------------------------------------------------------------------------------- /ansible/inventory/host_vars/netty.local: -------------------------------------------------------------------------------- 1 | htop_ver: 2 2 | -------------------------------------------------------------------------------- /ansible/inventory/host_vars/ryson.local: -------------------------------------------------------------------------------- 1 | clamav_directory: /mnt/data1/var/lib/clamav 2 | docker_daemon: true 3 | download_rate: 32000 4 | vm_host: true 5 | -------------------------------------------------------------------------------- /ansible/inventory/host_vars/ryzen.local: -------------------------------------------------------------------------------- 1 | clamav_directory: /mnt/data1/var/lib/clamav 2 | docker_daemon: true 3 | download_rate: 32000 4 | vm_host: true 5 | -------------------------------------------------------------------------------- /ansible/inventory/host_vars/viva.local: -------------------------------------------------------------------------------- 1 | charge_start: 0 2 | charge_stop: 60 3 | guest_user: false 4 | portable: true 5 | -------------------------------------------------------------------------------- /ansible/inventory/host_vars/webtv.local: -------------------------------------------------------------------------------- 1 | download_rate: 32000 2 | -------------------------------------------------------------------------------- /ansible/inventory/host_vars/xiaobear.local: -------------------------------------------------------------------------------- 1 | download_rate: 32000 2 | -------------------------------------------------------------------------------- /ansible/inventory/my_nodes: -------------------------------------------------------------------------------- 1 | [my:children] 2 | my_local_hosts 3 | my_vm_hosts 4 | 5 | [my_local_hosts] 6 | wolfdale.local ansible_user=admin 7 | xiaobear.local ansible_user=admin 8 | hotdog.local ansible_user=admin 9 | snoopy.local ansible_user=admin 10 | viva.local ansible_user=admin 11 | koko.local ansible_user=admin 12 | ryzen.local ansible_user=admin 13 | ryson.local ansible_user=admin 14 | 15 | [my_vm_hosts] 16 | debian11.vm ansible_user=admin 17 | debian12.vm ansible_user=admin 18 | debianmac.vm ansible_user=admin 19 | -------------------------------------------------------------------------------- /ansible/my_playbook.yaml: -------------------------------------------------------------------------------- 1 | - hosts: my 2 | vars: 3 | ansible_python_interpreter: /opt/software/bin/python3 4 | roles: 5 | - role: ansible-user 6 | - role: local-system 7 | - role: local-users 8 | -------------------------------------------------------------------------------- /ansible/roles/local-system/defaults/main.yaml: -------------------------------------------------------------------------------- 1 | docker_daemon: false 2 | dhclient_call: false 3 | portable: false 4 | sudo_commands: false 5 | vm_9pnet: false 6 | vm_guest: false 7 | vm_host: false 8 | vm_vboxsf: false 9 | zram_swap: false 10 | 11 | bin_directory: ../../bin 12 | data2_mount: null 13 | 14 | charge_start: 60 15 | charge_stop: 80 16 | -------------------------------------------------------------------------------- /ansible/roles/local-system/files/iptables: -------------------------------------------------------------------------------- 1 | iptables -P FORWARD DROP 2 | iptables -P INPUT DROP 3 | iptables -P OUTPUT ACCEPT 4 | -------------------------------------------------------------------------------- /ansible/roles/local-system/files/nopasswd-users: -------------------------------------------------------------------------------- 1 | %users ALL=NOPASSWD:/usr/sbin/tlp fullcharge 2 | %users ALL=NOPASSWD:/opt/software/bin/xlight 3 | -------------------------------------------------------------------------------- /ansible/roles/local-system/tasks/main.yaml: -------------------------------------------------------------------------------- 1 | - name: Import "system-setup.yaml" tasks 2 | import_tasks: system-setup.yaml 3 | become: true 4 | tags: 5 | - local-system 6 | 7 | - name: Check "/etc/tlp.conf" file status 8 | stat: 9 | path: /etc/tlp.conf 10 | register: tlp_conf 11 | tags: 12 | - local-system 13 | - tlp-config 14 | 15 | - name: Import "tlp-setup.yaml" tasks 16 | when: tlp_conf.stat.exists 17 | import_tasks: tlp-setup.yaml 18 | become: true 19 | tags: 20 | - local-system 21 | - tlp-config 22 | -------------------------------------------------------------------------------- /ansible/roles/local-system/tasks/tlp-setup.yaml: -------------------------------------------------------------------------------- 1 | - name: Enable power saving settings /etc/tlp.conf 2 | loop: 3 | - USB_EXCLUDE_PHONE 4 | - RESTORE_THRESHOLDS_ON_BAT 5 | lineinfile: 6 | path: /etc/tlp.conf 7 | regexp: '^.*{{ item }}=.*$' 8 | line: '{{ item }}=1' 9 | backrefs: yes 10 | tags: 11 | - local-system 12 | - tlp-config 13 | 14 | - name: Set start charging threshold in /etc/tlp.conf 15 | loop: 16 | - START_CHARGE_THRESH_BAT0 17 | - START_CHARGE_THRESH_BAT1 18 | lineinfile: 19 | path: /etc/tlp.conf 20 | regexp: '^.*{{ item }}=.*$' 21 | line: '{{ item }}={{ charge_start }}' 22 | backrefs: yes 23 | tags: 24 | - local-system 25 | - tlp-config 26 | 27 | - name: Set stop charging threshold in /etc/tlp.conf 28 | loop: 29 | - STOP_CHARGE_THRESH_BAT0 30 | - STOP_CHARGE_THRESH_BAT1 31 | lineinfile: 32 | path: /etc/tlp.conf 33 | regexp: '^.*{{ item }}=.*$' 34 | line: '{{ item }}={{ charge_stop }}' 35 | backrefs: yes 36 | tags: 37 | - local-system 38 | - tlp-config 39 | -------------------------------------------------------------------------------- /ansible/roles/local-users/defaults/main.yaml: -------------------------------------------------------------------------------- 1 | guest_user: false 2 | -------------------------------------------------------------------------------- /ansible/roles/local-users/meta/main.yaml: -------------------------------------------------------------------------------- 1 | dependencies: 2 | - role: user-home 3 | become: true 4 | user: root 5 | group: root 6 | home_directory: /root 7 | home_mod: 0700 8 | - role: user-home 9 | user: admin 10 | group: users 11 | home_mod: 0700 12 | - role: user-home 13 | become: true 14 | user: owner 15 | group: users 16 | - role: user-home 17 | when: guest_user 18 | become: true 19 | user: guest 20 | group: users 21 | -------------------------------------------------------------------------------- /ansible/roles/user-home/defaults/main.yaml: -------------------------------------------------------------------------------- 1 | cmdline_apps: false 2 | gui_apps: false 3 | vncserver: false 4 | 5 | download_rate: null 6 | htop_ver: 3 7 | -------------------------------------------------------------------------------- /ansible/roles/user-home/files/animate.desktop: -------------------------------------------------------------------------------- 1 | [Desktop Entry] 2 | Version=1.0 3 | Type=Application 4 | Name=Animate 5 | TryExec=vlc 6 | Exec=vlc --no-repeat --no-loop --noaudio %f 7 | Categories=X-Geeqie; 8 | OnlyShowIn=X-Geeqie; 9 | -------------------------------------------------------------------------------- /ansible/roles/user-home/files/gimp.desktop: -------------------------------------------------------------------------------- 1 | [Desktop Entry] 2 | Version=1.0 3 | Type=Application 4 | Name=GNU Image Manipulation Program 5 | TryExec=gimp 6 | Exec=gimp %U 7 | Categories=X-Geeqie; 8 | OnlyShowIn=X-Geeqie; 9 | -------------------------------------------------------------------------------- /ansible/roles/user-home/files/play.desktop: -------------------------------------------------------------------------------- 1 | [Desktop Entry] 2 | Version=1.0 3 | Type=Application 4 | Name=Play 5 | TryExec=vlc 6 | Exec=vlc --no-repeat --no-loop %f 7 | Categories=X-Geeqie; 8 | OnlyShowIn=X-Geeqie; 9 | -------------------------------------------------------------------------------- /ansible/roles/user-home/files/rotate-270.desktop: -------------------------------------------------------------------------------- 1 | [Desktop Entry] 2 | Version=1.0 3 | Type=Application 4 | Name=Losslessly rotate JPEG image counterclockwise 5 | 6 | # call the helper script 7 | TryExec=rotate 8 | Exec=rotate -r 270 %f 9 | 10 | # Desktop files that are usable only in Geeqie should be marked like this: 11 | Categories=X-Geeqie; 12 | OnlyShowIn=X-Geeqie; 13 | 14 | # Show in menu "Edit/Orientation" 15 | X-Geeqie-Menu-Path=EditMenu/OrientationMenu 16 | 17 | # It can be made verbose 18 | # X-Geeqie-Verbose=true 19 | 20 | MimeType=image/jpeg;image/png;image/webp; 21 | -------------------------------------------------------------------------------- /ansible/roles/user-home/files/rotate-90.desktop: -------------------------------------------------------------------------------- 1 | [Desktop Entry] 2 | Version=1.0 3 | Type=Application 4 | Name=Losslessly rotate JPEG image clockwise 5 | 6 | # call the helper script 7 | TryExec=rotate 8 | Exec=rotate -r 90 %f 9 | 10 | # Desktop files that are usable only in Geeqie should be marked like this: 11 | Categories=X-Geeqie; 12 | OnlyShowIn=X-Geeqie; 13 | 14 | # Show in menu "Edit/Orientation" 15 | X-Geeqie-Menu-Path=EditMenu/OrientationMenu 16 | 17 | # It can be made verbose 18 | # X-Geeqie-Verbose=true 19 | 20 | MimeType=image/jpeg;image/png;image/webp; 21 | -------------------------------------------------------------------------------- /ansible/roles/user-home/tasks/cmdline-apps.yaml: -------------------------------------------------------------------------------- 1 | - name: Ensure "{{ home_directory }}/.config/htop" directory exists 2 | file: 3 | path: '{{ home_directory }}/.config/htop' 4 | state: directory 5 | owner: '{{ user }}' 6 | group: '{{ group }}' 7 | tags: 8 | - user-home 9 | - htop 10 | 11 | - name: Template file to "{{ home_directory }}/.config/htop/htoprc" 12 | template: 13 | src: htoprc 14 | dest: '{{ home_directory }}/.config/htop/' 15 | owner: '{{ user }}' 16 | group: '{{ group }}' 17 | mode: '0600' 18 | tags: 19 | - user-home 20 | - htop 21 | 22 | - name: Copy file to "{{ home_directory }}/.tmux.conf" 23 | copy: 24 | src: '{{ config_directory }}/tmux.conf' 25 | dest: '{{ home_directory }}/.tmux.conf' 26 | owner: '{{ user }}' 27 | group: '{{ group }}' 28 | mode: '0600' 29 | tags: 30 | - user-home 31 | - tmux 32 | -------------------------------------------------------------------------------- /ansible/roles/user-home/templates/bootstart.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | # Optional input environment 4 | ARG=${1:-} 5 | 6 | # Fix logging 7 | [ "$ARG" != "-start" ] && mkdir -p /tmp/$(id -un) && exec $0 -start > /tmp/$(id -un)/.bootstart.log 2>&1 8 | 9 | # Setup bash 10 | export TERM=xterm 11 | source $HOME/.profile 12 | [ ! "$BASE_PATH" ] && export BASE_PATH="$PATH" 13 | export PATH="$HOME/software/scripts:$HOME/software/bin:/opt/software/bin:$BASE_PATH" 14 | export TMPDIR=${TMPDIR:-/tmp/$(id -un)} 15 | 16 | # Update "/home/owner/software/web-data/pages" web pages 17 | sleep 300 && $HOME/software/scripts/pull-web.bash & 18 | 19 | # Start VNC Server for VMs and live boot 20 | {% if vncserver %} 21 | echo x | vncserver -SecurityTypes=None & 22 | {% else %} 23 | ##echo x | vncserver -SecurityTypes=None & 24 | {% endif %} 25 | -------------------------------------------------------------------------------- /ansible/roles/user-home/templates/htoprc: -------------------------------------------------------------------------------- 1 | account_guest_in_cpu_meter=0 2 | color_scheme=6 3 | cpu_count_from_one=1 4 | degree_fahrenheit=0 5 | delay=50 6 | detailed_cpu_time=1 7 | enable_mouse=1 8 | fields=48 0 3 4 17 18 38 39 46 49 1 9 | find_comm_in_cmdline=1 10 | header_margin=0 11 | hide_function_bar=0 12 | hide_kernel_threads=0 13 | hide_userland_threads=1 14 | highlight_base_name=1 15 | highlight_changes=0 16 | highlight_changes_delay_secs=5 17 | highlight_megabytes=1 18 | highlight_threads=1 19 | left_meter_modes=2 2 2 20 | left_meters=CPU Memory Swap 21 | right_meter_modes=2 2 2 22 | right_meters=LoadAverage Tasks Battery 23 | shadow_other_users=1 24 | show_cpu_frequency=0 25 | show_cpu_temperature=0 26 | show_cpu_usage=1 27 | show_merged_command=0 28 | show_program_path=1 29 | show_thread_names=0 30 | {% if htop_ver == 2 %} 31 | sort_direction=1 32 | {% else %} 33 | sort_direction=-1 34 | {% endif %} 35 | sort_key=46 36 | strip_exe_from_cmdline=1 37 | tree_sort_direction=1 38 | tree_sort_key=0 39 | tree_view=0 40 | tree_view_always_by_pid=0 41 | update_process_names=0 42 | -------------------------------------------------------------------------------- /ansible/roles/user-home/templates/netnice.json: -------------------------------------------------------------------------------- 1 | { 2 | "trickle": { 3 | "download": {{ download_rate }} 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /ansible/roles/user-home/vars/main.yaml: -------------------------------------------------------------------------------- 1 | home_directory: '/home/{{ user }}' 2 | home_mod: 0711 3 | -------------------------------------------------------------------------------- /appimage/0ad-0.0.26-deb11/Makefile: -------------------------------------------------------------------------------- 1 | .PHONY: default 2 | default: build test # Default 3 | 4 | .PHONY: status 5 | status: # Status of AppImage 6 | @ls -l 7 | 8 | .PHONY: build 9 | build: # Build Docker images 10 | ../bin/build-appimage.bash AppImageBuilder.yaml 11 | 12 | .PHONY: test 13 | test: # Run tests 14 | @echo 15 | ./*.AppImage --appimage-help ||: 16 | @echo 17 | ../bin/check-debs.bash AppImageBuilder.yaml 18 | @echo 19 | ./*.AppImage --version 20 | @echo 21 | ls -l *.AppImage 22 | 23 | .PHONY: clean 24 | clean: # Remove temporary build files 25 | rm -rf AppDir appimage-build *.AppImage *.zsync 26 | 27 | .PHONY: help 28 | help: # Show Makefile options 29 | @grep "^[A-Za-z0-9].*:" $(lastword $(MAKEFILE_LIST)) 30 | -------------------------------------------------------------------------------- /appimage/0ad-0.0.26-deb12/Makefile: -------------------------------------------------------------------------------- 1 | .PHONY: default 2 | default: build test # Default 3 | 4 | .PHONY: status 5 | status: # Status of AppImage 6 | @ls -l 7 | 8 | .PHONY: build 9 | build: # Build Docker images 10 | ../bin/build-appimage.bash AppImageBuilder.yaml 11 | 12 | .PHONY: test 13 | test: # Run tests 14 | @echo 15 | ./*.AppImage --appimage-help ||: 16 | @echo 17 | ../bin/check-debs.bash AppImageBuilder.yaml 18 | @echo 19 | ./*.AppImage --version 20 | @echo 21 | ls -l *.AppImage 22 | 23 | .PHONY: clean 24 | clean: # Remove temporary build files 25 | rm -rf AppDir appimage-build *.AppImage *.zsync 26 | 27 | .PHONY: help 28 | help: # Show Makefile options 29 | @grep "^[A-Za-z0-9].*:" $(lastword $(MAKEFILE_LIST)) 30 | -------------------------------------------------------------------------------- /appimage/Makefile: -------------------------------------------------------------------------------- 1 | BUILD_DIRS := \ 2 | 0ad-0.0.26-deb11 \ 3 | 0ad-0.0.26-deb12 \ 4 | bash-5.1.4-deb11 \ 5 | bash-5.2.15-deb12 \ 6 | vlc-3.0.18-deb12 \ 7 | wesnoth-1.14.15-deb11 \ 8 | wesnoth-1.16.8-deb11 \ 9 | wesnoth-1.16.9-deb12 10 | 11 | 12 | .PHONY: default 13 | default: status # Default 14 | 15 | .PHONY: status 16 | status: # Status of Appimage builds 17 | @for DIR in $(BUILD_DIRS); do \ 18 | ls -l $$DIR/*.AppImage 2> /dev/null ||:; \ 19 | done 20 | 21 | .PHONY: build 22 | build: # Build Appimage images 23 | for DIR in $(BUILD_DIRS); do \ 24 | make --no-print-directory --directory $$DIR build || exit 1:; \ 25 | done 26 | 27 | .PHONY: clean 28 | clean: # Remove temporary build files 29 | for DIR in $(BUILD_DIRS); do \ 30 | make --no-print-directory --directory $$DIR clean; \ 31 | done 32 | 33 | .PHONY: help 34 | help: # Show Makefile options 35 | @grep "^[A-Za-z0-9].*:" $(lastword $(MAKEFILE_LIST)) 36 | -------------------------------------------------------------------------------- /appimage/bash-5.1.4-deb11/AppImageBuilder.yaml: -------------------------------------------------------------------------------- 1 | version: 1 2 | 3 | script: 4 | - rm -rf ./AppDir || true 5 | 6 | AppDir: 7 | path: ./AppDir 8 | 9 | app_info: 10 | id: org.gnu.bash 11 | icon: utilities-terminal 12 | name: bash 13 | version: 5.1.4 14 | exec: bin/bash 15 | exec_args: $@ 16 | 17 | apt: 18 | sources: 19 | - sourceline: deb https://deb.debian.org/debian bullseye main contrib non-free 20 | - sourceline: deb https://deb.debian.org/debian bullseye-updates main contrib non-free 21 | - sourceline: deb https://security.debian.org bullseye-security main contrib non-free 22 | allow_unauthenticated: true 23 | arch: amd64 24 | include: 25 | - bash 26 | - libc6 27 | exclude: 28 | - dpkg 29 | - gcc-10-base 30 | - libcrypt1 31 | - libgcc-s1 32 | - libtinfo6 33 | 34 | files: 35 | exclude: 36 | - usr/share/doc 37 | - usr/share/locale 38 | - usr/share/man 39 | 40 | AppImage: 41 | arch: x86_64 42 | sign-key: None 43 | update-information: None 44 | -------------------------------------------------------------------------------- /appimage/bash-5.1.4-deb11/Makefile: -------------------------------------------------------------------------------- 1 | .PHONY: default 2 | default: build test # Default 3 | 4 | .PHONY: status 5 | status: # Status of AppImage 6 | @ls -l 7 | 8 | .PHONY: build 9 | build: # Build Docker images 10 | ../bin/build-appimage.bash AppImageBuilder.yaml 11 | 12 | .PHONY: test 13 | test: # Run tests 14 | @echo 15 | ./*.AppImage --appimage-help ||: 16 | @echo 17 | ../bin/check-debs.bash AppImageBuilder.yaml 18 | @echo 19 | ./*.AppImage --version 20 | @echo 21 | ls -l *.AppImage 22 | 23 | .PHONY: clean 24 | clean: # Remove temporary build files 25 | rm -rf AppDir appimage-build *.AppImage *.zsync 26 | 27 | .PHONY: help 28 | help: # Show Makefile options 29 | @grep "^[A-Za-z0-9].*:" $(lastword $(MAKEFILE_LIST)) 30 | -------------------------------------------------------------------------------- /appimage/bash-5.2.15-deb12/Makefile: -------------------------------------------------------------------------------- 1 | .PHONY: default 2 | default: build test # Default 3 | 4 | .PHONY: status 5 | status: # Status of AppImage 6 | @ls -l 7 | 8 | .PHONY: build 9 | build: # Build Docker images 10 | ../bin/build-appimage.bash AppImageBuilder.yaml 11 | 12 | .PHONY: test 13 | test: # Run tests 14 | @echo 15 | ./*.AppImage --appimage-help ||: 16 | @echo 17 | ../bin/check-debs.bash AppImageBuilder.yaml 18 | @echo 19 | ./*.AppImage --version 20 | @echo 21 | ls -l *.AppImage 22 | 23 | .PHONY: clean 24 | clean: # Remove temporary build files 25 | rm -rf AppDir appimage-build *.AppImage *.zsync 26 | 27 | .PHONY: help 28 | help: # Show Makefile options 29 | @grep "^[A-Za-z0-9].*:" $(lastword $(MAKEFILE_LIST)) 30 | -------------------------------------------------------------------------------- /appimage/bin/build-appimage.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | # 3 | # Build AppImage using "appimage-builder" 4 | # 5 | 6 | set -eu 7 | 8 | if [ $# = 0 ] 9 | then 10 | echo "Usage: $0 " 11 | exit 1 12 | 13 | elif [ ! "$(appimage-builder -h 2> /dev/null | grep "usage: appimage-builder")" ] 14 | then 15 | echo "$0: Error: Cannot find \"appimage-builder\" tool" 16 | exit 1 17 | elif [ ! "$(which patchelf)" ] 18 | then 19 | echo "$0: Error: Cannot find \"patchelf\" tools" 20 | exit 1 21 | fi 22 | 23 | export PATH="${0%/*}:/usr/lib/x86_64-linux-gnu/glib-2.0:$PATH" 24 | appimage-builder --recipe "$1" --skip-test 25 | -------------------------------------------------------------------------------- /appimage/bin/check-debs.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | # 3 | # Check debs are defined in Build AppImage using "appimage-builder" 4 | # 5 | 6 | set -eu 7 | 8 | if [ $# = 0 ] 9 | then 10 | echo "Usage: $0 " 11 | exit 1 12 | fi 13 | 14 | WARNINGS= 15 | for PACKAGE in $(ls -1 appimage-build/apt/archives/*.deb 2> /dev/null | sed -e "s@.*/@@;s/_.*//") 16 | do 17 | [ "$(grep -E "^ *- (-t +[^ ]+ |)${PACKAGE//+/\\+} *$" "$1")" ] || WARNINGS="$WARNINGS $PACKAGE" 18 | done 19 | if [ "$WARNINGS" ] 20 | then 21 | echo -e "Warning: Not defined in $1\c" 22 | echo "$WARNINGS" | sed -e "s/ /\\n# - /g" 23 | fi 24 | -------------------------------------------------------------------------------- /appimage/bin/gpg: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | echo "${0##*/} is disabled" 4 | -------------------------------------------------------------------------------- /appimage/bin/zsyncmake: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | echo "${0##*/} is disabled" 4 | -------------------------------------------------------------------------------- /appimage/vlc-3.0.18-deb12/Makefile: -------------------------------------------------------------------------------- 1 | .PHONY: default 2 | default: build test # Default 3 | 4 | .PHONY: status 5 | status: # Status of AppImage 6 | @ls -l 7 | 8 | .PHONY: build 9 | build: # Build Docker images 10 | ../bin/build-appimage.bash AppImageBuilder.yaml 11 | 12 | .PHONY: test 13 | test: # Run tests 14 | @echo 15 | ./*.AppImage --appimage-help ||: 16 | @echo 17 | ../bin/check-debs.bash AppImageBuilder.yaml 18 | @echo 19 | ./*.AppImage --version 20 | @echo 21 | ls -l *.AppImage 22 | 23 | .PHONY: clean 24 | clean: # Remove temporary build files 25 | rm -rf AppDir appimage-build *.AppImage *.zsync 26 | 27 | .PHONY: help 28 | help: # Show Makefile options 29 | @grep "^[A-Za-z0-9].*:" $(lastword $(MAKEFILE_LIST)) 30 | -------------------------------------------------------------------------------- /appimage/wesnoth-1.14.15-deb11/Makefile: -------------------------------------------------------------------------------- 1 | .PHONY: default 2 | default: build test # Default 3 | 4 | .PHONY: status 5 | status: # Status of AppImage 6 | @ls -l 7 | 8 | .PHONY: build 9 | build: # Build Docker images 10 | ../bin/build-appimage.bash AppImageBuilder.yaml 11 | 12 | .PHONY: test 13 | test: # Run tests 14 | @echo 15 | ./*.AppImage --appimage-help ||: 16 | @echo 17 | ../bin/check-debs.bash AppImageBuilder.yaml 18 | @echo 19 | ./*.AppImage --version 20 | @echo 21 | ls -l *.AppImage 22 | 23 | .PHONY: clean 24 | clean: # Remove temporary build files 25 | rm -rf AppDir appimage-build *.AppImage *.zsync 26 | 27 | .PHONY: help 28 | help: # Show Makefile options 29 | @grep "^[A-Za-z0-9].*:" $(lastword $(MAKEFILE_LIST)) 30 | -------------------------------------------------------------------------------- /appimage/wesnoth-1.16.8-deb11/Makefile: -------------------------------------------------------------------------------- 1 | .PHONY: default 2 | default: build test # Default 3 | 4 | .PHONY: status 5 | status: # Status of AppImage 6 | @ls -l 7 | 8 | .PHONY: build 9 | build: # Build Docker images 10 | ../bin/build-appimage.bash AppImageBuilder.yaml 11 | 12 | .PHONY: test 13 | test: # Run tests 14 | @echo 15 | ./*.AppImage --appimage-help ||: 16 | @echo 17 | ../bin/check-debs.bash AppImageBuilder.yaml 18 | @echo 19 | ./*.AppImage --version 20 | @echo 21 | ls -l *.AppImage 22 | 23 | .PHONY: clean 24 | clean: # Remove temporary build files 25 | rm -rf AppDir appimage-build *.AppImage *.zsync 26 | 27 | .PHONY: help 28 | help: # Show Makefile options 29 | @grep "^[A-Za-z0-9].*:" $(lastword $(MAKEFILE_LIST)) 30 | -------------------------------------------------------------------------------- /appimage/wesnoth-1.16.9-deb12/Makefile: -------------------------------------------------------------------------------- 1 | .PHONY: default 2 | default: build test # Default 3 | 4 | .PHONY: status 5 | status: # Status of AppImage 6 | @ls -l 7 | 8 | .PHONY: build 9 | build: # Build Docker images 10 | ../bin/build-appimage.bash AppImageBuilder.yaml 11 | 12 | .PHONY: test 13 | test: # Run tests 14 | @echo 15 | ./*.AppImage --appimage-help ||: 16 | @echo 17 | ../bin/check-debs.bash AppImageBuilder.yaml 18 | @echo 19 | ./*.AppImage --version 20 | @echo 21 | ls -l *.AppImage 22 | 23 | .PHONY: clean 24 | clean: # Remove temporary build files 25 | rm -rf AppDir appimage-build *.AppImage *.zsync 26 | 27 | .PHONY: help 28 | help: # Show Makefile options 29 | @grep "^[A-Za-z0-9].*:" $(lastword $(MAKEFILE_LIST)) 30 | -------------------------------------------------------------------------------- /bin/0ad: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/2to3: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/7z: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/afile: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/aftp: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/ansible: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/ansible-galaxy: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/ansible-inventory: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/ansible-playbook: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/ansible-vault: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/aplay: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/appimage-builder: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/appimagetool: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/aria2c: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/asmc: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | PYLD_MAIN="pyld_gen" 4 | source "${0%/*}/pyld_mod.bash" 5 | -------------------------------------------------------------------------------- /bin/audacity: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/avi: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/aws: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/aws-venv: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/venv-awscli" 4 | -------------------------------------------------------------------------------- /bin/battery: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/bell: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/bell.ogg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drtuxwang/system-config/4df094af1555348cf5c053ba72a1a586af565161/bin/bell.ogg -------------------------------------------------------------------------------- /bin/breaktimer: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/bson: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | PYLD_MAIN=$(echo "${0##*/}_" | tr "+-" "x_") 4 | source "${0%/*}/pyld_mod.bash" 5 | -------------------------------------------------------------------------------- /bin/bz2: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | PYLD_MAIN=$(echo "${0##*/}_" | tr "+-" "x_") 4 | source "${0%/*}/pyld_mod.bash" 5 | -------------------------------------------------------------------------------- /bin/cal: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/calendar: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | PYLD_MAIN=$(echo "${0##*/}_" | tr "+-" "x_") 4 | source "${0%/*}/pyld_mod.bash" 5 | -------------------------------------------------------------------------------- /bin/cdspeed: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/chkconfig: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/chkpath: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/chksequence: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/chkxml: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/chrome: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/chromium: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/chroot: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/clam: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/cluster: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/cmd: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | # 3 | # Wrapper for "wine cmd" 4 | # 5 | 6 | case $(uname) in 7 | *NT*) 8 | "$COMSPEC" "$@" 9 | ;; 10 | *) 11 | wine cmd "$@" 12 | ;; 13 | esac 14 | -------------------------------------------------------------------------------- /bin/code: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/column: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/cookiecutter: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/countdown: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/cqlsh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/crictl: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | PYLD_MAIN="pyld_gen" 4 | source "${0%/*}/pyld_mod.bash" 5 | -------------------------------------------------------------------------------- /bin/crypt-mount: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source ${0%/*}/crypt_mod.bash 4 | -------------------------------------------------------------------------------- /bin/crypt-umount: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source ${0%/*}/crypt_mod.bash 4 | -------------------------------------------------------------------------------- /bin/cython: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/cythonize: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/deb: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/debcheck: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/debget: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/debgrep: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/debinstall: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/debupdate: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/dep: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | PYLD_MAIN="pyld_gen" 4 | source "${0%/*}/pyld_mod.bash" 5 | -------------------------------------------------------------------------------- /bin/devpi: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/devpi-venv: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/venv-devpi-client" 4 | -------------------------------------------------------------------------------- /bin/django-admin: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/django-admin-venv: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/venv-django" 4 | -------------------------------------------------------------------------------- /bin/docker-compose: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/docker-images: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source ${0%/*}/docker_mod.bash 4 | -------------------------------------------------------------------------------- /bin/docker-list: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source ${0%/*}/docker_mod.bash 4 | -------------------------------------------------------------------------------- /bin/docker-load: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source ${0%/*}/docker_mod.bash 4 | -------------------------------------------------------------------------------- /bin/docker-prune: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source ${0%/*}/docker_mod.bash 4 | -------------------------------------------------------------------------------- /bin/docker-pull: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source ${0%/*}/docker_mod.bash 4 | -------------------------------------------------------------------------------- /bin/docker-push: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source ${0%/*}/docker_mod.bash 4 | -------------------------------------------------------------------------------- /bin/docker-save: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source ${0%/*}/docker_mod.bash 4 | -------------------------------------------------------------------------------- /bin/docker-sudo: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | set -u 4 | 5 | IMAGE="drtuxwang/scratch:stable" 6 | 7 | DOCKER_RUN="docker run 8 | --rm \ 9 | --interactive \ 10 | --tty \ 11 | --cpu-quota=1000000 \ 12 | --cpu-shares=50000 \ 13 | --memory=1000m \ 14 | --memory-reservation=50m \ 15 | --privileged=true \ 16 | $(ls -1d /* | grep -E -v "/(proc|root)$$" | awk '{printf("--volume=%s:%s ",$$1,$$1)}') \ 17 | --volume="/etc/hosts:/etc/hosts" \ 18 | --volume="/etc/passwd:/etc/passwd:ro" \ 19 | --volume="/etc/group:/etc/group:ro" \ 20 | --hostname $(uname -n)-sudo-bash \ 21 | --workdir=$PWD 22 | " 23 | 24 | $DOCKER_RUN $IMAGE "$@" 25 | -------------------------------------------------------------------------------- /bin/docker-tag: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source ${0%/*}/docker_mod.bash 4 | -------------------------------------------------------------------------------- /bin/dockerreg: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/dpkg: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/dropbox: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | PYLD_MAIN=$(echo "${0##*/}_" | tr "+-" "x_") 4 | source "${0%/*}/pyld_mod.bash" 5 | -------------------------------------------------------------------------------- /bin/eclipse: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/edge: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/egrep: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | if [ "$(grep --version 2>&1 | grep "GNU grep")" ] 4 | then 5 | exec grep -E "$@" 6 | else 7 | PATH=$(echo ":$PATH:" | sed -e "s@:${0%/*}:@:@;s/^://;s/:$//") 8 | exec egrep "$@" 9 | fi 10 | -------------------------------------------------------------------------------- /bin/espeak: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/et: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/etl: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/evince: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/extjs: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/exturl: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/f7z: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/fcat: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/fchop: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/fcount: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/fcp: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | MYDIR=`dirname "$0"` 4 | if [ "`\"$MYDIR/python3\" --version 2> /dev/null`" ] 5 | then 6 | export PYTHONDONTWRITEBYTECODE=1 7 | exec "$MYDIR/python3" "$0.py" "$@" 8 | fi 9 | 10 | exec "$0.bash" "$@" 11 | -------------------------------------------------------------------------------- /bin/fcpall: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/fcpclip: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/fcplink: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/fdiff: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/fdu: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/ffind: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/ffind0: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/ffix: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/ffmpeg: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | PYLD_MAIN="pyld_gen" 4 | source "${0%/*}/pyld_mod.bash" 5 | -------------------------------------------------------------------------------- /bin/ffplay: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | PYLD_MAIN="pyld_gen" 4 | source "${0%/*}/pyld_mod.bash" 5 | -------------------------------------------------------------------------------- /bin/ffprobe: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | PYLD_MAIN="pyld_gen" 4 | source "${0%/*}/pyld_mod.bash" 5 | -------------------------------------------------------------------------------- /bin/fget: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/fhead: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/file-roller: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | PYLD_MAIN=$(echo "${0##*/}_" | tr "+-" "x_") 4 | source "${0%/*}/pyld_mod.bash" 5 | -------------------------------------------------------------------------------- /bin/firefox: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/fixwav: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/flask: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/flink: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/fls: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/fmkdir: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/fmod: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/fmv: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/fpar: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/fpeek: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/fprint: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/frm: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/frn: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/fsame: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/fsort: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/fstat: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/fstrings: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/fsub: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/fsum: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/ftail: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/ftodos: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/ftolower: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/ftomac: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/ftouch: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/ftounix: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/ftoupper: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/ftp: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/fwatch: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/fwhich: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/fwrapper: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/fzero: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/g++: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | PYLD_MAIN="pyld_gen" 4 | source "${0%/*}/pyld_mod.bash" 5 | -------------------------------------------------------------------------------- /bin/gcc: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | PYLD_MAIN="pyld_gen" 4 | source "${0%/*}/pyld_mod.bash" 5 | -------------------------------------------------------------------------------- /bin/gedit: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/gem: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | PYLD_MAIN="pyld_gen" 4 | source "${0%/*}/pyld_mod.bash" 5 | -------------------------------------------------------------------------------- /bin/getip: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/geturl: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/gfortran: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | PYLD_MAIN="pyld_gen" 4 | source "${0%/*}/pyld_mod.bash" 5 | -------------------------------------------------------------------------------- /bin/gimp: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/git: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | PYLD_MAIN=$(echo "${0##*/}_" | tr "+-" "x_") 4 | source "${0%/*}/pyld_mod.bash" 5 | -------------------------------------------------------------------------------- /bin/git-diff: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source ${0%/*}/git_mod.bash 4 | -------------------------------------------------------------------------------- /bin/git-gc: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source ${0%/*}/git_mod.bash 4 | -------------------------------------------------------------------------------- /bin/git-lfs: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | PYLD_MAIN="pyld_gen" 4 | source "${0%/*}/pyld_mod.bash" 5 | -------------------------------------------------------------------------------- /bin/git-reset: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source ${0%/*}/git_mod.bash 4 | -------------------------------------------------------------------------------- /bin/git-squash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source ${0%/*}/git_mod.bash 4 | -------------------------------------------------------------------------------- /bin/git-time: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | PYLD_MAIN=$(echo "${0##*/}_" | tr "+-" "x_") 4 | source "${0%/*}/pyld_mod.bash" 5 | -------------------------------------------------------------------------------- /bin/gitk: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/glances: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/gnomine: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/go: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/gparted: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/gpg: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/gqview: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/graph: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/grpcurl: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/gtts-cli: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/gz: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/halt: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | echo "Run \"poweroff\" as root to switch off." 4 | -------------------------------------------------------------------------------- /bin/hardinfo: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/hearts: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/helm: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/host-keys: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source ${0%/*}/host_mod.bash 4 | -------------------------------------------------------------------------------- /bin/host-mount: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source ${0%/*}/host_mod.bash 4 | -------------------------------------------------------------------------------- /bin/host-run: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source ${0%/*}/host_mod.bash 4 | -------------------------------------------------------------------------------- /bin/host-setup: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source ${0%/*}/host_mod.bash 4 | -------------------------------------------------------------------------------- /bin/host-umount: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source ${0%/*}/host_mod.bash 4 | -------------------------------------------------------------------------------- /bin/htmlformat: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/httpd: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/httplog: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/icheck: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/iedge: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/ifile: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/ihtml: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/ilink: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/imeg: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/index: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/inkscape: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/inum: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/ipdb3: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/ipython: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/ipython3: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/isame: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/isame-venv: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/venv-imagehash" 4 | -------------------------------------------------------------------------------- /bin/isitup: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/iso: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/isum: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/isum-venv: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/venv-imagehash" 4 | -------------------------------------------------------------------------------- /bin/iterm: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | PYLD_MAIN="pyld_gen" 4 | source "${0%/*}/pyld_mod.bash" 5 | -------------------------------------------------------------------------------- /bin/jar: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/java: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/javac: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | PYLD_MAIN="pyld_gen" 4 | source "${0%/*}/pyld_mod.bash" 5 | -------------------------------------------------------------------------------- /bin/jinja2: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/jsformat: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/json: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | PYLD_MAIN=$(echo "${0##*/}_" | tr "+-" "x_") 4 | source "${0%/*}/pyld_mod.bash" 5 | -------------------------------------------------------------------------------- /bin/jsonformat: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/jython: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | PYLD_MAIN="pyld_gen" 4 | source "${0%/*}/pyld_mod.bash" 5 | -------------------------------------------------------------------------------- /bin/k3s: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | PYLD_MAIN="pyld_gen" 4 | source "${0%/*}/pyld_mod.bash" 5 | -------------------------------------------------------------------------------- /bin/k3s-server: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | PYLD_MAIN="pyld_gen" 4 | source "${0%/*}/pyld_mod.bash" 5 | -------------------------------------------------------------------------------- /bin/keymap.tcl: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env wish 2 | 3 | wm resizable . 0 0 4 | wm title . "keymap" 5 | wm geometry . +120+20 6 | 7 | . config -bg "#cccccc" 8 | 9 | 10 | frame .toolbar -bg "#cccccc" 11 | button .toolbar.gb -width 2 -bg "#ffcc00" -text gb -command { 12 | set map {gb} 13 | exec setxkbmap gb 14 | } 15 | pack .toolbar.gb -side left 16 | 17 | button .toolbar.de -width 2 -bg "#ffff00" -text de -command { 18 | set map {de} 19 | exec setxkbmap de 20 | } 21 | pack .toolbar.de -side left 22 | 23 | button .toolbar.us -width 2 -bg "#ffff00" -text us -command { 24 | set map {us} 25 | exec setxkbmap us 26 | } 27 | pack .toolbar.us -side left 28 | 29 | entry .toolbar.map -width 4 -textvar map 30 | pack .toolbar.map -side left 31 | 32 | button .toolbar.set -width 3 -bg "#00ff00" -text Set -command { 33 | exec setxkbmap ${map} & 34 | } 35 | pack .toolbar.set -side right 36 | pack .toolbar -side top -fill x 37 | 38 | 39 | set map {} 40 | -------------------------------------------------------------------------------- /bin/keytool: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | PYLD_MAIN="pyld_gen" 4 | source "${0%/*}/pyld_mod.bash" 5 | -------------------------------------------------------------------------------- /bin/kmodsign: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/kubectl: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/kubeseal: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | PYLD_MAIN="pyld_gen" 4 | source "${0%/*}/pyld_mod.bash" 5 | -------------------------------------------------------------------------------- /bin/lsblk: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/lzma: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | PYLD_MAIN=$(echo "${0##*/}_" | tr "+-" "x_") 4 | source "${0%/*}/pyld_mod.bash" 5 | -------------------------------------------------------------------------------- /bin/markdown: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/markdown2: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/md5: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/md5cd: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/meld: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/menu: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/menu.tcl.jinja2: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env wish 2 | 3 | wm resizable . 0 0 4 | wm title . "{{ title }}" 5 | wm geometry . +0+0 6 | 7 | . config -bg "#cccccc" 8 | 9 | 10 | frame .menu -bg "#cccccc" 11 | {%- for button in buttons %} 12 | button .menu.{{ button.name }} -width 10 -bg "{{ button.color }}" -text "{{ button.label }}" -command { 13 | {{ button.run }} 14 | } 15 | pack .menu.{{ button.name }} -side top 16 | {%- endfor %} 17 | pack .menu -side top -fill x 18 | -------------------------------------------------------------------------------- /bin/mget: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/mirror: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | MYDIR=`dirname "$0"` 4 | if [ "`\"$MYDIR/python3\" --version 2> /dev/null`" ] 5 | then 6 | export PYTHONDONTWRITEBYTECODE=1 7 | exec "$MYDIR/python3" "$0.py" "$@" 8 | fi 9 | 10 | exec "$0.bash" "$@" 11 | -------------------------------------------------------------------------------- /bin/mkcd: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/mkpasswd: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/mksshkeys: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/mousepad: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/mp3: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/mp4: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/mv: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source ${0%/*}/safe_mod.bash 4 | -------------------------------------------------------------------------------- /bin/mvn: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/mypy: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | export MYPY_CACHE_DIR=/dev/null 4 | source "${0%/*}/pyld_mod.bash" 5 | -------------------------------------------------------------------------------- /bin/myqdel: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/myqexec: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/myqsd: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/myqstat: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/myqsub: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/nautilus: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/netnice: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/netroute: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/nexus3: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/nexus3-venv: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/venv-nexus3-cli" 4 | -------------------------------------------------------------------------------- /bin/node: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | PYLD_MAIN="pyld_gen" 4 | source "${0%/*}/pyld_mod.bash" 5 | -------------------------------------------------------------------------------- /bin/npm: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | PYLD_MAIN="pyld_gen" 4 | source "${0%/*}/pyld_mod.bash" 5 | -------------------------------------------------------------------------------- /bin/ntpdate: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/ntplib: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | PYLD_MAIN=$(echo "${0##*/}_" | tr "+-" "x_") 4 | source "${0%/*}/pyld_mod.bash" 5 | -------------------------------------------------------------------------------- /bin/ocr: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/ogg: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/open: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/padman: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/par2: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | PYLD_MAIN="pyld_gen" 4 | source "${0%/*}/pyld_mod.bash" 5 | -------------------------------------------------------------------------------- /bin/pause: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/pbsetup: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/pdf: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/pidgin: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/pip: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | PYLD_EXE="python" 4 | source "${0%/*}/pyld_mod.bash" 5 | -------------------------------------------------------------------------------- /bin/pip3: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/play: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/poetry: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/pop: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/pop.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drtuxwang/system-config/4df094af1555348cf5c053ba72a1a586af565161/bin/pop.jar -------------------------------------------------------------------------------- /bin/poweroff: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | MYUNAME=$(id -un) 4 | 5 | if [ "$MYUNAME" != root ] 6 | then 7 | echo "Run \"poweroff\" as root to switch off." 8 | exit 1 9 | fi 10 | 11 | /sbin/poweroff & 12 | sleep 8 13 | 14 | # Sync all mounted filesystems 15 | echo s > /proc/sysrq-trigger 2> /dev/null 16 | sleep 1 17 | 18 | # Unmount filesystems and remount in read-only mode 19 | echo u > /proc/sysrq-trigger 2> /dev/null 20 | sleep 0.25 21 | 22 | # Power off the system 23 | echo o > /proc/sysrq-trigger 2> /dev/null 24 | -------------------------------------------------------------------------------- /bin/pyc: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/pycodestyle: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/pydisasm: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/pydisasm-venv: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/venv-xdis" 4 | -------------------------------------------------------------------------------- /bin/pydoc3: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/pyflakes: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/pylint: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/pyprof: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/python: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | PYLD_EXE=${0##*/} 4 | source "${0%/*}/pyld_mod.bash" 5 | -------------------------------------------------------------------------------- /bin/python2: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | PYLD_EXE=${0##*/} 4 | source "${0%/*}/pyld_mod.bash" 5 | -------------------------------------------------------------------------------- /bin/python2.7: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | PYLD_EXE=${0##*/} 4 | source "${0%/*}/pyld_mod.bash" 5 | -------------------------------------------------------------------------------- /bin/python3: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | PYLD_EXE=${0##*/} 4 | source "${0%/*}/pyld_mod.bash" 5 | -------------------------------------------------------------------------------- /bin/python3.10: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | PYLD_EXE=${0##*/} 4 | source "${0%/*}/pyld_mod.bash" 5 | -------------------------------------------------------------------------------- /bin/python3.11: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | PYLD_EXE=${0##*/} 4 | source "${0%/*}/pyld_mod.bash" 5 | -------------------------------------------------------------------------------- /bin/python3.12: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | PYLD_EXE=${0##*/} 4 | source "${0%/*}/pyld_mod.bash" 5 | -------------------------------------------------------------------------------- /bin/python3.13: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | PYLD_EXE=${0##*/} 4 | source "${0%/*}/pyld_mod.bash" 5 | -------------------------------------------------------------------------------- /bin/python3.7: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | PYLD_EXE=${0##*/} 4 | source "${0%/*}/pyld_mod.bash" 5 | -------------------------------------------------------------------------------- /bin/python3.8: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | PYLD_EXE=${0##*/} 4 | source "${0%/*}/pyld_mod.bash" 5 | -------------------------------------------------------------------------------- /bin/python3.9: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | PYLD_EXE=${0##*/} 4 | source "${0%/*}/pyld_mod.bash" 5 | -------------------------------------------------------------------------------- /bin/pyz: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/qdel: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | PYLD_MAIN="myqwrap" 4 | source "${0%/*}/pyld_mod.bash" 5 | -------------------------------------------------------------------------------- /bin/qemu-compress: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source ${0%/*}/qemu_mod.bash 4 | -------------------------------------------------------------------------------- /bin/qemu-mount: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source ${0%/*}/qemu_mod.bash 4 | -------------------------------------------------------------------------------- /bin/qemu-trim: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source ${0%/*}/qemu_mod.bash 4 | -------------------------------------------------------------------------------- /bin/qemu-umount: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source ${0%/*}/qemu_mod.bash 4 | -------------------------------------------------------------------------------- /bin/qstat: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | PYLD_MAIN="myqwrap" 4 | source "${0%/*}/pyld_mod.bash" 5 | -------------------------------------------------------------------------------- /bin/qsub: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | PYLD_MAIN="myqwrap" 4 | source "${0%/*}/pyld_mod.bash" 5 | -------------------------------------------------------------------------------- /bin/random: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | PYLD_MAIN=$(echo "${0##*/}_" | tr "+-" "x_") 4 | source "${0%/*}/pyld_mod.bash" 5 | -------------------------------------------------------------------------------- /bin/readcd: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/ripcd: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/ripdvd: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/rm: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source ${0%/*}/safe_mod.bash 4 | -------------------------------------------------------------------------------- /bin/robo3t: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/rotate: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/rpm: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/run: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/safe_mod.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | # 3 | # Bash safe command module 4 | # 5 | # Copyright GPL v2: 2024 By Dr Colin Kong 6 | # 7 | 8 | set -u 9 | 10 | 11 | # 12 | # Run rm safely preventing unsafe rm arguments 13 | # 14 | safe_rm() { 15 | [ "$(echo " $* " | grep " / ")" ] && echo "rm: Unsafe to remove \"/\"" && exit 1 16 | [ "$(echo " $* " | grep " $(ls -1d /* 2> /dev/null | xargs echo) ")" ] && echo "rm: Unsafe to remove \"/*\"" && exit 1 17 | 18 | PATH=$(echo ":$PATH:" | sed -e "s@:${0%/*}:@:@;s/^://;s/:$//") 19 | exec "${0##*/}" "$@" 20 | } 21 | 22 | # 23 | # Run rm safely preventing unsafe mv arguments 24 | # 25 | safe_mv() { 26 | [ "$(echo " $*" | grep " $(ls -1d /* 2> /dev/null | xargs echo) ")" ] && echo "mv: Unsafe to move \"/*\"" && exit 1 27 | 28 | PATH=$(echo ":$PATH:" | sed -e "s@:${0%/*}:@:@;s/^://;s/:$//") 29 | exec "${0##*/}" "$@" 30 | } 31 | 32 | 33 | safe_${0##*/} "$@" 34 | -------------------------------------------------------------------------------- /bin/sandbox: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/say: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/scalar: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/scp: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source ${0%/*}/host_mod.bash 4 | -------------------------------------------------------------------------------- /bin/sdd: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/sequence: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/sha256: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/sha512: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/shotcut: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/shuffle: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/smount: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/soffice: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/sqlplus: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | PYLD_MAIN="sqlplus" 4 | source "${0%/*}/pyld_mod.bash" 5 | -------------------------------------------------------------------------------- /bin/sqlplus64: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | PYLD_MAIN="sqlplus" 4 | source "${0%/*}/pyld_mod.bash" 5 | -------------------------------------------------------------------------------- /bin/ssh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source ${0%/*}/host_mod.bash 4 | -------------------------------------------------------------------------------- /bin/ssh-askpass: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | PYLD_MAIN=$(echo "${0##*/}_" | tr "+-" "x_") 4 | source "${0%/*}/pyld_mod.bash" 5 | -------------------------------------------------------------------------------- /bin/ssync: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/sudo: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | PYLD_MAIN="sudo" 4 | source "${0%/*}/pyld_mod.bash" 5 | -------------------------------------------------------------------------------- /bin/sumount: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/svncviewer: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/swell-foop: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | PYLD_MAIN=$(echo "${0##*/}_" | tr "+-" "x_") 4 | source "${0%/*}/pyld_mod.bash" 5 | -------------------------------------------------------------------------------- /bin/sysinfo: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | MYDIR=`dirname "$0"` 4 | if [ "`\"$MYDIR/python3\" --version 2> /dev/null`" ] 5 | then 6 | export PYTHONDONTWRITEBYTECODE=1 7 | exec "$MYDIR/python3" "$MYDIR/sysinfo.py" "$@" 8 | fi 9 | 10 | exec "$MYDIR/sysinfo.sh" "$@" 11 | -------------------------------------------------------------------------------- /bin/systemd-analyze: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | PYLD_MAIN=$(echo "${0##*/}_" | tr "+-" "x_") 4 | source "${0%/*}/pyld_mod.bash" 5 | -------------------------------------------------------------------------------- /bin/terraform: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | PYLD_MAIN="pyld_gen" 4 | source "${0%/*}/pyld_mod.bash" 5 | -------------------------------------------------------------------------------- /bin/tiller: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | PYLD_MAIN="pyld_gen" 4 | source "${0%/*}/pyld_mod.bash" 5 | -------------------------------------------------------------------------------- /bin/tinyproxy: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/tkill: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/tls: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/tmux: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/tocapital: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/tolower: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/top: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/toupper: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/twait: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/twine: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/un7z: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/unace: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/unbz2: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/undeb: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/undmg: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/ungpg: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/ungz: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/uninitrd: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/uniso: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/unjar: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/unlzma: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | PYLD_MAIN="unxz" 4 | source "${0%/*}/pyld_mod.bash" 5 | -------------------------------------------------------------------------------- /bin/unpdf: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/unpyc: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/unpyc-venv: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/venv-xdis" 4 | -------------------------------------------------------------------------------- /bin/unrar: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/unrpm: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/unsqlite: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/unsquashfs: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/untar: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/unwine: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/unxz: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | PYLD_MAIN="unxz" 4 | source "${0%/*}/pyld_mod.bash" 5 | -------------------------------------------------------------------------------- /bin/unz: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/unzip: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/unzst: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/urldecode: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/ut: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/vbox: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/venv-appimage-builder: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | # 3 | # appimage-builder virtualenv 4 | # 5 | 6 | virtualenv_setup() { 7 | VENV_PYTHON="python3" 8 | VENV_PACKAGE="appimage-builder==1.1.0" 9 | VENV_CLEAN=no 10 | } 11 | 12 | 13 | source "${0%/*}/venv_mod.bash" -noclean 14 | -------------------------------------------------------------------------------- /bin/venv-awscli: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | # 3 | # awscli virtualenv 4 | # 5 | 6 | virtualenv_setup() { 7 | VENV_PYTHON="python3" 8 | VENV_PACKAGE="awscli==1.37.26" 9 | VENV_DEPENDS="PyYAML==6.0.2" 10 | } 11 | 12 | 13 | source "${0%/*}/venv_mod.bash" 14 | -------------------------------------------------------------------------------- /bin/venv-cqlsh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | # 3 | # cqlsh virtualenv (Cassandra DB client) 4 | # 5 | 6 | virtualenv_setup() { 7 | VENV_PYTHON="python3" 8 | VENV_PACKAGE="cqlsh==6.1.3" 9 | } 10 | 11 | 12 | source "${0%/*}/venv_mod.bash" 13 | -------------------------------------------------------------------------------- /bin/venv-devpi-client: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | # 3 | # devpi-client virtualenv 4 | # 5 | 6 | virtualenv_setup() { 7 | VENV_PYTHON="python3" 8 | VENV_PACKAGE="devpi-client==6.0.7" 9 | VENV_DEPENDS="devpi-common==3.7.2" 10 | } 11 | 12 | 13 | source "${0%/*}/venv_mod.bash" 14 | -------------------------------------------------------------------------------- /bin/venv-django: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | # 3 | # django virtualenv 4 | # 5 | 6 | virtualenv_setup() { 7 | VENV_PYTHON="python3" 8 | VENV_PACKAGE="Django==4.2.19" 9 | } 10 | 11 | 12 | source "${0%/*}/venv_mod.bash" 13 | -------------------------------------------------------------------------------- /bin/venv-docker-compose: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | # 3 | # docker-compose virtualenv 4 | # 5 | 6 | virtualenv_setup() { 7 | VENV_PYTHON="python3.9" # >= 3.10 still not supported 8 | VENV_PACKAGE="docker-compose==1.28.6" 9 | VENV_DEPENDS="PyYAML==5.4.1" # >=6 still not supported 10 | } 11 | 12 | 13 | source "${0%/*}/venv_mod.bash" 14 | -------------------------------------------------------------------------------- /bin/venv-dropbox: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | # 3 | # dropbox virtualenv 4 | # 5 | 6 | virtualenv_setup() { 7 | VENV_PYTHON="python3" 8 | VENV_PACKAGE="dropbox==12.0.2" 9 | } 10 | 11 | 12 | source "${0%/*}/venv_mod.bash" 13 | -------------------------------------------------------------------------------- /bin/venv-flask: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | # 3 | # flask virtualenv 4 | # 5 | 6 | virtualenv_setup() { 7 | VENV_PYTHON="python3" 8 | VENV_PACKAGE="flask==2.3.3" 9 | } 10 | 11 | 12 | source "${0%/*}/venv_mod.bash" 13 | -------------------------------------------------------------------------------- /bin/venv-glances: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | # 3 | # glances virtualenv (system monitoring tool) 4 | # 5 | 6 | virtualenv_setup() { 7 | VENV_PYTHON="python3" 8 | VENV_PACKAGE="glances==4.2.1" 9 | } 10 | 11 | 12 | source "${0%/*}/venv_mod.bash" 13 | -------------------------------------------------------------------------------- /bin/venv-imagehash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | # 3 | # ImageHash virtualenv 4 | # 5 | 6 | virtualenv_setup() { 7 | VENV_PYTHON="python3" 8 | VENV_PACKAGE="ImageHash==4.3.2" 9 | VENV_DEPENDS="Pillow==10.4.0 scipy==1.13.1 numpy==1.26.4 PyWavelets==1.6.0 pybktree==1.1 pyzstd==0.15.10" 10 | } 11 | 12 | 13 | source "${0%/*}/venv_mod.bash" 14 | -------------------------------------------------------------------------------- /bin/venv-mypy: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | # 3 | # mypy virtualenv (for Python type checker) 4 | # 5 | 6 | virtualenv_setup() { 7 | VENV_PYTHON="python3" 8 | VENV_PACKAGE="mypy==1.15.0" 9 | } 10 | 11 | 12 | source "${0%/*}/venv_mod.bash" 13 | -------------------------------------------------------------------------------- /bin/venv-nexus3-cli: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | # 3 | # nexus3-cli virtualenv (Sonatype Nexus client) 4 | # 5 | 6 | virtualenv_setup() { 7 | VENV_PYTHON="python3" 8 | VENV_PACKAGE="nexus3-cli==4.2.1" 9 | VENV_DEPENDS="setuptools==75.8.0" 10 | } 11 | 12 | 13 | source "${0%/*}/venv_mod.bash" 14 | -------------------------------------------------------------------------------- /bin/venv-poetry: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | # 3 | # poetry virtualenv (Python packaging and dependency management tool) 4 | # 5 | 6 | virtualenv_setup() { 7 | VENV_PYTHON="python3" 8 | VENV_PACKAGE="poetry==1.7.1" 9 | VENV_DEPENDS="poetry-core==1.8.1 poetry-plugin-export==1.6.0 setuptools==74.1.3" 10 | } 11 | 12 | 13 | source "${0%/*}/venv_mod.bash" 14 | -------------------------------------------------------------------------------- /bin/venv-twine: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | # 3 | # twine virtualenv (for publishing Python packages on PyPI) 4 | # 5 | 6 | virtualenv_setup() { 7 | VENV_PYTHON="python3" 8 | VENV_PACKAGE="twine==5.1.1" 9 | } 10 | 11 | 12 | source "${0%/*}/venv_mod.bash" 13 | -------------------------------------------------------------------------------- /bin/venv-xdis: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | # 3 | # xdis virtualenv (for disassembling Python bytecode) 4 | # 5 | 6 | virtualenv_setup() { 7 | VENV_PYTHON="python3" 8 | VENV_PACKAGE="xdis==6.1.3" 9 | } 10 | 11 | 12 | source "${0%/*}/venv_mod.bash" 13 | -------------------------------------------------------------------------------- /bin/venv-yt-dlp: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | # 3 | # yt-dlp virtualenv (for downloading videos) 4 | # 5 | 6 | virtualenv_setup() { 7 | VENV_PYTHON="python3" 8 | VENV_PACKAGE="yt-dlp==2025.3.31" 9 | } 10 | 11 | 12 | source "${0%/*}/venv_mod.bash" 13 | -------------------------------------------------------------------------------- /bin/vfile: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/vget: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/vi: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | PYLD_MAIN="vim" 4 | source "${0%/*}/pyld_mod.bash" 5 | -------------------------------------------------------------------------------- /bin/view: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/vim: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | PYLD_MAIN="vim" 4 | source "${0%/*}/pyld_mod.bash" 5 | -------------------------------------------------------------------------------- /bin/virtualbox: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/virtualenv: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/vlc: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/vlcget: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/vmware: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/vncpasswd: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/vncserver: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/vncviewer: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/vplay: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/warsow: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | PYLD_MAIN="pyld_gen" 4 | source "${0%/*}/pyld_mod.bash" 5 | -------------------------------------------------------------------------------- /bin/wav: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/weather: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/wesnoth: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/wget: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/wine: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | PYLD_MAIN="wine" 4 | source "${0%/*}/pyld_mod.bash" 5 | -------------------------------------------------------------------------------- /bin/wine64: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | PYLD_MAIN="wine" 4 | source "${0%/*}/pyld_mod.bash" 5 | -------------------------------------------------------------------------------- /bin/wipe: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | PYLD_MAIN="pyld_gen" 4 | source "${0%/*}/pyld_mod.bash" 5 | -------------------------------------------------------------------------------- /bin/xcalc: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/xclip: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/xdesktop: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/xdiff: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/xedit: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/xlight: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/xlock: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/xlogout: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/xmail: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/xmixer: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/xml: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | PYLD_MAIN=$(echo "${0##*/}_" | tr "+-" "x_") 4 | source "${0%/*}/pyld_mod.bash" 5 | -------------------------------------------------------------------------------- /bin/xmlformat: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/xournal: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/xreset: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/xrun: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/xsnapshot: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/xsudo: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/xsudo.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | 3 | if "%1"=="" goto shell 4 | powershell.exe -command start-process cmd.exe -argumentlist "\"/r %*\"" -verb runas 5 | goto end 6 | :shell 7 | powershell.exe -command start-process cmd.exe -verb runas 8 | end 9 | -------------------------------------------------------------------------------- /bin/xterm: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/xvolume: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/xweb: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/xz: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/yaml: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | PYLD_MAIN=$(echo "${0##*/}_" | tr "+-" "x_") 4 | source "${0%/*}/pyld_mod.bash" 5 | -------------------------------------------------------------------------------- /bin/yping: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/yt-dlp: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/z: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/zcat: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/zgrep: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/zhspeak: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/zip: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/zoom: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | PYLD_MAIN="pyld_gen" 4 | source "${0%/*}/pyld_mod.bash" 5 | -------------------------------------------------------------------------------- /bin/zst: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | source "${0%/*}/pyld_mod.bash" 4 | -------------------------------------------------------------------------------- /bin/zstd: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | PYLD_MAIN=$(echo "${0##*/}_" | tr "+-" "x_") 4 | source "${0%/*}/pyld_mod.bash" 5 | -------------------------------------------------------------------------------- /cloudformation/1pxy/Makefile: -------------------------------------------------------------------------------- 1 | .PHONY: default 2 | default: test # Default 3 | 4 | .PHONY: test 5 | test: # Run tests 6 | @echo "\n*** Running JSON PYCODESTYLE (PEP8) check ***" 7 | python3 -m pycodestyle --max-line-length=255 *.json 8 | @echo "\n*** Tests successfull ***" 9 | 10 | .PHONY: help 11 | help: # Show Makefile options 12 | @grep "^[A-Za-z0-9].*:" $(lastword $(MAKEFILE_LIST)) 13 | -------------------------------------------------------------------------------- /cloudformation/1pxy/submit.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | STACKNAME="1pxy-example" 4 | 5 | aws cloudformation create-stack --stack-name "$STACKNAME" \ 6 | --template-body file://$PWD/main_stack.json 7 | -------------------------------------------------------------------------------- /cloudformation/multi-stacks/Makefile: -------------------------------------------------------------------------------- 1 | .PHONY: default 2 | default: test # Default 3 | 4 | .PHONY: test 5 | test: # Run tests 6 | @echo "\n*** Running JSON PYCODESTYLE (PEP8) check ***" 7 | python3 -m pycodestyle --max-line-length=255 *.json 8 | @echo "\n*** Tests successfull ***" 9 | 10 | .PHONY: help 11 | help: # Show Makefile options 12 | @grep "^[A-Za-z0-9].*:" $(lastword $(MAKEFILE_LIST)) 13 | -------------------------------------------------------------------------------- /cloudformation/multi-stacks/submit.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | # 3 | # Nested stacks CloudFormation submission 4 | # 5 | STACKNAME="pxy-example" 6 | STACKDIR="mybucket-f265e99a/$STACKNAME" 7 | 8 | aws s3 sync . s3://$STACKDIR 9 | 10 | aws cloudformation create-stack --stack-name "$STACKNAME" \ 11 | --template-body file://$PWD/main_stack.json 12 | -------------------------------------------------------------------------------- /compile/COMPILE-aria2.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | cd ${0%/*} 4 | umask 022 5 | 6 | case $(uname) in 7 | Darwin) 8 | export CPPFLAGS="-I/usr/local/opt/libxml2/include $CPPFLAGS" 9 | export LDFLAGS="-L/usr/local/opt/libxml2/lib $LDFALGS" 10 | export PKG_CONFIG_PATH="/usr/local/opt/libxml2/lib/pkgconfig:$PKG_CONFIG_PATH" 11 | ;; 12 | esac 13 | 14 | ./configure 15 | make 16 | 17 | ls -l $PWD/src/aria2c 18 | strip $PWD/src/aria2c 19 | ls -l $PWD/src/aria2c 20 | -------------------------------------------------------------------------------- /compile/COMPILE-cutils.bash: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | cd ${0%/*} 4 | umask 022 5 | 6 | mkdir bin 2> /dev/null 7 | 8 | gcc -O dos2unix.c -o bin/dos2unix 9 | gcc -O ftolower.c -o bin/ftolower 10 | gcc -O ftoupper.c -o bin/ftoupper 11 | gcc -O unix2dos.c -o bin/unix2dos 12 | gcc -O wipe.c -o bin/wipe 13 | 14 | ls -l $PWD/bin/* 15 | strip $PWD/bin/* 16 | ls -l $PWD/bin/* 17 | -------------------------------------------------------------------------------- /compile/COMPILE-git-lfs.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | cd ${0%/*} 4 | umask 022 5 | 6 | make 7 | 8 | cp -p CHANGELOG.md README.md bin/ 9 | 10 | ls -l $PWD/bin/* 11 | -------------------------------------------------------------------------------- /compile/COMPILE-git.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | cd ${0%/*} 4 | umask 022 5 | 6 | if [ "$(uname)" = "Darwin" ] 7 | then 8 | mv INSTALL INSTALL.txt # INSTALL/install conflict bug 9 | fi 10 | 11 | ./configure --prefix=$PWD/install 12 | make -i NO_INSTALL_HARDLINKS=YesPlease install 13 | 14 | ls -l $PWD/install/bin/* 15 | strip $PWD/install/bin/* 16 | ls -l $PWD/install/bin/* 17 | -------------------------------------------------------------------------------- /compile/COMPILE-helm.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | cd ${0%/*} 4 | umask 022 5 | 6 | # Re-direct Golang compiler download 7 | export HOME=$PWD/home 8 | 9 | make 10 | 11 | cp -p LICENSE README.md bin/ 12 | chmod -R u+w . 13 | 14 | ls -l $PWD/bin/* 15 | -------------------------------------------------------------------------------- /compile/COMPILE-libdvdcss.bash: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | cd ${0%/*} 4 | umask 022 5 | 6 | rm -f `find . | egrep "[.]o$|[.]lo$"` 7 | ./configure 8 | make 9 | 10 | ln -sf libdvdcss.so.2.1.0 .libs/libdvdcss.so 11 | ln -sf libdvdcss.so.2.1.0 .libs/libdvdcss.so.2 12 | 13 | echo "Copy to \"/usr/lib\" to install" 14 | ls -l $PWD//.libs/libdvdcss.so* 15 | -------------------------------------------------------------------------------- /compile/COMPILE-openmpi.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | cd ${0%/*} 4 | umask 022 5 | 6 | if [[ ${0##/*} =~ COMPILE32* ]] 7 | then 8 | CC="gcc"; CFLAGS="-fPIC -m32"; export CC CFLAGS 9 | CXX="g++"; CXXFLAGS="-fPIC -m32"; export CXX CXXFLAGS 10 | FC="gfortran"; FFLAGS="-fPIC -m32 -fno-second-underscore"; export FC FFLAGS 11 | else 12 | CC="gcc"; CFLAGS="-fPIC"; export CC CFLAGS 13 | CXX="g++"; CXXFLAGS="-fPIC"; export CXX CXXFLAGS 14 | FC="gfortran"; FFLAGS="-fPIC -fno-second-underscore"; export FC FFLAGS 15 | fi 16 | 17 | ./configure --prefix="$PWD/install" 18 | make 19 | make install 20 | 21 | ls -ld $PWD/install/* $PWD/install/bin/* 22 | -------------------------------------------------------------------------------- /compile/COMPILE-par2.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | cd ${0%/*} 4 | umask 022 5 | 6 | aclocal 7 | automake --add-missing 8 | autoconf 9 | ./configure 10 | make 11 | 12 | ls -l $PWD/par2 13 | strip $PWD/par2 14 | ls -l $PWD/par2 15 | -------------------------------------------------------------------------------- /compile/COMPILE-tinyproxy.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | cd ${0%/*} 4 | umask 022 5 | 6 | ./configure 7 | (cd src; make) 8 | 9 | ls -l $PWD/src/tinyproxy 10 | strip $PWD/src/tinyproxy 11 | ls -l $PWD/src/tinyproxy 12 | -------------------------------------------------------------------------------- /compile/COMPILE-tmux.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | cd ${0%/*} 4 | umask 022 5 | 6 | if [ $(uname) = Darwin ] 7 | then 8 | ./configure --enable-utf8proc 9 | else 10 | ./configure 11 | fi 12 | make 13 | 14 | ls -l $PWD/tmux 15 | strip $PWD/tmux 16 | ls -l $PWD/tmux 17 | -------------------------------------------------------------------------------- /compile/COMPILE-unace.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | cd ${0%/*} 4 | umask 022 5 | 6 | ./configure 7 | make 8 | 9 | ls -l $PWD/src/unace 10 | strip $PWD/src/unace 11 | ls -l $PWD/src/unace 12 | -------------------------------------------------------------------------------- /compile/COMPILE-unrar.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | cd ${0%/*} 4 | umask 022 5 | 6 | make -f makefile 7 | 8 | ls -l $PWD/unrar 9 | strip $PWD/unrar 10 | ls -l $PWD/unrar 11 | -------------------------------------------------------------------------------- /compile/COMPILE-unzip.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | cd ${0%/*} 4 | umask 022 5 | 6 | rm -f *.o 7 | make -f unix/Makefile generic 8 | 9 | ls -l $PWD/unzip 10 | strip $PWD/unzip 11 | ls -l $PWD/unzip 12 | -------------------------------------------------------------------------------- /compile/COMPILE-xz-utils.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | cd ${0%/*} 4 | umask 022 5 | 6 | ./configure 7 | make 8 | 9 | ls -l $PWD/src/xz/.libs/xz $PWD/src/liblzma/.libs/liblzma.so.5* 10 | strip $PWD/src/xz/.libs/xz 11 | ls -l $PWD/src/xz/.libs/xz $PWD/src/liblzma/.libs/liblzma.so.5* 12 | -------------------------------------------------------------------------------- /compile/COMPILE-zip.bash: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | cd ${0%/*} 4 | umask 022 5 | 6 | rm -f *.o 7 | unix/configure 8 | make -f unix/Makefile generic 9 | 10 | ls -l $PWD/zip 11 | strip $PWD/zip 12 | ls -l $PWD/zip 13 | -------------------------------------------------------------------------------- /compile/COMPILE-zstd.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | cd ${0%/*} 4 | umask 022 5 | 6 | ./configure 7 | make 8 | 9 | ls -l $PWD/programs/zstd 10 | strip $PWD/programs/zstd 11 | ls -l $PWD/programs/zstd 12 | -------------------------------------------------------------------------------- /config/Xresources: -------------------------------------------------------------------------------- 1 | ! 2 | ! Re-load file: xrdb ~/.Xresources 3 | ! 4 | ! xterm defaults 5 | xterm*font: *-fixed-bold-*-18-*-iso10646-* 6 | xterm*foreground: #000000 7 | xterm*background: #F5F5DC 8 | xterm*cursorColor: #FFAAFF 9 | ! Black & Dark Grey 10 | xterm*color0: #DDDDDD 11 | xterm*color8: #DDDDDD 12 | ! Dark & Light Red 13 | xterm*color1: #AA0000 14 | xterm*color9: #AA0000 15 | ! Dark & Light Green 16 | xterm*color2: #00AA00 17 | xterm*color10: #00AA00 18 | ! Dark & Light Yellow 19 | xterm*color3: #AA8800 20 | xterm*color11: #AA8800 21 | ! Dark & Light Blue 22 | xterm*color4: #0000AA 23 | xterm*color12: #0000AA 24 | ! Dark & Light Magenta 25 | xterm*color5: #8800AA 26 | xterm*color13: #8800AA 27 | ! Dark & Light Cyan 28 | xterm*color6: #0088AA 29 | xterm*color14: #0088AA 30 | ! Light Grey & White 31 | xterm*color7: #AAAAAA 32 | xterm*color15: #AAAAAA 33 | -------------------------------------------------------------------------------- /config/autostart.desktop: -------------------------------------------------------------------------------- 1 | [Desktop Entry] 2 | Type=Application 3 | Name=autoexec 4 | Exec=.config/autostart.bash 5 | StartupNotify=false 6 | Terminal=false 7 | Hidden=false 8 | -------------------------------------------------------------------------------- /config/bashrc: -------------------------------------------------------------------------------- 1 | # Basic setup for non login Bash shells 2 | export HISTFILE= 3 | export HISTSIZE=256 4 | export HISTTIMEFORMAT= 5 | export LESSHISTFILE=/dev/null 6 | export PYTHONDONTWRITEBYTECODE=1 7 | export PATH="/opt/software/bin:$PATH" 8 | -------------------------------------------------------------------------------- /config/bootstart.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | # Optional input environment 4 | ARG=${1:-} 5 | 6 | # Fix logging 7 | [ "$ARG" != "-start" ] && mkdir -p /tmp/$(id -un) && exec $0 -start > /tmp/$(id -un)/.bootstart.log 2>&1 8 | 9 | # Setup bash 10 | export TERM=xterm 11 | source $HOME/.profile 12 | [ ! "$BASE_PATH" ] && export BASE_PATH="$PATH" 13 | export PATH="$HOME/software/scripts:$HOME/software/bin:/opt/software/bin:$BASE_PATH" 14 | export TMPDIR=${TMPDIR:-/tmp/$(id -un)} 15 | 16 | # Update "/home/owner/software/web-data/pages" web pages 17 | sleep 300 && $HOME/software/scripts/pull-web.bash & 18 | 19 | # Start VNC Server for VMs and live boot 20 | ##echo x | vncserver -SecurityTypes=None & 21 | -------------------------------------------------------------------------------- /config/config: -------------------------------------------------------------------------------- 1 | # Escape Characters: 2 | # ~ ? = Help 3 | # ~ . = Disconnect 4 | 5 | Include config-opt 6 | 7 | # Host settings 8 | Host *.local *.vm localhost 9 | HostKeyAlgorithms +ssh-rsa 10 | PubkeyAcceptedKeyTypes +ssh-rsa 11 | KexAlgorithms +diffie-hellman-group1-sha1 12 | ForwardX11 yes 13 | StrictHostKeyChecking no 14 | UserKnownHostsFile=/dev/null 15 | 16 | # User settings 17 | Host *.local *.vm 18 | User owner 19 | Match User admin 20 | IdentityFile=~/.ssh/admin/id_rsa 21 | 22 | # Defaults 23 | Protocol 2 24 | ConnectTimeout 5 25 | ForwardAgent no 26 | ForwardX11 no 27 | GSSAPIAuthentication no 28 | IdentityFile=~/.ssh/id_rsa 29 | PubkeyAuthentication yes 30 | ServerAliveInterval 5 31 | ServerAliveCountMax 100 32 | UseRoaming no 33 | -------------------------------------------------------------------------------- /config/config-opt: -------------------------------------------------------------------------------- 1 | # VMs 2 | Host testpc.vm 3 | Hostname localhost 4 | Port 2201 5 | Host debian4.vm 6 | Hostname localhost 7 | Port 2204 8 | Host debian5.vm 9 | Hostname localhost 10 | Port 2205 11 | Host debian6.vm 12 | Hostname localhost 13 | Port 2206 14 | Host debian7.vm 15 | Hostname localhost 16 | Port 2207 17 | Host debian8.vm 18 | Hostname localhost 19 | Port 2208 20 | Host debian9.vm 21 | Hostname localhost 22 | Port 2209 23 | Host debian10.vm 24 | Hostname localhost 25 | Port 2210 26 | Host debian10-32.vm 27 | Hostname localhost 28 | Port 2291 29 | Host debian11.vm 30 | Hostname localhost 31 | Port 2211 32 | Host debian12.vm 33 | Hostname localhost 34 | Port 2212 35 | Host debian12-arm.vm 36 | Hostname localhost 37 | Port 2292 38 | 39 | # Host settings 40 | Host pattern 41 | User username 42 | Host pattern 43 | ForwardX11 yes 44 | Host pattern 45 | ForwardX11 no 46 | -------------------------------------------------------------------------------- /config/minttyrc: -------------------------------------------------------------------------------- 1 | # 2 | # .minttyrc - Configuration file for mintty terminal 3 | # 4 | 5 | Columns=100 6 | Rows=24 7 | Term=xterm 8 | 9 | FontHeight=11 10 | BoldAsFont=no 11 | 12 | ForegroundColour=0,153,0 13 | BackgroundColour=0,0,0 14 | CursorColour=255,0,0 15 | CursorType=block 16 | 17 | Black=51,51,51 18 | BoldBlack=51,51,51 19 | Red=255,85,85 20 | BoldRed=255,85,85 21 | Green=85,255,85 22 | BoldGreen=85,255,85 23 | Yellow=255,255,85 24 | BoldYellow=255,255,85 25 | Blue=85,85,255 26 | BoldBlue=85,85,255 27 | Magenta=255,85,255 28 | BoldMagenta=255,85,255 29 | Cyan=85,255,255 30 | BoldCyan=85,255,255 31 | White=255,255,255 32 | BoldWhite=255,255,255 33 | -------------------------------------------------------------------------------- /config/profile-opt: -------------------------------------------------------------------------------- 1 | if [ "$TERM" -a "$TERM" != dumb ] 2 | then 3 | # Bash prompt over-ride for slow machines 4 | ##PS1='\[\033[01;32m\][\t] \[\033[01;34m\]\w\n\[\033[01;32m\]\u@\h\[\033[00m\] $ ' 5 | 6 | # Re-enable writing of ".pyc" & ".pyo" files 7 | ##unset PYTHONDONTWRITEBYTECODE 8 | 9 | # All traffic to VPN 10 | ##export VPN_ALL_TRAFFIC=1 11 | 12 | # Python virtualenv activation regex 13 | [ ! "$VIRTUAL_ENV" ] && export PYTHON_VENVS=".*" 14 | ##export ANSIBLE_VERSION=2.12 15 | 16 | # API key files 17 | ##export ANSIBLE_KEY_FILE= 18 | ##export DROPBOX_KEY_FILE= 19 | fi 20 | -------------------------------------------------------------------------------- /config/rc.local: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | export PATH="/opt/software/bin:$PATH" 4 | export PYTHONDONTWRITEBYTECODE=1 5 | 6 | sleep 4 && xlight -reset > /dev/null 2>&1 & 7 | sleep 20 && ntplib -u -r > /tmp/.ntplib.log 2>&1 & 8 | rmdir /media/*/* /media/* 2> /dev/null && rm /media/* > /dev/null 2>&1 & 9 | sleep 300 && rm /sys/fs/pstore/* > /dev/null 2>&1 & 10 | 11 | # Configure Firewall 12 | /etc/iptables.conf > /dev/null 2>&1 & 13 | 14 | # Fix VPN client incorrect termination 15 | [ -f /run/resolvconf/resolv.conf ] && ln -sf /run/resolvconf/resolv.conf /etc/resolv.conf 16 | 17 | [ -f /etc/rc.local-opt ] && . /etc/rc.local-opt > /dev/null 2>&1 & 18 | 19 | exit 0 20 | -------------------------------------------------------------------------------- /config/setup.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | 3 | ver 4 | 5 | for /f %%a in ('dir /b /s ..\pool\software\7zip_*-windows-x86.exe') do ( 6 | echo Running "%%a" installer... 7 | "%%a" -oc:\software -y 8 | ) 9 | 10 | if "%PROCESSOR_ARCHITECTURE%"=="AMD64" goto win64 11 | if "%PROCESSOR_ARCHITEW6432%"=="AMD64" goto win64 12 | for /f %%a in ('dir /b /s ..\pool\software\busybox_*-windows-x86.7z') do ( 13 | echo Installing "%%a" archive... 14 | call c:\software\bin\7z.bat x -oc:\software -y "%%a" 15 | ) 16 | goto install 17 | :win64 18 | for /f %%a in ('dir /b /s ..\pool\software\busybox_*-windows64-x86.7z') do ( 19 | echo Installing "%%a" archive... 20 | call c:\software\bin\7z.bat x -oc:\software -y "%%a" 21 | ) 22 | :install 23 | 24 | rem echo. 25 | rem echo Running "net use h: \\vboxsvr\shared"... 26 | rem net use h: \\vboxsvr\shared 2> nul 27 | 28 | if exist %~dp0\setupwin.ash c:\software\bin\busybox %~dp0\setupwin.ash 29 | if exist %~dp0\config\setupwin.ash c:\software\bin\busybox %~dp0\config\setupwin.ash 30 | 31 | echo DONE! 32 | -------------------------------------------------------------------------------- /config/userapp-evince.desktop: -------------------------------------------------------------------------------- 1 | # 2 | # .local/share/applications/userapp-evince.desktop 3 | # 4 | [Desktop Entry] 5 | Name=evince.py 6 | Exec=/opt/software/bin/evince %f 7 | Type=Application 8 | NoDisplay=true 9 | -------------------------------------------------------------------------------- /config/userapp-gqview.desktop: -------------------------------------------------------------------------------- 1 | # 2 | # .local/share/applications/userapp-gqview.desktop 3 | # 4 | [Desktop Entry] 5 | Name=gqview.py 6 | Exec=/opt/software/bin/gqview %f 7 | Type=Application 8 | NoDisplay=true 9 | -------------------------------------------------------------------------------- /config/userapp-soffice.desktop: -------------------------------------------------------------------------------- 1 | # 2 | # .local/share/applications/userapp-soffice.desktop 3 | # 4 | [Desktop Entry] 5 | Name=soffice.py 6 | Exec=/opt/software/bin/soffice %f 7 | Type=Application 8 | NoDisplay=true 9 | -------------------------------------------------------------------------------- /config/userapp-vlc.desktop: -------------------------------------------------------------------------------- 1 | # 2 | # .local/share/applications/userapp-vlc.desktop 3 | # 4 | [Desktop Entry] 5 | Name=vlc.py 6 | Exec=/opt/software/bin/vlc %f 7 | Type=Application 8 | NoDisplay=true 9 | -------------------------------------------------------------------------------- /cookiecutter/Makefile: -------------------------------------------------------------------------------- 1 | ifndef PYTHON 2 | PYTHON := python3 3 | endif 4 | 5 | 6 | .PHONY: default 7 | default: help # Default 8 | 9 | .PHONY: docker 10 | docker: # Create new Docker project 11 | ${PYTHON} -m cookiecutter docker 12 | 13 | .PHONY: test 14 | test: # Test new Docker project 15 | rm -rf my_project 16 | ${PYTHON} -m cookiecutter --no-input docker 17 | rm -rf my_project 18 | 19 | .PHONY: help 20 | help: # Show Makefile options 21 | @grep "^[A-Za-z0-9].*:" $(lastword $(MAKEFILE_LIST)) 22 | -------------------------------------------------------------------------------- /cookiecutter/docker/cookiecutter.json: -------------------------------------------------------------------------------- 1 | { 2 | "project_name": "my_project", 3 | "base_image_repository": "drtuxwang/alpine", 4 | "base_image_tag": "3.15", 5 | "image_name": "drtuxwang/alpine-bash:3.15", 6 | "name": "alpine315-bash", 7 | "hostname": "alpine315-bash" 8 | } 9 | -------------------------------------------------------------------------------- /cookiecutter/docker/{{cookiecutter.project_name}}/Dockerfile: -------------------------------------------------------------------------------- 1 | ARG BASE_IMAGE={{ cookiecutter.base_image_repository }}:latest 2 | 3 | FROM ${BASE_IMAGE} 4 | 5 | ADD tmpdir/root.tar / 6 | 7 | # Configure start 8 | ENV HOME=/root 9 | WORKDIR /root 10 | CMD bash -l 11 | -------------------------------------------------------------------------------- /dist/debian_10_amd64.dist: -------------------------------------------------------------------------------- 1 | # 2 | #deb https://deb.debian.org/debian buster main contrib non-free 3 | # 4 | https://deb.debian.org/debian/dists/buster/main/binary-amd64/Packages.xz 5 | https://deb.debian.org/debian/dists/buster/contrib/binary-amd64/Packages.xz 6 | https://deb.debian.org/debian/dists/buster/non-free/binary-amd64/Packages.xz 7 | # 8 | #deb https://deb.debian.org/debian buster-updates main contrib non-free 9 | # 10 | https://deb.debian.org/debian/dists/buster-updates/main/binary-amd64/Packages.xz 11 | https://deb.debian.org/debian/dists/buster-updates/contrib/binary-amd64/Packages.xz 12 | https://deb.debian.org/debian/dists/buster-updates/non-free/binary-amd64/Packages.xz 13 | # 14 | #deb https://security.debian.org buster/updates main contrib non-free 15 | # 16 | https://security.debian.org/dists/buster/updates/main/binary-amd64/Packages.xz 17 | https://security.debian.org/dists/buster/updates/contrib/binary-amd64/Packages.xz 18 | https://security.debian.org/dists/buster/updates/non-free/binary-amd64/Packages.xz 19 | -------------------------------------------------------------------------------- /dist/debian_10_i386.dist: -------------------------------------------------------------------------------- 1 | # 2 | #deb https://deb.debian.org/debian buster main contrib non-free 3 | # 4 | https://deb.debian.org/debian/dists/buster/main/binary-i386/Packages.xz 5 | https://deb.debian.org/debian/dists/buster/contrib/binary-i386/Packages.xz 6 | https://deb.debian.org/debian/dists/buster/non-free/binary-i386/Packages.xz 7 | # 8 | #deb https://deb.debian.org/debian buster-updates main contrib non-free 9 | # 10 | https://deb.debian.org/debian/dists/buster-updates/main/binary-i386/Packages.xz 11 | https://deb.debian.org/debian/dists/buster-updates/contrib/binary-i386/Packages.xz 12 | https://deb.debian.org/debian/dists/buster-updates/non-free/binary-i386/Packages.xz 13 | # 14 | #deb https://security.debian.org buster/updates main contrib non-free 15 | # 16 | https://security.debian.org/dists/buster/updates/main/binary-i386/Packages.xz 17 | https://security.debian.org/dists/buster/updates/contrib/binary-i386/Packages.xz 18 | https://security.debian.org/dists/buster/updates/non-free/binary-i386/Packages.xz 19 | -------------------------------------------------------------------------------- /dist/debian_11_amd64.dist: -------------------------------------------------------------------------------- 1 | # 2 | #deb https://deb.debian.org/debian bullseye main contrib non-free 3 | # 4 | https://deb.debian.org/debian/dists/bullseye/main/binary-amd64/Packages.xz 5 | https://deb.debian.org/debian/dists/bullseye/contrib/binary-amd64/Packages.xz 6 | https://deb.debian.org/debian/dists/bullseye/non-free/binary-amd64/Packages.xz 7 | # 8 | #deb https://deb.debian.org/debian bullseye-updates main contrib non-free 9 | # 10 | https://deb.debian.org/debian/dists/bullseye-updates/main/binary-amd64/Packages.xz 11 | https://deb.debian.org/debian/dists/bullseye-updates/contrib/binary-amd64/Packages.xz 12 | https://deb.debian.org/debian/dists/bullseye-updates/non-free/binary-amd64/Packages.xz 13 | # 14 | #deb https://security.debian.org bullseye-security main contrib non-free 15 | # 16 | https://security.debian.org/dists/bullseye-security/main/binary-amd64/Packages.xz 17 | https://security.debian.org/dists/bullseye-security/contrib/binary-amd64/Packages.xz 18 | https://security.debian.org/dists/bullseye-security/non-free/binary-amd64/Packages.xz 19 | -------------------------------------------------------------------------------- /dist/debian_11_i386.dist: -------------------------------------------------------------------------------- 1 | # 2 | #deb https://deb.debian.org/debian bullseye main contrib non-free 3 | # 4 | https://deb.debian.org/debian/dists/bullseye/main/binary-i386/Packages.xz 5 | https://deb.debian.org/debian/dists/bullseye/contrib/binary-i386/Packages.xz 6 | https://deb.debian.org/debian/dists/bullseye/non-free/binary-i386/Packages.xz 7 | # 8 | #deb https://deb.debian.org/debian bullseye-updates main contrib non-free 9 | # 10 | https://deb.debian.org/debian/dists/bullseye-updates/main/binary-i386/Packages.xz 11 | https://deb.debian.org/debian/dists/bullseye-updates/contrib/binary-i386/Packages.xz 12 | https://deb.debian.org/debian/dists/bullseye-updates/non-free/binary-i386/Packages.xz 13 | # 14 | #deb https://security.debian.org bullseye-security main contrib non-free 15 | # 16 | https://security.debian.org/dists/bullseye-security/main/binary-i386/Packages.xz 17 | https://security.debian.org/dists/bullseye-security/contrib/binary-i386/Packages.xz 18 | https://security.debian.org/dists/bullseye-security/non-free/binary-i386/Packages.xz 19 | -------------------------------------------------------------------------------- /dist/debian_12+_amd64.dist: -------------------------------------------------------------------------------- 1 | # 2 | #deb https://deb.debian.org/debian bookworm-backports main contrib non-free non-free-firmware 3 | # 4 | https://deb.debian.org/debian/dists/bookworm-backports/main/binary-amd64/Packages.xz 5 | https://deb.debian.org/debian/dists/bookworm-backports/contrib/binary-amd64/Packages.xz 6 | https://deb.debian.org/debian/dists/bookworm-backports/non-free/binary-amd64/Packages.xz 7 | https://deb.debian.org/debian/dists/bookworm-backports/non-free-firmware/binary-amd64/Packages.xz 8 | -------------------------------------------------------------------------------- /dist/debian_12_i386.dist: -------------------------------------------------------------------------------- 1 | # 2 | #deb https://deb.debian.org/debian bookworm main contrib non-free 3 | # 4 | https://deb.debian.org/debian/dists/bookworm/main/binary-i386/Packages.xz 5 | https://deb.debian.org/debian/dists/bookworm/contrib/binary-i386/Packages.xz 6 | https://deb.debian.org/debian/dists/bookworm/non-free/binary-i386/Packages.xz 7 | # 8 | #deb https://deb.debian.org/debian bookworm-updates main contrib non-free 9 | # 10 | https://deb.debian.org/debian/dists/bookworm-updates/main/binary-i386/Packages.xz 11 | https://deb.debian.org/debian/dists/bookworm-updates/contrib/binary-i386/Packages.xz 12 | https://deb.debian.org/debian/dists/bookworm-updates/non-free/binary-i386/Packages.xz 13 | # 14 | #deb https://security.debian.org bookworm-security main contrib non-free 15 | # 16 | https://security.debian.org/dists/bookworm-security/main/binary-i386/Packages.xz 17 | https://security.debian.org/dists/bookworm-security/contrib/binary-i386/Packages.xz 18 | https://security.debian.org/dists/bookworm-security/non-free/binary-i386/Packages.xz 19 | -------------------------------------------------------------------------------- /dist/debian_13_amd64.dist: -------------------------------------------------------------------------------- 1 | # 2 | #deb https://deb.debian.org/debian trixie main contrib non-free 3 | # 4 | https://deb.debian.org/debian/dists/trixie/main/binary-amd64/Packages.xz 5 | https://deb.debian.org/debian/dists/trixie/contrib/binary-amd64/Packages.xz 6 | https://deb.debian.org/debian/dists/trixie/non-free/binary-amd64/Packages.xz 7 | # 8 | #deb https://deb.debian.org/debian trixie-updates main contrib non-free 9 | # 10 | ##https://deb.debian.org/debian/dists/trixie-updates/main/binary-amd64/Packages.xz 11 | ##https://deb.debian.org/debian/dists/trixie-updates/contrib/binary-amd64/Packages.xz 12 | ##https://deb.debian.org/debian/dists/trixie-updates/non-free/binary-amd64/Packages.xz 13 | # 14 | #deb https://security.debian.org trixie-security main contrib non-free 15 | # 16 | ##https://security.debian.org/dists/trixie-security/main/binary-amd64/Packages.xz 17 | ##https://security.debian.org/dists/trixie-security/contrib/binary-amd64/Packages.xz 18 | ##https://security.debian.org/dists/trixie-security/non-free/binary-amd64/Packages.xz 19 | -------------------------------------------------------------------------------- /dist/debian_13_i386.dist: -------------------------------------------------------------------------------- 1 | # 2 | #deb https://deb.debian.org/debian trixie main contrib non-free 3 | # 4 | https://deb.debian.org/debian/dists/trixie/main/binary-i386/Packages.xz 5 | https://deb.debian.org/debian/dists/trixie/contrib/binary-i386/Packages.xz 6 | https://deb.debian.org/debian/dists/trixie/non-free/binary-i386/Packages.xz 7 | # 8 | #deb https://deb.debian.org/debian trixie-updates main contrib non-free 9 | # 10 | ##https://deb.debian.org/debian/dists/trixie-updates/main/binary-i386/Packages.xz 11 | ##https://deb.debian.org/debian/dists/trixie-updates/contrib/binary-i386/Packages.xz 12 | ##https://deb.debian.org/debian/dists/trixie-updates/non-free/binary-i386/Packages.xz 13 | # 14 | #deb https://security.debian.org trixie-security main contrib non-free 15 | # 16 | ##https://security.debian.org/dists/trixie-security/main/binary-i386/Packages.xz 17 | ##https://security.debian.org/dists/trixie-security/contrib/binary-i386/Packages.xz 18 | ##https://security.debian.org/dists/trixie-security/non-free/binary-i386/Packages.xz 19 | -------------------------------------------------------------------------------- /dist/debian_4_amd64.dist: -------------------------------------------------------------------------------- 1 | # 2 | #deb http://archive.debian.org/debian etch main contrib non-free 3 | # 4 | http://archive.debian.org/debian/dists/etch/main/binary-amd64/Packages.bz2 5 | http://archive.debian.org/debian/dists/etch/contrib/binary-amd64/Packages.bz2 6 | http://archive.debian.org/debian/dists/etch/non-free/binary-amd64/Packages.bz2 7 | -------------------------------------------------------------------------------- /dist/debian_5_amd64.dist: -------------------------------------------------------------------------------- 1 | # 2 | #deb http://archive.debian.org/debian lenny main contrib non-free 3 | # 4 | http://archive.debian.org/debian/dists/lenny/main/binary-amd64/Packages.bz2 5 | http://archive.debian.org/debian/dists/lenny/contrib/binary-amd64/Packages.bz2 6 | http://archive.debian.org/debian/dists/lenny/non-free/binary-amd64/Packages.bz2 7 | -------------------------------------------------------------------------------- /dist/debian_6_amd64.dist: -------------------------------------------------------------------------------- 1 | # 2 | #deb http://archive.debian.org/debian squeeze main contrib non-free 3 | # 4 | http://archive.debian.org/debian/dists/squeeze/main/binary-amd64/Packages.bz2 5 | http://archive.debian.org/debian/dists/squeeze/contrib/binary-amd64/Packages.bz2 6 | http://archive.debian.org/debian/dists/squeeze/non-free/binary-amd64/Packages.bz2 7 | -------------------------------------------------------------------------------- /dist/debian_7_amd64.dist: -------------------------------------------------------------------------------- 1 | # 2 | #deb http://archive.debian.org/debian wheezy main contrib non-free 3 | # 4 | http://archive.debian.org/debian/dists/wheezy/main/binary-amd64/Packages.gz 5 | http://archive.debian.org/debian/dists/wheezy/contrib/binary-amd64/Packages.gz 6 | http://archive.debian.org/debian/dists/wheezy/non-free/binary-amd64/Packages.gz 7 | # 8 | #deb http://archive.debian.org/debian-archive/debian-security wheezy/updates main contrib non-free 9 | # 10 | http://archive.debian.org/debian-archive/debian-security/dists/wheezy/updates/main/binary-amd64/Packages.gz 11 | http://archive.debian.org/debian-archive/debian-security/dists/wheezy/updates/contrib/binary-amd64/Packages.gz 12 | http://archive.debian.org/debian-archive/debian-security/dists/wheezy/updates/non-free/binary-amd64/Packages.gz 13 | -------------------------------------------------------------------------------- /dist/debian_8_amd64.dist: -------------------------------------------------------------------------------- 1 | # 2 | #deb http://archive.debian.org/debian jessie main contrib non-free 3 | # 4 | http://archive.debian.org/debian/dists/jessie/main/binary-amd64/Packages.xz 5 | http://archive.debian.org/debian/dists/jessie/contrib/binary-amd64/Packages.xz 6 | http://archive.debian.org/debian/dists/jessie/non-free/binary-amd64/Packages.xz 7 | # 8 | #deb http://archive.debian.org/debian-archive/debian-security jessie/updates main contrib non-free 9 | # 10 | http://archive.debian.org/debian-archive/debian-security/dists/jessie/updates/main/binary-amd64/Packages.bz2 11 | http://archive.debian.org/debian-archive/debian-security/dists/jessie/updates/contrib/binary-amd64/Packages.bz2 12 | http://archive.debian.org/debian-archive/debian-security/dists/jessie/updates/non-free/binary-amd64/Packages.bz2 13 | -------------------------------------------------------------------------------- /dist/debian_9_amd64.dist: -------------------------------------------------------------------------------- 1 | # 2 | #deb http://archive.debian.org/debian stretch main contrib non-free 3 | # 4 | http://archive.debian.org/debian/dists/stretch/main/binary-amd64/Packages.xz 5 | http://archive.debian.org/debian/dists/stretch/contrib/binary-amd64/Packages.xz 6 | http://archive.debian.org/debian/dists/stretch/non-free/binary-amd64/Packages.xz 7 | # 8 | #deb http://archive.debian.org/debian-archive/debian-security stretch/updates main contrib non-free 9 | # 10 | http://archive.debian.org/debian-archive/debian-security/dists/stretch/updates/main/binary-amd64/Packages.xz 11 | http://archive.debian.org/debian-archive/debian-security/dists/stretch/updates/contrib/binary-amd64/Packages.xz 12 | http://archive.debian.org/debian-archive/debian-security/dists/stretch/updates/non-free/binary-amd64/Packages.xz 13 | -------------------------------------------------------------------------------- /dist/debian_sid_amd64.dist: -------------------------------------------------------------------------------- 1 | # 2 | #deb https://deb.debian.org/debian sid main contrib non-free 3 | # 4 | https://deb.debian.org/debian/dists/sid/main/binary-amd64/Packages.xz 5 | https://deb.debian.org/debian/dists/sid/contrib/binary-amd64/Packages.xz 6 | https://deb.debian.org/debian/dists/sid/non-free/binary-amd64/Packages.xz 7 | # 8 | #deb https://deb.debian.org/debian sid-updates main contrib non-free 9 | # 10 | ##https://deb.debian.org/debian/dists/sid-updates/main/binary-amd64/Packages.xz 11 | ##https://deb.debian.org/debian/dists/sid-updates/contrib/binary-amd64/Packages.xz 12 | ##https://deb.debian.org/debian/dists/sid-updates/non-free/binary-amd64/Packages.xz 13 | # 14 | #deb https://security.debian.org sid-security main contrib non-free 15 | # 16 | ##https://security.debian.org/dists/sid-security/main/binary-amd64/Packages.xz 17 | ##https://security.debian.org/dists/sid-security/contrib/binary-amd64/Packages.xz 18 | ##https://security.debian.org/dists/sid-security/non-free/binary-amd64/Packages.xz 19 | -------------------------------------------------------------------------------- /dist/debian_sid_i386.dist: -------------------------------------------------------------------------------- 1 | # 2 | #deb https://deb.debian.org/debian sid main contrib non-free 3 | # 4 | https://deb.debian.org/debian/dists/sid/main/binary-i386/Packages.xz 5 | https://deb.debian.org/debian/dists/sid/contrib/binary-i386/Packages.xz 6 | https://deb.debian.org/debian/dists/sid/non-free/binary-i386/Packages.xz 7 | # 8 | #deb https://deb.debian.org/debian sid-updates main contrib non-free 9 | # 10 | ##https://deb.debian.org/debian/dists/sid-updates/main/binary-i386/Packages.xz 11 | ##https://deb.debian.org/debian/dists/sid-updates/contrib/binary-i386/Packages.xz 12 | ##https://deb.debian.org/debian/dists/sid-updates/non-free/binary-i386/Packages.xz 13 | # 14 | #deb https://security.debian.org sid-security main contrib non-free 15 | # 16 | ##https://security.debian.org/dists/sid-security/main/binary-i386/Packages.xz 17 | ##https://security.debian.org/dists/sid-security/contrib/binary-i386/Packages.xz 18 | ##https://security.debian.org/dists/sid-security/non-free/binary-i386/Packages.xz 19 | -------------------------------------------------------------------------------- /docker/alpine-3.17/Dockerfile: -------------------------------------------------------------------------------- 1 | ARG BASE_IMAGE=alpine:latest 2 | 3 | FROM ${BASE_IMAGE} 4 | 5 | # Install base packages 6 | RUN apk update && \ 7 | apk add \ 8 | bash \ 9 | bind-tools \ 10 | curl \ 11 | iproute2 \ 12 | openssh-client \ 13 | socat \ 14 | tcptraceroute \ 15 | vim 16 | 17 | # Install compiler & dev packages 18 | RUN apk add \ 19 | automake \ 20 | bison \ 21 | gcc \ 22 | g++ \ 23 | gfortran \ 24 | make \ 25 | bzip2-dev \ 26 | db-dev \ 27 | gdbm-dev \ 28 | libevent-dev \ 29 | libffi-dev \ 30 | ncurses-dev \ 31 | openssl-dev \ 32 | readline-dev \ 33 | sqlite-dev \ 34 | xz-dev && \ 35 | apk add blas-dev curl-dev jpeg-dev lapack-dev 36 | 37 | COPY rootfs/ / 38 | 39 | # Configure start 40 | ENV HOME=/root 41 | WORKDIR /root 42 | CMD ["bash", "-l"] 43 | -------------------------------------------------------------------------------- /docker/alpine-3.18/Dockerfile: -------------------------------------------------------------------------------- 1 | ARG BASE_IMAGE=alpine:latest 2 | 3 | FROM ${BASE_IMAGE} 4 | 5 | # Install base packages 6 | RUN apk update && \ 7 | apk add \ 8 | bash \ 9 | bind-tools \ 10 | curl \ 11 | iproute2 \ 12 | openssh-client \ 13 | socat \ 14 | tcptraceroute \ 15 | vim 16 | 17 | # Install compiler & dev packages 18 | RUN apk add \ 19 | automake \ 20 | bison \ 21 | gcc \ 22 | g++ \ 23 | gfortran \ 24 | make \ 25 | bzip2-dev \ 26 | db-dev \ 27 | gdbm-dev \ 28 | libevent-dev \ 29 | libffi-dev \ 30 | ncurses-dev \ 31 | openssl-dev \ 32 | readline-dev \ 33 | sqlite-dev \ 34 | xz-dev && \ 35 | apk add blas-dev curl-dev jpeg-dev lapack-dev 36 | 37 | COPY rootfs/ / 38 | 39 | # Configure start 40 | ENV HOME=/root 41 | WORKDIR /root 42 | CMD ["bash", "-l"] 43 | -------------------------------------------------------------------------------- /docker/bin/bash2ash: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | exec /bin/ash -l "$@" 4 | -------------------------------------------------------------------------------- /docker/bin/pull-save.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | # 3 | # Pull updated Docker images and save to tar archives 4 | # 5 | 6 | set -eu 7 | 8 | if [ $# = 0 ] 9 | then 10 | echo "Usage: $0 " 11 | exit 1 12 | fi 13 | 14 | for IMAGE in $*; 15 | do 16 | CREATED_OLD=$(docker inspect "$IMAGE" | sed -e 's/"/ /g' | sort -r | awk '/Created/ {print $3; exit}') 17 | docker pull $IMAGE 18 | CREATED=$(docker inspect "$IMAGE" | sed -e 's/"/ /g' | sort -r | awk '/Created/ {print $3; exit}') 19 | if [ "$CREATED_OLD" != "$CREATED" ] 20 | then 21 | $(dirname "$0")/../../bin/docker-save "$IMAGE" 22 | fi 23 | done 24 | -------------------------------------------------------------------------------- /docker/busybox-1.36/Dockerfile: -------------------------------------------------------------------------------- 1 | ARG BASE_IMAGE=busybox:latest 2 | 3 | FROM ${BASE_IMAGE} 4 | 5 | COPY rootfs/ / 6 | 7 | # Configure start 8 | ENV HOME=/root 9 | WORKDIR /root 10 | CMD ["bash", "-l"] 11 | -------------------------------------------------------------------------------- /docker/debian-12/ops/Dockerfile: -------------------------------------------------------------------------------- 1 | ARG BASE_IMAGE=debian:latest 2 | ARG DOCKER_REPO=None 3 | ARG DOCKER_DEB=None 4 | 5 | FROM ${BASE_IMAGE} 6 | ARG DOCKER_REPO 7 | ARG DOCKER_DEB 8 | 9 | # Install base packages 10 | RUN apt-get update && \ 11 | apt-get install --no-install-recommends --fix-missing -y \ 12 | ca-certificates \ 13 | curl \ 14 | dnsutils \ 15 | iproute2 \ 16 | iputils-ping \ 17 | net-tools \ 18 | netcat-openbsd \ 19 | openssh-client \ 20 | pciutils \ 21 | procps \ 22 | socat \ 23 | tcptraceroute \ 24 | vim \ 25 | wget && \ 26 | apt-get clean 27 | 28 | RUN wget --progress=bar:force $DOCKER_REPO/$DOCKER_DEB && \ 29 | dpkg -i $DOCKER_DEB && \ 30 | rm $DOCKER_DEB 31 | 32 | COPY rootfs/ / 33 | 34 | # Configure start 35 | ENV HOME=/root 36 | WORKDIR /root 37 | CMD ["bash", "-l"] 38 | -------------------------------------------------------------------------------- /docker/debian-12/wine/Dockerfile: -------------------------------------------------------------------------------- 1 | ARG BASE_IMAGE=debian:latest 2 | 3 | FROM ${BASE_IMAGE} 4 | 5 | # WINE 32bit server 6 | RUN dpkg --add-architecture i386 && \ 7 | apt-get update && \ 8 | apt-get install --no-install-recommends --fix-missing -y \ 9 | wine \ 10 | wine64 \ 11 | wine32:i386 \ 12 | libc6-dev:i386 && \ 13 | apt-get clean 14 | 15 | ENTRYPOINT ["wine", "cmd"] 16 | -------------------------------------------------------------------------------- /docker/debian-12/xfce/files/allow-owner: -------------------------------------------------------------------------------- 1 | # Copy to /etc/sudoers.d 2 | owner ALL=(ALL) NOPASSWD: ALL 3 | -------------------------------------------------------------------------------- /docker/debian-12/xfce/files/docker-init: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | # 3 | # Docker container init script 4 | # 5 | 6 | run_vnc() { 7 | echo "Starting SSHD server..." 8 | sudo /usr/sbin/sshd -D & 9 | sleep 1 10 | ps -ef | grep "[0-9] /usr/sbin/sshd -D" 11 | 12 | echo "Starting VNC server..." 13 | cd /home/owner 14 | sudo -u owner HOME=/home/owner vncserver \ 15 | -geometry 1280x720 \ 16 | -depth 24 \ 17 | -localhost \ 18 | -SecurityTypes None > /dev/null 2>&1 19 | vncserver -list | grep ^: 20 | } 21 | 22 | if [ "$SSH_PUBKEY" ] 23 | then 24 | mkdir -p $HOME/.ssh 25 | chmod 700 $HOME/.ssh 26 | echo "$SSH_PUBKEY" > $HOME/.ssh/authorized_keys 27 | echo "$SSH_PUBKEY" > /home/owner/.ssh/authorized_keys 28 | fi 29 | 30 | if [ $# = 0 ] 31 | then 32 | exec bash -l 33 | elif [ "$1" = "-svnc" ] 34 | then 35 | run_vnc 36 | sleep infinity 37 | else 38 | exec "$@" 39 | fi 40 | -------------------------------------------------------------------------------- /docker/debian-12/xfce/files/xstartup: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | unset DBUS_SESSION_BUS_ADDRESS 3 | unset SESSION_MANAGER 4 | dbus-launch startxfce4 5 | -------------------------------------------------------------------------------- /docker/golang-1.22/Dockerfile: -------------------------------------------------------------------------------- 1 | ARG BASE_IMAGE=golang:latest 2 | 3 | FROM ${BASE_IMAGE} 4 | 5 | # Install base packages 6 | RUN apk update && \ 7 | apk add bash openssh-client vim 8 | 9 | COPY rootfs/ / 10 | 11 | # Configure start 12 | ENV HOME=/root 13 | WORKDIR /root 14 | CMD ["bash", "-l"] 15 | -------------------------------------------------------------------------------- /docker/httpd-2.4/Dockerfile: -------------------------------------------------------------------------------- 1 | ARG BASE_IMAGE=httpd:latest 2 | 3 | FROM ${BASE_IMAGE} 4 | 5 | COPY rootfs/ / 6 | 7 | # Apache HTTPD setup 8 | COPY files/httpd.conf /usr/local/apache2/conf/httpd.conf 9 | COPY public-html/ /usr/local/apache2/htdocs/ 10 | 11 | # Configure start 12 | EXPOSE 80 13 | ENTRYPOINT ["httpd-foreground"] 14 | -------------------------------------------------------------------------------- /docker/httpd-2.4/public-html/testlcd.js: -------------------------------------------------------------------------------- 1 | // 2 | // Screen Test Javascript (white, black, red, green, blue) 3 | // 4 | 5 | var current = 1; 6 | 7 | function testChange() 8 | { 9 | if (current === 0) 10 | document.body.style.background = "#ffffff"; 11 | else if (current == 1) 12 | document.body.style.background = "#000000"; 13 | else if (current == 2) 14 | document.body.style.background = "#ff0000"; 15 | else if (current == 3) 16 | document.body.style.background = "#00ff00"; 17 | else if (current == 4) 18 | document.body.style.background = "#0000ff"; 19 | 20 | current = ++current % 5; 21 | } 22 | -------------------------------------------------------------------------------- /docker/nginx-1.26/Dockerfile: -------------------------------------------------------------------------------- 1 | ARG BASE_IMAGE=nginx:latest 2 | 3 | FROM ${BASE_IMAGE} 4 | 5 | COPY rootfs/ / 6 | 7 | # Nginx setup 8 | COPY files/nginx-proxy.conf /etc/nginx/conf.d/ 9 | RUN mv /etc/nginx/conf.d/default.conf /etc/nginx/conf.d/default.conf-disabled 10 | 11 | # Configure start 12 | EXPOSE 80 443 13 | ENTRYPOINT ["nginx"] 14 | CMD ["-g", "daemon off;"] 15 | -------------------------------------------------------------------------------- /docker/python-3.12/Dockerfile: -------------------------------------------------------------------------------- 1 | ARG BASE_IMAGE=python:latest 2 | 3 | FROM ${BASE_IMAGE} 4 | 5 | COPY rootfs/ / 6 | 7 | # Configure start 8 | ENV HOME=/root 9 | WORKDIR /root 10 | -------------------------------------------------------------------------------- /docker/python-3.12/devpi/Dockerfile: -------------------------------------------------------------------------------- 1 | ARG BASE_IMAGE=drtuxwang/python:latest 2 | 3 | FROM ${BASE_IMAGE} 4 | 5 | RUN python3 -m pip install \ 6 | devpi-server==6.5.1 \ 7 | devpi-web==4.0.8 \ 8 | devpi-common==3.6.0 && \ 9 | devpi-init --serverdir=/var/lib/devpi && \ 10 | devpi-gen-secret --secretfile=/var/lib/devpi/.secret 11 | 12 | # Configure start 13 | ENV PYTHONDONTWRITEBYTECODE=1 14 | EXPOSE 8080 15 | ENTRYPOINT ["devpi-server"] 16 | CMD ["--serverdir=/var/lib/devpi", "--secretfile=/var/lib/devpi/.secret", "--host=0.0.0.0", "--port=8080"] 17 | -------------------------------------------------------------------------------- /docker/python-3.12/pip/Dockerfile: -------------------------------------------------------------------------------- 1 | ARG BASE_IMAGE=drtuxwang/python:latest 2 | 3 | FROM ${BASE_IMAGE} 4 | 5 | # Install compiler & dev packages 6 | RUN apt-get update && \ 7 | apt-get install --no-install-recommends --fix-missing -y \ 8 | curl \ 9 | g++ \ 10 | libcurl4-openssl-dev \ 11 | libssl-dev \ 12 | make && \ 13 | apt-get clean 14 | 15 | COPY rootfs/ / 16 | RUN /etc/python-packages.bash -sys /usr/local/bin/python3 17 | 18 | # Configure start 19 | ENV HOME=/root 20 | WORKDIR /root 21 | CMD ["bash", "-l"] 22 | -------------------------------------------------------------------------------- /docker/registry-2.6/Dockerfile: -------------------------------------------------------------------------------- 1 | ARG BASE_IMAGE=registry:latest 2 | 3 | FROM ${BASE_IMAGE} 4 | 5 | COPY rootfs/ / 6 | COPY ./files/config.yaml /etc/docker/registry/ 7 | 8 | # Configure start 9 | ENV REGISTRY_STORAGE_DELETE_ENABLED=true 10 | EXPOSE 5000 11 | ENTRYPOINT ["/entrypoint.sh"] 12 | CMD ["/etc/docker/registry/config.yaml"] 13 | -------------------------------------------------------------------------------- /docker/registry-2.6/files/config.yaml: -------------------------------------------------------------------------------- 1 | version: 0.1 2 | log: 3 | fields: 4 | service: registry 5 | storage: 6 | cache: 7 | blobdescriptor: inmemory 8 | filesystem: 9 | rootdirectory: /var/lib/registry 10 | maintenance: 11 | readonly: 12 | enabled: false 13 | http: 14 | addr: :5000 15 | headers: 16 | X-Content-Type-Options: [nosniff] 17 | health: 18 | storagedriver: 19 | enabled: true 20 | interval: 10s 21 | threshold: 3 22 | -------------------------------------------------------------------------------- /docker/scratch/Dockerfile: -------------------------------------------------------------------------------- 1 | ARG BASE_IMAGE=scratch 2 | 3 | FROM ${BASE_IMAGE} 4 | 5 | COPY rootfs/ / 6 | 7 | # Configure start 8 | ENV HOME=/root 9 | WORKDIR /root 10 | CMD ["bash", "-l"] 11 | -------------------------------------------------------------------------------- /etc/python-requirements_3.10.txt: -------------------------------------------------------------------------------- 1 | exceptiongroup==1.1.3 # (required by ipython for 3.10) 2 | tomli==2.0.1 # (required by pylint for 3.10) 3 | -------------------------------------------------------------------------------- /etc/python-requirements_3.10mac.txt: -------------------------------------------------------------------------------- 1 | appnope==0.1.4 # (required for App Nap on MacOS) 2 | -------------------------------------------------------------------------------- /etc/python-requirements_3.11mac.txt: -------------------------------------------------------------------------------- 1 | appnope==0.1.4 # (required for App Nap on MacOS) 2 | -------------------------------------------------------------------------------- /etc/python-requirements_3.8.txt: -------------------------------------------------------------------------------- 1 | astroid # ==3.2.4 (last compatible version) 2 | filelock # ==3.16.1 (last compatible version) 3 | ipython # ==8.13.0 (last compatible version) 4 | pycodestyle # ==2.12.1 (last compatible version) 5 | pipdeptree # ==2.24.0 (last compatible version) 6 | pylint # ==3.2.7 (last compatible version) 7 | setuptools # ==75.3.2 (last compatible version) 8 | tornado # ==6.4.2 (last compatible version) 9 | tomli==2.0.1 # (required by pylint for 3.8) 10 | zipp # ==3.14.0 (required by importlib-metadata for 3.8) 11 | 12 | -------------------------------------------------------------------------------- /etc/python-requirements_3.9.txt: -------------------------------------------------------------------------------- 1 | exceptiongroup==1.1.3 # (required by ipython for 3.9) 2 | ipython # ==8.18.1 (last compatible version) 3 | tomli==2.0.1 # (required by pylint for 3.9) 4 | zipp # ==3.14.0 (required by importlib-metadata for 3.9) 5 | -------------------------------------------------------------------------------- /etc/python-requirements_3.9mac.txt: -------------------------------------------------------------------------------- 1 | appnope==0.1.4 # (required for App Nap on MacOS) 2 | -------------------------------------------------------------------------------- /etc/setbin: -------------------------------------------------------------------------------- 1 | # 2 | # sh/ksh/bash/csh/tcsh shell initilization script 3 | # 4 | # . /opt/software/etc/setbin 5 | # source /opt/software/etc/setbin 6 | # 7 | if ( 1 ) then 8 | setenv PATH /opt/software/bin:${PATH} 9 | echo 'Prefixed PATH with "/opt/software/bin".' 10 | else 11 | PATH=/opt/software/bin:$PATH; export 12 | fi > /dev/null 2>&1 13 | echo "Prefixed PATH with \"/opt/software/bin\"." 14 | cat << endif > /dev/null 2>&1 15 | endif 16 | endif 17 | -------------------------------------------------------------------------------- /etc/setbin.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | rem 3 | rem Command shell initilization script 4 | rem 5 | rem c:\software\etc\setbin.bat 6 | rem 7 | 8 | set SOFTWAREDIR=%~dp0.. 9 | set PATH=%SOFTWAREDIR%\bin;%PATH% 10 | echo Prefixed PATH with "%SOFTWAREDIR%\bin". 11 | -------------------------------------------------------------------------------- /etc/setbin.ps1: -------------------------------------------------------------------------------- 1 | # 2 | # Powershell initilization script 3 | # 4 | # . c:\software\etc\setbin.ps1 5 | # 6 | $env:PYTHON3 = $env:SOFTWAREDIR + "\bin\python.bat" 7 | 8 | $env:SOFTWAREDIR=(Split-Path (Split-Path $MyInvocation.MyCommand.Path)) 9 | $env:PATH = $env:SOFTWAREDIR + "\bin;" + $env:PATH 10 | echo "Prefixed PATH with ""$env:SOFTWAREDIR\bin""." 11 | -------------------------------------------------------------------------------- /helm/etcd/values.yaml: -------------------------------------------------------------------------------- 1 | nodeSelector: 2 | kubernetes.io/os: linux 3 | ##kubernetes.io/hostname: ryson.local 4 | 5 | persistence: 6 | enabled: false 7 | usePassword: false 8 | securityContext: 9 | enabled: true 10 | fsGroup: 1001 11 | runAsUser: 1001 12 | collections: 13 | example1: example1 14 | example2: example22 15 | metrics: 16 | enabled: true 17 | ## serviceMonitor: 18 | ## enabled: true 19 | ## namespace: monitoring 20 | ## additionalLabels: 21 | ## prometheus: active 22 | -------------------------------------------------------------------------------- /helm/grafana/values.yaml: -------------------------------------------------------------------------------- 1 | nodeSelector: 2 | kubernetes.io/os: linux 3 | ##kubernetes.io/hostname: ryson.local 4 | 5 | persistence: 6 | enabled: false 7 | -------------------------------------------------------------------------------- /helm/jenkins/values.yaml: -------------------------------------------------------------------------------- 1 | nodeSelector: 2 | kubernetes.io/os: linux 3 | ##kubernetes.io/hostname: ryson.local 4 | 5 | persistence: 6 | enabled: false 7 | -------------------------------------------------------------------------------- /helm/mongodb/values.yaml: -------------------------------------------------------------------------------- 1 | nodeSelector: 2 | kubernetes.io/os: linux 3 | ##kubernetes.io/hostname: ryson.local 4 | auth: 5 | enabled: false 6 | metrics: 7 | enabled: true 8 | ## serviceMonitor: 9 | ## enabled: true 10 | ## namespace: monitoring 11 | ## additionalLabels: 12 | ## prometheus: active 13 | persistence: 14 | enabled: false 15 | usePassword: false 16 | architecture: standalone 17 | collections: 18 | example1: example1 19 | example2: example22 20 | -------------------------------------------------------------------------------- /helm/nexus/values.yaml: -------------------------------------------------------------------------------- 1 | nodeSelector: 2 | kubernetes.io/os: linux 3 | ##kubernetes.io/hostname: ryson.local 4 | 5 | persistence: 6 | enabled: false 7 | 8 | nexusBackup: 9 | persistence: 10 | enabled: false 11 | -------------------------------------------------------------------------------- /helm/oracle-xe/drtuxwang/oracle-xe/Chart.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | description: Helm chart for Oracle-XE 3 | name: oracle-xe 4 | version: 1.4.0 5 | appVersion: 21.3.0 6 | -------------------------------------------------------------------------------- /helm/oracle-xe/drtuxwang/oracle-xe/templates/_helpers.tpl: -------------------------------------------------------------------------------- 1 | {{- define "chart.name" -}} 2 | {{- .Chart.Name -}} 3 | {{- end -}} 4 | 5 | {{- define "app.fullname" -}} 6 | {{- if .Values.fullnameOverride -}} 7 | {{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" -}} 8 | {{- else -}} 9 | {{- .Release.Name | trunc 63 | trimSuffix "-" -}} 10 | {{- end -}} 11 | {{- end -}} 12 | 13 | {{- define "chart.image.name" -}} 14 | {{- $registry_name := .Values.image.registry -}} 15 | {{- $repository_ame := .Values.image.repository -}} 16 | {{- $tag := .Values.image.tag | toString -}} 17 | {{- printf "%s/%s:%s" $registry_name $repository_ame $tag -}} 18 | {{- end -}} 19 | -------------------------------------------------------------------------------- /helm/oracle-xe/drtuxwang/oracle-xe/templates/box-headless-service.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Service 3 | metadata: 4 | labels: 5 | helm.sh/chart: {{ include "chart.name" . }} 6 | app.kubernetes.io/name: {{ include "chart.name" . }}-box 7 | app.kubernetes.io/instance: {{ .Release.Name }} 8 | app.kubernetes.io/managed-by: {{ .Release.Service }} 9 | name: {{ include "app.fullname" . }}-box-headless 10 | spec: 11 | clusterIP: None 12 | ports: 13 | - name: http 14 | port: 8080 15 | protocol: TCP 16 | targetPort: http 17 | - name: oracle 18 | port: 1521 19 | protocol: TCP 20 | targetPort: oracle 21 | selector: 22 | app.kubernetes.io/name: {{ include "chart.name" . }}-box 23 | app.kubernetes.io/instance: {{ .Release.Name }} 24 | type: {{ .Values.service.oracle.type }} 25 | -------------------------------------------------------------------------------- /helm/oracle-xe/drtuxwang/oracle-xe/templates/box-service.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Service 3 | metadata: 4 | labels: 5 | helm.sh/chart: {{ include "chart.name" . }} 6 | app.kubernetes.io/name: {{ include "chart.name" . }}-box 7 | app.kubernetes.io/instance: {{ .Release.Name }} 8 | app.kubernetes.io/managed-by: {{ .Release.Service }} 9 | name: {{ include "app.fullname" . }}-box 10 | spec: 11 | ports: 12 | - name: http 13 | port: 8080 14 | protocol: TCP 15 | targetPort: http 16 | - name: oracle 17 | port: 1521 18 | protocol: TCP 19 | targetPort: oracle 20 | {{- if .Values.service.externalIPs }} 21 | externalIPs: {{ toYaml .Values.service.externalIPs | nindent 4 }} 22 | {{- end }} 23 | selector: 24 | app.kubernetes.io/name: {{ include "chart.name" . }}-box 25 | app.kubernetes.io/instance: {{ .Release.Name }} 26 | type: {{ .Values.service.oracle.type }} 27 | -------------------------------------------------------------------------------- /helm/oracle-xe/drtuxwang/oracle-xe/values.yaml: -------------------------------------------------------------------------------- 1 | app: 2 | box: 3 | replicas: 1 4 | 5 | image: 6 | pullPolicy: IfNotPresent 7 | registry: docker.io 8 | repository: gvenzl/oracle-xe 9 | tag: 21.3.0-slim 10 | 11 | service: 12 | http: 13 | type: ClusterIP 14 | oracle: 15 | type: ClusterIP 16 | 17 | resources: 18 | limits: {} 19 | requests: {} 20 | 21 | nodeSelector: {} 22 | 23 | tolerations: [] 24 | 25 | affinity: {} 26 | -------------------------------------------------------------------------------- /helm/oracle-xe/values.yaml: -------------------------------------------------------------------------------- 1 | nodeSelector: 2 | kubernetes.io/os: linux 3 | ##kubernetes.io/hostname: ryson.local 4 | 5 | password: oracle 6 | 7 | resources: 8 | limits: 9 | cpu: 1000m 10 | memory: 4096M 11 | requests: 12 | cpu: 100m 13 | memory: 64M 14 | -------------------------------------------------------------------------------- /helm/pushgateway/values.yaml: -------------------------------------------------------------------------------- 1 | nodeSelector: 2 | kubernetes.io/os: linux 3 | ##kubernetes.io/hostname: ryson.local 4 | -------------------------------------------------------------------------------- /helm/rabbitmq/values.yaml: -------------------------------------------------------------------------------- 1 | nodeSelector: 2 | kubernetes.io/os: linux 3 | ##kubernetes.io/hostname: ryson.local 4 | 5 | persistence: 6 | enabled: false 7 | -------------------------------------------------------------------------------- /helm/test-box/drtuxwang/test-box/Chart.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | description: Helm chart for Ops Server Box 3 | name: test-box 4 | version: 1.4.1 5 | appVersion: 1.0.0 6 | -------------------------------------------------------------------------------- /helm/test-box/drtuxwang/test-box/templates/_helpers.tpl: -------------------------------------------------------------------------------- 1 | {{- define "chart.name" -}} 2 | {{- .Chart.Name -}} 3 | {{- end -}} 4 | 5 | {{- define "app.fullname" -}} 6 | {{- if .Values.fullnameOverride -}} 7 | {{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" -}} 8 | {{- else -}} 9 | {{- .Release.Name | trunc 63 | trimSuffix "-" -}} 10 | {{- end -}} 11 | {{- end -}} 12 | 13 | {{- define "chart.image.name" -}} 14 | {{- $registry_name := .Values.image.registry -}} 15 | {{- $repository_ame := .Values.image.repository -}} 16 | {{- $tag := .Values.image.tag | toString -}} 17 | {{- printf "%s/%s:%s" $registry_name $repository_ame $tag -}} 18 | {{- end -}} 19 | -------------------------------------------------------------------------------- /helm/test-box/drtuxwang/test-box/values.yaml: -------------------------------------------------------------------------------- 1 | app: 2 | box: 3 | replicas: 1 4 | 5 | image: 6 | pullPolicy: IfNotPresent 7 | registry: docker.io 8 | repository: drtuxwang/debian-ops 9 | tag: stable 10 | 11 | resources: {} 12 | 13 | affinity: {} 14 | -------------------------------------------------------------------------------- /helm/test-box/values.yaml: -------------------------------------------------------------------------------- 1 | nodeSelector: 2 | kubernetes.io/os: linux 3 | ##kubernetes.io/hostname: ryson.local 4 | 5 | tolerations: 6 | - effect: NoSchedule 7 | key: cattle.io/os 8 | operator: Equal 9 | value: linux 10 | 11 | ##image: 12 | ## pullPolicy: Always 13 | 14 | resources: 15 | limits: 16 | cpu: 1000m 17 | memory: 1024M 18 | requests: 19 | cpu: 100m 20 | memory: 64M 21 | -------------------------------------------------------------------------------- /helm/test-server/drtuxwang/test-server/Chart.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | description: Helm chart for test servers 3 | name: test-server 4 | version: 1.3.1 5 | appVersion: 1.0.0 6 | -------------------------------------------------------------------------------- /helm/test-server/drtuxwang/test-server/requirements.lock: -------------------------------------------------------------------------------- 1 | dependencies: [] 2 | digest: sha256:81059fe6210ccee4e3349c0f34c12d180f995150128a913d63b65b7937c6b152 3 | generated: "2020-02-28T15:34:49.318459Z" 4 | -------------------------------------------------------------------------------- /helm/test-server/drtuxwang/test-server/requirements.yaml: -------------------------------------------------------------------------------- 1 | dependencies: [] 2 | -------------------------------------------------------------------------------- /helm/test-server/drtuxwang/test-server/templates/_helpers.tpl: -------------------------------------------------------------------------------- 1 | {{- define "chart.name" -}} 2 | {{- .Chart.Name -}} 3 | {{- end -}} 4 | 5 | {{- define "app.fullname" -}} 6 | {{- if .Values.fullnameOverride -}} 7 | {{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" -}} 8 | {{- else -}} 9 | {{- .Release.Name | trunc 63 | trimSuffix "-" -}} 10 | {{- end -}} 11 | {{- end -}} 12 | 13 | {{- define "chart.image.name" -}} 14 | {{- $registry_name := .Values.image.registry -}} 15 | {{- $repository_ame := .Values.image.repository -}} 16 | {{- $tag := .Values.image.tag | toString -}} 17 | {{- printf "%s/%s:%s" $registry_name $repository_ame $tag -}} 18 | {{- end -}} 19 | -------------------------------------------------------------------------------- /helm/test-server/drtuxwang/test-server/templates/box-headless-service.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Service 3 | metadata: 4 | labels: 5 | helm.sh/chart: {{ include "chart.name" . }} 6 | app.kubernetes.io/name: {{ include "chart.name" . }}-box 7 | app.kubernetes.io/instance: {{ .Release.Name }} 8 | app.kubernetes.io/managed-by: {{ .Release.Service }} 9 | name: {{ include "app.fullname" . }}-box-headless 10 | spec: 11 | clusterIP: None 12 | ports: 13 | - name: http 14 | port: {{ .Values.service.box.port }} 15 | protocol: TCP 16 | targetPort: {{ .Values.service.box.port }} 17 | selector: 18 | app.kubernetes.io/name: {{ include "chart.name" . }}-box 19 | app.kubernetes.io/instance: {{ .Release.Name }} 20 | type: {{ .Values.service.box.type }} 21 | -------------------------------------------------------------------------------- /helm/test-server/drtuxwang/test-server/templates/box-ingress.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: networking.k8s.io/v1 2 | kind: Ingress 3 | metadata: 4 | name: {{ include "app.fullname" . }}-box 5 | # annotations: 6 | # nginx.ingress.kubernetes.io/configuration-snippet: | 7 | # rewrite "(?i)/{{ include "app.fullname" . }}/(.*)$" /$1 break; 8 | # sub_filter_types *; 9 | # sub_filter_once off; 10 | # sub_filter_types text/html; 11 | # sub_filter '="/' '="/{{ include "app.fullname" . }}/'; 12 | # sub_filter "href=/" "href=/path/"; 13 | spec: 14 | rules: 15 | - host: {{ include "app.fullname" . }}-box.{{ .Values.ingress.box.domain }} 16 | http: 17 | paths: 18 | - path: / 19 | pathType: Prefix 20 | backend: 21 | service: 22 | name: {{ include "app.fullname" . }}-box 23 | port: 24 | number: {{ .Values.ingress.box.servicePort }} 25 | tls: 26 | - secretName: {{ .Values.ingress.box.domain }} 27 | -------------------------------------------------------------------------------- /helm/test-server/drtuxwang/test-server/templates/box-service.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Service 3 | metadata: 4 | labels: 5 | helm.sh/chart: {{ include "chart.name" . }} 6 | app.kubernetes.io/name: {{ include "chart.name" . }}-box 7 | app.kubernetes.io/instance: {{ .Release.Name }} 8 | app.kubernetes.io/managed-by: {{ .Release.Service }} 9 | name: {{ include "app.fullname" . }}-box 10 | spec: 11 | ports: 12 | - name: http 13 | port: {{ .Values.service.box.port }} 14 | protocol: TCP 15 | targetPort: {{ .Values.service.box.port }} 16 | selector: 17 | app.kubernetes.io/name: {{ include "chart.name" . }}-box 18 | app.kubernetes.io/instance: {{ .Release.Name }} 19 | type: {{ .Values.service.box.type }} 20 | -------------------------------------------------------------------------------- /helm/test-server/drtuxwang/test-server/values.yaml: -------------------------------------------------------------------------------- 1 | app: 2 | box: 3 | replicas: 1 4 | 5 | image: 6 | pullPolicy: IfNotPresent 7 | registry: docker.io 8 | repository: drtuxwang/debian-ops 9 | tag: stable 10 | 11 | ingress: 12 | box: 13 | domain: example.com 14 | servicePort: 80 15 | 16 | service: 17 | box: 18 | name: http 19 | port: 80 20 | type: ClusterIP 21 | 22 | resources: {} 23 | 24 | nodeSelector: {} 25 | -------------------------------------------------------------------------------- /helm/test-server/values.yaml: -------------------------------------------------------------------------------- 1 | nodeSelector: 2 | kubernetes.io/os: linux 3 | ##kubernetes.io/hostname: ryson.local 4 | 5 | app: 6 | box: 7 | replicas: 2 8 | 9 | resources: 10 | limits: 11 | cpu: 1000m 12 | memory: 1024M 13 | requests: 14 | cpu: 100m 15 | memory: 64M 16 | -------------------------------------------------------------------------------- /helm/xfce-server/drtuxwang/xfce-server/Chart.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | description: Helm chart for XFCE VNC Server 3 | name: xfce-server 4 | version: 1.1.0 5 | appVersion: 1.0.0 6 | -------------------------------------------------------------------------------- /helm/xfce-server/drtuxwang/xfce-server/requirements.lock: -------------------------------------------------------------------------------- 1 | dependencies: [] 2 | digest: sha256:81059fe6210ccee4e3349c0f34c12d180f995150128a913d63b65b7937c6b152 3 | generated: "2020-02-28T15:34:49.318459Z" 4 | -------------------------------------------------------------------------------- /helm/xfce-server/drtuxwang/xfce-server/requirements.yaml: -------------------------------------------------------------------------------- 1 | dependencies: [] 2 | -------------------------------------------------------------------------------- /helm/xfce-server/drtuxwang/xfce-server/templates/_helpers.tpl: -------------------------------------------------------------------------------- 1 | {{- define "chart.name" -}} 2 | {{- .Chart.Name -}} 3 | {{- end -}} 4 | 5 | {{- define "app.fullname" -}} 6 | {{- if .Values.fullnameOverride -}} 7 | {{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" -}} 8 | {{- else -}} 9 | {{- .Release.Name | trunc 63 | trimSuffix "-" -}} 10 | {{- end -}} 11 | {{- end -}} 12 | 13 | {{- define "chart.image.name" -}} 14 | {{- $registry_name := .Values.image.registry -}} 15 | {{- $repository_ame := .Values.image.repository -}} 16 | {{- $tag := .Values.image.tag | toString -}} 17 | {{- printf "%s/%s:%s" $registry_name $repository_ame $tag -}} 18 | {{- end -}} 19 | -------------------------------------------------------------------------------- /helm/xfce-server/drtuxwang/xfce-server/templates/box-headless-service.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Service 3 | metadata: 4 | labels: 5 | helm.sh/chart: {{ include "chart.name" . }} 6 | app.kubernetes.io/name: {{ include "chart.name" . }}-box 7 | app.kubernetes.io/instance: {{ .Release.Name }} 8 | app.kubernetes.io/managed-by: {{ .Release.Service }} 9 | name: {{ include "app.fullname" . }}-box-headless 10 | spec: 11 | clusterIP: None 12 | ports: 13 | - name: ssh 14 | port: {{ .Values.service.box.port }} 15 | protocol: TCP 16 | targetPort: {{ .Values.service.box.port }} 17 | selector: 18 | app.kubernetes.io/name: {{ include "chart.name" . }}-box 19 | app.kubernetes.io/instance: {{ .Release.Name }} 20 | type: {{ .Values.service.box.type }} 21 | -------------------------------------------------------------------------------- /helm/xfce-server/drtuxwang/xfce-server/templates/box-service.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Service 3 | metadata: 4 | labels: 5 | helm.sh/chart: {{ include "chart.name" . }} 6 | app.kubernetes.io/name: {{ include "chart.name" . }}-box 7 | app.kubernetes.io/instance: {{ .Release.Name }} 8 | app.kubernetes.io/managed-by: {{ .Release.Service }} 9 | name: {{ include "app.fullname" . }}-box 10 | spec: 11 | ports: 12 | - name: ssh 13 | port: {{ .Values.service.box.port }} 14 | protocol: TCP 15 | targetPort: {{ .Values.service.box.port }} 16 | selector: 17 | app.kubernetes.io/name: {{ include "chart.name" . }}-box 18 | app.kubernetes.io/instance: {{ .Release.Name }} 19 | type: {{ .Values.service.box.type }} 20 | -------------------------------------------------------------------------------- /helm/xfce-server/drtuxwang/xfce-server/values.yaml: -------------------------------------------------------------------------------- 1 | app: 2 | box: 3 | replicas: 1 4 | 5 | image: 6 | pullPolicy: IfNotPresent 7 | registry: docker.io 8 | repository: drtuxwang/debian-xfce 9 | tag: stable 10 | 11 | box: 12 | ssh: 13 | pubkey: '' 14 | 15 | resources: {} 16 | 17 | nodeSelector: {} 18 | 19 | tolerations: [] 20 | 21 | affinity: {} 22 | -------------------------------------------------------------------------------- /helm/xfce-server/values.yaml: -------------------------------------------------------------------------------- 1 | nodeSelector: 2 | kubernetes.io/os: linux 3 | ##kubernetes.io/hostname: ryson.local 4 | 5 | service: 6 | box: 7 | name: ssh 8 | port: 22 9 | type: ClusterIP 10 | 11 | resources: 12 | limits: 13 | cpu: 1000m 14 | memory: 1024M 15 | requests: 16 | cpu: 100m 17 | memory: 64M 18 | -------------------------------------------------------------------------------- /kubernetes/monitor-host/Makefile: -------------------------------------------------------------------------------- 1 | NAME := monitor-host 2 | 3 | ifndef NAMESPACE 4 | NAMESPACE := default 5 | endif 6 | 7 | 8 | .PHONY: default 9 | default: status # Default 10 | 11 | .PHONY: status 12 | status: # Show workload status 13 | @echo "\n*** Checking Kube status ***" 14 | @make --no-print-directory status-kube | sort 15 | @echo 16 | 17 | .PHONY: status-kube 18 | status-kube: # Show Kube workload status 19 | @kubectl --namespace=$(NAMESPACE) get all -o wide 2> /dev/null | grep "$(NAME)" | sed -e "s/^/$(NAMESPACE) /" ||: 20 | 21 | .PHONY: create 22 | create: # Create workload 23 | @echo "\n*** Creating pods ***" 24 | kubectl --namespace=$(NAMESPACE) create -f $(NAME)-daemonset.yaml ||: 25 | 26 | .PHONY: delete 27 | delete: # Delete workload 28 | @echo "\n*** Removing pods ***" 29 | kubectl --namespace=$(NAMESPACE) delete -f $(NAME)-daemonset.yaml ||: 30 | 31 | .PHONY: help 32 | help: # Show Makefile options 33 | @grep "^[A-Za-z0-9].*:" $(lastword $(MAKEFILE_LIST)) 34 | -------------------------------------------------------------------------------- /kubernetes/socat-fwd/Makefile: -------------------------------------------------------------------------------- 1 | NAME := socat-fwd 2 | 3 | ifndef NAMESPACE 4 | NAMESPACE := default 5 | endif 6 | 7 | 8 | .PHONY: default 9 | default: status # Default 10 | 11 | .PHONY: status 12 | status: # Show workload status 13 | @echo "\n*** Checking Kube status ***" 14 | @make --no-print-directory status-kube | sort 15 | @echo 16 | 17 | .PHONY: status-kube 18 | status-kube: # Show Kube workload status 19 | @kubectl --namespace=$(NAMESPACE) get all -o wide 2> /dev/null | grep "$(NAME)" | sed -e "s/^/$(NAMESPACE) /" ||: 20 | 21 | .PHONY: create 22 | create: # Create workload 23 | @echo "\n*** Creating pods ***" 24 | kubectl --namespace=$(NAMESPACE) create -f $(NAME).yaml ||: 25 | 26 | .PHONY: delete 27 | delete: # Delete workload 28 | @echo "\n*** Removing pods ***" 29 | kubectl --namespace=$(NAMESPACE) delete -f $(NAME).yaml ||: 30 | 31 | .PHONY: help 32 | help: # Show Makefile options 33 | @grep "^[A-Za-z0-9].*:" $(lastword $(MAKEFILE_LIST)) 34 | -------------------------------------------------------------------------------- /kubernetes/socat-fwd/socat-fwd.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: apps/v1 2 | kind: Deployment 3 | metadata: 4 | labels: 5 | app: socat-fwd 6 | matchLabels: socat-fwd 7 | name: socat-fwd 8 | spec: 9 | replicas: 1 10 | selector: 11 | matchLabels: 12 | app: socat-fwd 13 | template: 14 | metadata: 15 | labels: 16 | app: socat-fwd 17 | spec: 18 | containers: 19 | - args: 20 | - socat 21 | - TCP-LISTEN:8080,fork,reuseaddr 22 | - TCP:www.bbc.co.uk:80 23 | image: drtuxwang/debian-ops:stable 24 | imagePullPolicy: IfNotPresent 25 | name: socat 26 | ports: 27 | - containerPort: 8080 28 | hostPort: 8080 29 | protocol: TCP 30 | nodeSelector: 31 | kubernetes.io/os: linux 32 | ##kubernetes.io/hostname: ryson.local 33 | -------------------------------------------------------------------------------- /kubernetes/test-cronjob/Makefile: -------------------------------------------------------------------------------- 1 | NAME := test-cronjob 2 | NAMESPACE := default 3 | 4 | 5 | .PHONY: default 6 | default: status # Default 7 | 8 | .PHONY: status 9 | status: # Show workload status 10 | @echo "\n*** Checking Kube status ***" 11 | @make --no-print-directory status-kube | sort 12 | @echo 13 | 14 | .PHONY: status-kube 15 | status-kube: # Show Kube workload status 16 | @kubectl --namespace=$(NAMESPACE) get all -o wide 2> /dev/null | grep "$(NAME)" | sed -e "s/^/$(NAMESPACE) /" ||: 17 | 18 | .PHONY: create 19 | create: # Create workload 20 | @echo "\n*** Creating cronjob ***" 21 | kubectl --namespace=$(NAMESPACE) create -f test-cronjob.yaml ||: 22 | 23 | .PHONY: delete 24 | delete: # Delete workload 25 | @echo "\n*** Removing cronjob ***" 26 | kubectl --namespace=$(NAMESPACE) delete -f test-cronjob.yaml ||: 27 | 28 | .PHONY: help 29 | help: # Show Makefile options 30 | @grep "^[A-Za-z0-9].*:" $(lastword $(MAKEFILE_LIST)) 31 | -------------------------------------------------------------------------------- /kubernetes/test-server/test-server-headless-service.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Service 3 | metadata: 4 | labels: 5 | app: test-server 6 | name: test-server-headless 7 | spec: 8 | clusterIP: None 9 | ports: 10 | - name: http 11 | port: 80 12 | protocol: TCP 13 | targetPort: 80 14 | selector: 15 | app: test-server 16 | type: ClusterIP 17 | -------------------------------------------------------------------------------- /kubernetes/test-server/test-server-ingress.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: networking.k8s.io/v1 2 | kind: Ingress 3 | metadata: 4 | name: test-server 5 | spec: 6 | rules: 7 | - host: test-server.example.com 8 | http: 9 | paths: 10 | - path: / 11 | backend: 12 | serviceName: test-server 13 | servicePort: 80 14 | tls: 15 | - secretName: example.com 16 | -------------------------------------------------------------------------------- /kubernetes/test-server/test-server-service.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Service 3 | metadata: 4 | labels: 5 | app: test-server 6 | name: test-server 7 | spec: 8 | ports: 9 | - name: http 10 | port: 80 11 | protocol: TCP 12 | targetPort: 80 13 | selector: 14 | app: test-server 15 | type: ClusterIP 16 | -------------------------------------------------------------------------------- /kubernetes/test-storage/test-storage-pv.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: PersistentVolume 3 | metadata: 4 | name: default-data-test-storage-0 5 | spec: 6 | storageClassName: persistent-claim 7 | capacity: 8 | storage: 5Gi 9 | volumeMode: Filesystem 10 | local: 11 | path: /shared 12 | accessModes: 13 | - ReadWriteOnce 14 | persistentVolumeReclaimPolicy: Retain 15 | claimRef: 16 | apiVersion: v1 17 | kind: PersistentVolumeClaim 18 | name: data-test-storage-0 19 | namespace: default 20 | nodeAffinity: 21 | required: 22 | nodeSelectorTerms: 23 | - matchExpressions: 24 | - key: kubernetes.io/hostname 25 | operator: In 26 | values: 27 | - ryson.local 28 | -------------------------------------------------------------------------------- /python/simple-cython/cython_example.pyx: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python3 2 | """ 3 | Simple CPython example 4 | """ 5 | 6 | 7 | def area(height, width): 8 | """ 9 | Return area 10 | """ 11 | print("args:", height, width) 12 | return height * width 13 | 14 | 15 | print("I am compiled Cython module:", __name__) 16 | -------------------------------------------------------------------------------- /python/simple-cython/run.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python3 2 | """ 3 | Simple Cython example 4 | """ 5 | 6 | import cython_example 7 | 8 | area = cython_example.area(37, 48) 9 | print('Cython returned', area) 10 | -------------------------------------------------------------------------------- /python/simple-flask/simple_flask.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python3 2 | """ 3 | Simple Flask test 4 | """ 5 | 6 | import sys 7 | 8 | import flask 9 | 10 | # pylint: disable = invalid-name 11 | app = flask.Flask(__name__) 12 | # pylint: enable = invalid-name 13 | 14 | 15 | @app.route('/') 16 | def default(): 17 | """ 18 | Default 19 | """ 20 | return 'I am simple Flask demo!' 21 | 22 | 23 | @app.route('/healthcheck') 24 | def health_check(): 25 | """ 26 | Perform health check 27 | """ 28 | return 'I am healthy!' 29 | 30 | 31 | @app.route('/hello/') 32 | @app.route('/hello/') 33 | def hello(name=None): 34 | """ 35 | Uses jinja2 template generate greeting 36 | """ 37 | return flask.render_template('hello.html', name=name) 38 | 39 | 40 | if __name__ == '__main__': 41 | if '--pydoc' in sys.argv: 42 | help(__name__) 43 | else: 44 | app.run() 45 | -------------------------------------------------------------------------------- /python/simple-flask/templates/hello.html: -------------------------------------------------------------------------------- 1 | 2 | Hello from Flask 3 | {%- if name %} 4 |

Hello {{ name }}!

5 | {%- else %} 6 |

Hello, World!

7 | {%- endif %} 8 | -------------------------------------------------------------------------------- /python/simple-package/hello/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/drtuxwang/system-config/4df094af1555348cf5c053ba72a1a586af565161/python/simple-package/hello/__init__.py -------------------------------------------------------------------------------- /python/simple-package/hello/message.py: -------------------------------------------------------------------------------- 1 | """ 2 | Message module 3 | """ 4 | 5 | 6 | def show(): 7 | """ 8 | Show hello message 9 | """ 10 | print("hello world!") 11 | -------------------------------------------------------------------------------- /python/simple-package/run.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python3 2 | """ 3 | Simple package example 4 | """ 5 | 6 | from pkg_resources import require 7 | require('simple') 8 | # pylint: disable = wrong-import-position 9 | import hello.message 10 | 11 | hello.message.show() 12 | -------------------------------------------------------------------------------- /python/simple-package/setup.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python3 2 | """ 3 | Setup "simple.egg" example 4 | """ 5 | 6 | from setuptools import setup 7 | 8 | setup( 9 | name='simple', 10 | version='1.0', 11 | description='Simple Egg Example!', 12 | author='Colin Kong', 13 | author_email='hob4bit@googlemail.com', 14 | url='https://github.com/drtuxwang/system-config', 15 | packages=['hello'], 16 | long_description="Simple Python Egg example that prints hello world!", 17 | py_modules=[], 18 | keywords='simple hello world', 19 | license='GPL', 20 | install_requires=[ 21 | 'setuptools', 22 | ], 23 | ) 24 | -------------------------------------------------------------------------------- /python/simple-tornado/Makefile: -------------------------------------------------------------------------------- 1 | .PHONY: default 2 | default: test # Default 3 | 4 | .PHONY: test 5 | test: # Run test 6 | @echo "\n*** Running Python 3 compilation check ***" 7 | python3 -m py_compile *.py 8 | rm -rf __pycache__ 9 | @echo "\n*** Running Python 3 UNITTEST check ***" 10 | python3 -m unittest discover --buffer . 11 | @echo "\n*** Running Python 3 PYCODESTYLE (PEP8) check ***" 12 | python3 -m pycodestyle --max-line-length=79 *.py 13 | @echo "\n*** Running Python 3 PYLINT check ***" 14 | python3 -m pylint --disable=locally-disabled,locally-enabled --max-line-length=79 \ 15 | --rcfile=/dev/null --output-format=parseable --reports=n -j 2 *.py 16 | @echo "\n*** Tests successfull ***" 17 | 18 | .PHONY: run 19 | run: # Run Python code 20 | @echo "\n*** Running Tornado web server ***" 21 | ./tornado_server.py 22 | 23 | .PHONY: help 24 | help: # Show Makefile options 25 | @grep "^[A-Za-z0-9].*:" $(lastword $(MAKEFILE_LIST)) 26 | -------------------------------------------------------------------------------- /qemu/debian10-32.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | # 3 | # Debian 10 x86 VM 4 | # 5 | 6 | qemu_settings() { 7 | MACHINE_VCPUS=2 8 | MACHINE_RAM=2048 9 | CONNECT_SSHPORT=2291 10 | } 11 | 12 | 13 | source ${0%/*}/qemu-system-x86_64.bash 14 | -------------------------------------------------------------------------------- /qemu/debian10.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | # 3 | # Debian 10 x86 VM 4 | # 5 | 6 | qemu_settings() { 7 | MACHINE_VCPUS=2 8 | MACHINE_RAM=2048 9 | CONNECT_SSHPORT=2210 10 | } 11 | 12 | 13 | source ${0%/*}/qemu-system-x86_64.bash 14 | -------------------------------------------------------------------------------- /qemu/debian11.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | # 3 | # Debian 11 x86 VM 4 | # 5 | 6 | qemu_settings() { 7 | MACHINE_VCPUS=4 8 | MACHINE_RAM=4096 9 | CONNECT_NETWORK=yes 10 | CONNECT_SOUND=yes 11 | CONNECT_SSHPORT=2211 12 | } 13 | 14 | 15 | source ${0%/*}/qemu-system-x86_64.bash 16 | -------------------------------------------------------------------------------- /qemu/debian12-arm.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | # 3 | # Debian 12 arm64 VM 4 | # 5 | 6 | qemu_settings() { 7 | MACHINE_VCPUS=2 8 | MACHINE_RAM=4096 9 | CONNECT_SOUND=yes 10 | CONNECT_SSHPORT=2292 11 | } 12 | 13 | 14 | source ${0%/*}/qemu-system-aarch64.bash 15 | -------------------------------------------------------------------------------- /qemu/debian12.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | # 3 | # Debian 12 x86 VM 4 | # 5 | 6 | qemu_settings() { 7 | MACHINE_VCPUS=2 8 | MACHINE_RAM=4096 9 | CONNECT_NETWORK=yes 10 | CONNECT_SOUND=yes 11 | CONNECT_SSHPORT=2212 12 | } 13 | 14 | 15 | source ${0%/*}/qemu-system-x86_64.bash 16 | -------------------------------------------------------------------------------- /qemu/debian4.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | # 3 | # Debian 4 x86 VM 4 | # 5 | 6 | qemu_settings() { 7 | MACHINE_TYPE=pc 8 | MACHINE_VCPUS=2 9 | MACHINE_RAM=2048 10 | DRIVE_INTERFACE=ide 11 | CONNECT_SSHPORT=2204 12 | } 13 | 14 | 15 | source ${0%/*}/qemu-system-x86_64.bash 16 | -------------------------------------------------------------------------------- /qemu/debian5.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | # 3 | # Debian 5 x86 VM 4 | # 5 | 6 | qemu_settings() { 7 | MACHINE_TYPE=pc 8 | MACHINE_VCPUS=2 9 | MACHINE_RAM=2048 10 | DRIVE_INTERFACE=ide 11 | CONNECT_SSHPORT=2205 12 | } 13 | 14 | 15 | source ${0%/*}/qemu-system-x86_64.bash 16 | -------------------------------------------------------------------------------- /qemu/debian6.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | # 3 | # Debian 6 x86 VM 4 | # 5 | 6 | qemu_settings() { 7 | MACHINE_VCPUS=2 8 | MACHINE_RAM=2048 9 | CONNECT_SSHPORT=2206 10 | } 11 | 12 | 13 | source ${0%/*}/qemu-system-x86_64.bash 14 | -------------------------------------------------------------------------------- /qemu/debian7.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | # 3 | # Debian 7 x86 VM 4 | # 5 | 6 | qemu_settings() { 7 | MACHINE_VCPUS=2 8 | MACHINE_RAM=2048 9 | CONNECT_SSHPORT=2207 10 | } 11 | 12 | 13 | source ${0%/*}/qemu-system-x86_64.bash 14 | -------------------------------------------------------------------------------- /qemu/debian8.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | # 3 | # Debian 8 x86 VM 4 | # 5 | 6 | qemu_settings() { 7 | MACHINE_VCPUS=2 8 | MACHINE_RAM=2048 9 | CONNECT_SSHPORT=2208 10 | } 11 | 12 | 13 | source ${0%/*}/qemu-system-x86_64.bash 14 | -------------------------------------------------------------------------------- /qemu/debian9.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | # 3 | # Debian 9 x86 VM 4 | # 5 | 6 | qemu_settings() { 7 | MACHINE_VCPUS=2 8 | MACHINE_RAM=2048 9 | CONNECT_SSHPORT=2209 10 | } 11 | 12 | 13 | source ${0%/*}/qemu-system-x86_64.bash 14 | -------------------------------------------------------------------------------- /qemu/windows10.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | # 3 | # Windows 10 x86 VM 4 | # 5 | 6 | qemu_settings() { 7 | MACHINE_TYPE=pc 8 | MACHINE_VCPUS=2 9 | MACHINE_RAM=4096 10 | DRIVE_INTERFACE=ide 11 | } 12 | 13 | 14 | source ${0%/*}/qemu-system-x86_64.bash 15 | -------------------------------------------------------------------------------- /qemu/windows51-32.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | # 3 | # Windows XP x86 VM 4 | # 5 | 6 | qemu_settings() { 7 | MACHINE_TYPE=pc 8 | DRIVE_INTERFACE=ide 9 | MACHINE_VCPUS=2 10 | MACHINE_RAM=2048 11 | } 12 | 13 | 14 | source ${0%/*}/qemu-system-x86_64.bash 15 | -------------------------------------------------------------------------------- /qemu/windows60-32.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | # 3 | # Windows Vista x86 VM 4 | # 5 | 6 | qemu_settings() { 7 | MACHINE_TYPE=pc 8 | MACHINE_VCPUS=2 9 | MACHINE_RAM=4096 10 | DRIVE_INTERFACE=ide 11 | } 12 | 13 | 14 | source ${0%/*}/qemu-system-x86_64.bash 15 | -------------------------------------------------------------------------------- /qemu/windows61-32.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | # 3 | # Windows 7 x86 VM 4 | # 5 | 6 | qemu_settings() { 7 | MACHINE_TYPE=pc 8 | MACHINE_VCPUS=2 9 | MACHINE_RAM=4096 10 | DRIVE_INTERFACE=ide 11 | } 12 | 13 | 14 | source ${0%/*}/qemu-system-x86_64.bash 15 | -------------------------------------------------------------------------------- /qemu/windows63-32.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | # 3 | # Windows 8 x86 VM 4 | # 5 | 6 | qemu_settings() { 7 | MACHINE_TYPE=pc 8 | MACHINE_VCPUS=2 9 | MACHINE_RAM=4096 10 | DRIVE_INTERFACE=ide 11 | } 12 | 13 | 14 | source ${0%/*}/qemu-system-x86_64.bash 15 | -------------------------------------------------------------------------------- /terraform-aws/1pxy/aws_config.tf: -------------------------------------------------------------------------------- 1 | variable "profile" { 2 | default = "colink" 3 | } 4 | 5 | variable "keyname" { 6 | default = "colink" 7 | } 8 | 9 | variable "region" { 10 | default = "eu-west-1" 11 | } 12 | 13 | variable "run_mode" { 14 | default = "test" 15 | } 16 | 17 | variable "stackname" { 18 | default = "terraform-example" 19 | } 20 | 21 | -------------------------------------------------------------------------------- /terraform-aws/1pxy/aws_resources.tf: -------------------------------------------------------------------------------- 1 | provider "aws" { 2 | profile = "${var.profile}" 3 | region = "${var.region}" 4 | } 5 | -------------------------------------------------------------------------------- /terraform-aws/1pxy/pxy_resources.tf: -------------------------------------------------------------------------------- 1 | resource "aws_instance" "pxy_instance" { 2 | ami = "${lookup(var.pxy_ami_map, var.region)}" 3 | instance_type = "${lookup(var.pxy_type_map, var.run_mode)}" 4 | security_groups = ["${split(",", lookup(var.pxy_sg_map, var.region))}"] 5 | subnet_id = "${lookup(var.pxy_sn_map, var.region)}" 6 | 7 | tags = { 8 | stackname = "${var.stackname}" 9 | class = "pxy" 10 | cluster = "aws-dev1" 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /terraform-aws/1pxy/pxy_variables.tf: -------------------------------------------------------------------------------- 1 | variable "pxy_ami_map" { 2 | default = { 3 | eu-west-1 = "ami-4374b732" 4 | us-west-2 = "ami-c1fe12a0" 5 | } 6 | } 7 | 8 | variable "pxy_type_map" { 9 | default = { 10 | dev = "t2.small" 11 | prod = "t2.medium" 12 | } 13 | } 14 | 15 | variable "pxy_sg_map" { 16 | default = { 17 | eu-west-1 = "sg-2bb7e1ef" 18 | us-west-2 = "sg-d3ac46a4" 19 | } 20 | } 21 | 22 | variable "pxy_sn_map" { 23 | default = { 24 | eu-west-1a = "subnet-85b8a5f0" 25 | us-west-2a = "subnet-fd3979a4" 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /terraform-aws/pxy-as/aws_config.tf: -------------------------------------------------------------------------------- 1 | variable "profile" { 2 | default = "colink" 3 | } 4 | 5 | variable "keyname" { 6 | default = "colink" 7 | } 8 | 9 | variable "region" { 10 | default = "eu-west-1" 11 | } 12 | 13 | variable "run_mode" { 14 | default = "test" 15 | } 16 | 17 | variable "stackname" { 18 | default = "terraform-example" 19 | } 20 | 21 | -------------------------------------------------------------------------------- /terraform-aws/pxy-as/aws_resources.tf: -------------------------------------------------------------------------------- 1 | provider "aws" { 2 | profile = "${var.profile}" 3 | region = "${var.region}" 4 | } 5 | -------------------------------------------------------------------------------- /terraform-aws/pxy-as/pxy_variables.tf: -------------------------------------------------------------------------------- 1 | variable "pxy_ami_map" { 2 | default = { 3 | eu-west-1 = "ami-4374b732" 4 | us-west-2 = "ami-c1fe12a0" 5 | } 6 | } 7 | 8 | variable "pxy_type_map" { 9 | default = { 10 | dev = "t2.small" 11 | prod = "t2.medium" 12 | } 13 | } 14 | 15 | variable "pxy_min_map" { 16 | default = { 17 | dev = 1 18 | prod = 2 19 | } 20 | } 21 | 22 | variable "pxy_desired_map" { 23 | default = { 24 | dev = 2 25 | prod = 4 26 | } 27 | } 28 | 29 | variable "pxy_max_map" { 30 | default = { 31 | dev = 3 32 | prod = 6 33 | } 34 | } 35 | 36 | variable "pxy_sg_map" { 37 | default = { 38 | eu-west-1 = "sg-2bb7e1ef" 39 | us-west-2 = "sg-d3ac46a4" 40 | } 41 | } 42 | 43 | variable "pxy_sn_map" { 44 | default = { 45 | eu-west-1 = "subnet-85b8a5f0,subnet-d886877f,subnet-5dc85320" 46 | us-west-2 = "subnet-fd3979a4,subnet-58c58e6f,subnet-6ed73209" 47 | } 48 | } 49 | -------------------------------------------------------------------------------- /wipe/Makefile: -------------------------------------------------------------------------------- 1 | .PHONY: default 2 | default: build # Default 3 | 4 | .PHONY: build 5 | build: # Build executable 6 | gcc -O3 wipe.c -o wipe 7 | ls -l wipe 8 | strip wipe 9 | ls -l wipe 10 | 11 | .PHONY: clean 12 | clean: # Remove temporary build files 13 | rm -f wipe 14 | 15 | .PHONY: help 16 | help: # Show Makefile options 17 | @grep "^[A-Za-z0-9].*:" $(lastword $(MAKEFILE_LIST)) 18 | -------------------------------------------------------------------------------- /zhspeak/dicts.7z: -------------------------------------------------------------------------------- 1 | version https://git-lfs.github.com/spec/v1 2 | oid sha256:3bf621dccc335e50067dafcb2a07058bd0280ab90c3ad64f85f39a447d099463 3 | size 425456 4 | -------------------------------------------------------------------------------- /zhspeak/voices.7z: -------------------------------------------------------------------------------- 1 | version https://git-lfs.github.com/spec/v1 2 | oid sha256:5af2a9b3bac6e1956b1b16ff2ae033add1f0cbd40c0d6903e9779bc88d6ff324 3 | size 9395665 4 | --------------------------------------------------------------------------------