https://oracle.github.io/odpi/doc/installation.html#macos
| $remoteport = bash.exe -c "ifconfig eth0 | grep 'inet '" | |
| $found = $remoteport -match '\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}'; | |
| if( $found ){ | |
| $remoteport = $matches[0]; | |
| } else{ | |
| echo "The Script Exited, the ip address of WSL 2 cannot be found"; | |
| exit; | |
| } |
| <html> | |
| <body> | |
| <div id="box"> | |
| </div> | |
| <img src="t.png" alt="" id="desc_img"> | |
| <svg width="100%" height="100%" xmlns="http://www.w3.org/2000/svg"> | |
| <defs> | |
| <pattern id="smallGrid" width="37.79" height="37.79" patternUnits="userSpaceOnUse"> |
| @echo off | |
| SET st3Path=C:\Program Files\Sublime Text 3\sublime_text.exe | |
| rem add it for folders | |
| @reg add "HKEY_CLASSES_ROOT\Directory\shell\Open with Sublime Text" /t REG_SZ /v "" /d "Open with Sublime Text" /f | |
| @reg add "HKEY_CLASSES_ROOT\Directory\shell\Open with Sublime Text" /t REG_EXPAND_SZ /v "Icon" /d "%st3Path%,0" /f | |
| @reg add "HKEY_CLASSES_ROOT\Directory\shell\Open with Sublime Text\command" /t REG_SZ /v "" /d "%st3Path% \"%%1\"" /f | |
| pause |
| <snippet> | |
| <content><![CDATA[<%=${1:v}%>$0]]></content> | |
| <tabTrigger>aa</tabTrigger> | |
| <description>輸出$const_vw</description> | |
| </snippet> |
| .git | |
| .gitignore | |
| /doc | |
| .yardoc | |
| coverage | |
| jsdoc | |
| /tmp | |
| /log | |
| Dockerfile | |
| Dockerfile.prod |
| FROM ubuntu | |
| # 維護者 | |
| MAINTAINER joehwang [email protected] | |
| RUN sed -i 's/archive.ubuntu.com/free.nchc.org.tw/' /etc/apt/sources.list | |
| RUN apt-get update | |
| RUN DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends apt-utils -y \ | |
| build-essential libpq-dev ruby patch ruby-dev zlib1g-dev liblzma-dev curl libxss1 libappindicator1 \ | |
| libindicator7 gconf-service libasound2 libgconf-2-4 libnspr4 fonts-liberation libnss3 xdg-utils \ | |
| imagemagick libmysqlclient-dev locales tzdata | |
| RUN locale-gen en_US.UTF-8 |
| function oMousePos(target, evt) { | |
| var rect = target.getBoundingClientRect(); | |
| console.log( Math.round(evt.clientX - rect.left)) | |
| return { | |
| x: Math.round(evt.clientX - rect.left), | |
| y: Math.round(evt.clientY - rect.top) | |
| }; | |
| } | |
| def log msg | |
| printf "pid %5d %-10s %s\n", $$, Time.now, msg | |
| end | |
| tasks = (1..10).map { 2 + rand(5) } | |
| limit = 2 | |
| processes = [] |
| [unix_http_server] | |
| file=/tmp/supervisor.sock ; UNIX socket 文件,supervisorctl 会使用 | |
| [supervisord] | |
| childlogdir=/var/log/supervisor/ | |
| logfile=/tmp/supervisord.log | |
| pidfile=/tmp/supervisord.pid | |
| nodaemon=true ; 是否在前台启动,默认是 false,即以 daemon 的方式启动,docker要跑要設true避免進程結束,測試再設false | |
| loglevel=debug ;什麼碗糕都會印出來 | |
| [rpcinterface:supervisor] |