Forwarded from RustPlayBot
`Rust source code:`
fn main()
`Rustc output:`
error: expected one of `->`, `where`, or `{`, found `<eof>`
--> /tmp/rusteval/6-:1:10
|
1 | fn main()
| ^ expected one of `->`, `where`, or `{` here
error: aborting due to previous error
`Program output:`
(Bad Program,see Rustc output)
fn main()
`Rustc output:`
error: expected one of `->`, `where`, or `{`, found `<eof>`
--> /tmp/rusteval/6-:1:10
|
1 | fn main()
| ^ expected one of `->`, `where`, or `{` here
error: aborting due to previous error
`Program output:`
(Bad Program,see Rustc output)
/run
fn main() {
println!("江煮席,蕫先森连饪吼不吼哇?");
answer();
}
fn answer() {
println!("吼哇!");
}
fn main() {
println!("江煮席,蕫先森连饪吼不吼哇?");
answer();
}
fn answer() {
println!("吼哇!");
}
Forwarded from RustPlayBot
Rust source code:fn main() {println!("put your code QWQ");}
Rustc output:Program output:put your code QWQ
Forwarded from RustPlayBot
This is RustPlayBot 0.0.9 ,Rust versions:
Stable:rustc 1.19.0 (0ade33941 2017-07-17),
Beta:rustc 1.20.0-beta.1 (e93aa3aa8 2017-07-18),
Nightly:rustc 1.21.0-nightly (13d94d5fa 2017-08-10)
Stable:rustc 1.19.0 (0ade33941 2017-07-17),
Beta:rustc 1.20.0-beta.1 (e93aa3aa8 2017-07-18),
Nightly:rustc 1.21.0-nightly (13d94d5fa 2017-08-10)
环境配置: 建立用户 playpen( 建议建立一个家目录
注意权限设置,比如这个用户不能使用sudo获取root权限
为用户playpen开放/root的读取权限,然后chmod -R 755 /root/.rustup/
注意你必须现有至少一套已安装的工具链
另外部署这个等于开放了所有人远程登录你服务器上playpen账户的权限,所以追求安全就不要托管类似服务.
root@debian:~# cat /lib/systemd/system/rustplaybot.service
\[Unit]
Description=playrobot
After=network.target
[Service]
User=playpen
ExecStart=/root/build/rustplay_bot
Environment=TG_TOKEN=<your_token>
Restart=always
RestartSec=0
#systemd start rustplaybot.service
注意权限设置,比如这个用户不能使用sudo获取root权限
为用户playpen开放/root的读取权限,然后chmod -R 755 /root/.rustup/
注意你必须现有至少一套已安装的工具链
另外部署这个等于开放了所有人远程登录你服务器上playpen账户的权限,所以追求安全就不要托管类似服务.
root@debian:~# cat /lib/systemd/system/rustplaybot.service
\[Unit]
Description=playrobot
After=network.target
[Service]
User=playpen
ExecStart=/root/build/rustplay_bot
Environment=TG_TOKEN=<your_token>
Restart=always
RestartSec=0
#systemd start rustplaybot.service
Forwarded from PyPlayBot
This is PythonPlayBot 0.0.8 ,Python versions:
Py3:Python 3.5.3,
Py2:Python 2.7.13,
IPy:not supported:(
Py3:Python 3.5.3,
Py2:Python 2.7.13,
IPy:not supported:(
Forwarded from PyPlayBot
source code:print ( "put some code... ʕ•̀ω•́ʔ✧" )
Python output:put some code... ʕ•̀ω•́ʔ✧
Forwarded from PyPlayBot
source code:print ( "put some code... ʕ•̀ω•́ʔ✧" )
Python output:Sorry, this interpreter is not avaliable now:(
Forwarded from playpenKillBot
PID TTY TIME CMD
15980 ? 00:00:00 playkillbot
15983 ? 00:00:00 ps
15541 ? 00:00:00 pythonplay_bot
15956 ? 00:00:00 python3
15957 ? 00:00:00 sh
15958 ? 00:00:00 ping
13077 ? 00:00:02 rustplay_bot
15980 ? 00:00:00 playkillbot
15983 ? 00:00:00 ps
15541 ? 00:00:00 pythonplay_bot
15956 ? 00:00:00 python3
15957 ? 00:00:00 sh
15958 ? 00:00:00 ping
13077 ? 00:00:02 rustplay_bot