Debian Bullseye LXC
apt install wget git lxc file
# file komutu Canvas koşuğunda gereklidir.
| #!/bin/bash | |
| # | |
| # build static tar because we need exercises in minimalism | |
| # MIT licentar: google it or see robxu9.mit-license.org. | |
| # https://github.com/luciusmagn/tar-static/ | |
| # For Linux, also builds musl for truly static linking. | |
| tar_version="1.34" | |
| musl_version="1.2.2" |
| #!/bin/sh | |
| tmux new-session -d -s work1 'cd a/b/c'; # start new detached tmux session, run htop | |
| tmux split-window; # split the detached tmux session | |
| tmux send 'cd /d/e/f' ENTER; # send 2nd command 'htop -t' to 2nd pane. I believe there's a `--target` option to target specific pane. | |
| #tmux a; | |
| tmux new-session -d -s work2 'htop'; | |
| # default vertical / -h horizontal | |
| tmux split-window -h; | |
| tmux send 'a/b/c/myscript.sh' ENTER; | |
| tmux a; |
| -- | |
| -- linq.lua | |
| -- | |
| -- Copyright (c) 2020 Mathew Mariani | |
| -- | |
| -- Permission is hereby granted, free of charge, to any person obtaining a copy of | |
| -- this software and associated documentation files (the "Software"), to deal in | |
| -- the Software without restriction, including without limitation the rights to | |
| -- use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies | |
| -- of the Software, and to permit persons to whom the Software is furnished to do |
| # Template used to create this container: /usr/share/lxc/templates/lxc-download | |
| # Parameters passed to the template: -d alpine -r edge -a amd64 | |
| # Template script checksum (SHA-1): 985e49018f4037a7854e89877ba09c4fe6c57af5 | |
| # For additional config options, please look at lxc.container.conf(5) | |
| # Uncomment the following line to support nesting containers: | |
| #lxc.include = /usr/share/lxc/config/nesting.conf | |
| # (Be aware this has security implications) | |
| # Uncomment to create unprivileged containers |
| # (c) 2007 Chris AtLee <[email protected]> | |
| # Licensed under the MIT license: | |
| # http://www.opensource.org/licenses/mit-license.php | |
| # | |
| # Original author: Chris AtLee | |
| # | |
| # Modified by David Ford, 2011-12-6 | |
| # added py3 support and encoding | |
| # added pam_end | |
| # added pam_setcred to reset credentials after seeing Leon Walker's remarks |
| import subprocess | |
| import pam | |
| sifre="1234567" | |
| kullanici="myuser" | |
| p=pam.pam() | |
| durum=p.authenticate(kullanici,sifre) |
| using Gtk; | |
| public class Main { | |
| class AppStatusIcon : Window { | |
| private StatusIcon trayicon; | |
| private Gtk.Menu menuSystem; | |
| private AboutDialog aboutDialog; | |
| public AppStatusIcon() { | |
| /* Create tray icon */ |
| import httpclient, asyncdispatch, strutils, tables, unicode, json, math, times | |
| const | |
| ForecastUrlFormat = "http://api.openweathermap.org/data/2.5/forecast/daily?APPID=$1&lang=en&q=$2&cnt=$3" | |
| ResultFormat = """$1: | |
| $2 | |
| Temperature: $3 °C | |
| Humidity: $4% | |
| Clouds: $5% |