This file contains 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
package main | |
import ( | |
"fmt" | |
"math" | |
) | |
// only explicit declaration outside function body | |
// объявить вне функций можно только явно | |
var d float64 = 1.0e-15 |
This file contains 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
#!/usr/bin/env python3.4 | |
# -*- coding: utf-8 -*- | |
""" | |
Created on 2016-03-21 19.09 | |
@author: schors@gmail.com | |
""" | |
import sys | |
import os |
This file contains 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
## isolinux.cfg | |
### D-I config version 2.0 | |
### search path for the c32 support libraries (libcom32, libutil etc.) | |
##path | |
##default autoinstall | |
##prompt 0 | |
##timeout 0 | |
###ui gfxboot bootlogo | |
## | |
## |
This file contains 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
<?php | |
static public function set_calendar() { | |
$calendar_json = '{"data":{"2003":{"1":{"1":{"isWorking":2},"2":{"isWorking":2},"3":{"isWorking":2},"4":{"isWorking":0},"5":{"isWorking":3},"6":{"isWorking":2},"7":{"isWorking":2}},"2":{"24":{"isWorking":2}},"3":{"7":{"isWorking" | |
:3},"10":{"isWorking":2}},"4":{"30":{"isWorking":3}},"5":{"1":{"isWorking":2},"2":{"isWorking":2},"8":{"isWorking":3},"9":{"isWorking":2}},"6":{"11":{"isWorking":3},"12":{"isWorking":2},"13":{"isWorking":2},"21":{"isWorking":0}},"11":{"6 | |
":{"isWorking":3},"7":{"isWorking":2}},"12":{"11":{"isWorking":3},"12":{"isWorking":2},"31":{"isWorking":3}}},"2004":{"1":{"1":{"isWorking":2},"2":{"isWorking":2},"6":{"isWorking":3},"7":{"isWorking":2}},"2":{"23":{"isWorking":2}},"3":{" | |
8":{"isWorking":2}},"4":{"30":{"isWorking":3}},"5":{"3":{"isWorking":2},"4":{"isWorking":2},"10":{"isWorking":2}},"6":{"11":{"isWorking":3},"14":{"isWorking":2}},"11":{"8":{"isWorking":2}},"12":{"13":{"isWorking":2},"31":{"isWorking":3}} | |
},"2005":{"1":{"3" |
This file contains 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
docker run -d --privilged --pid=host -p 2022:22 -v /home:/home -v /var/opt/docker-env-etc:/var/opt/docker-env-etc -v /var/opt/security:/etc/security -v /var/run:/var/opt/docker-sock |
This file contains 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
#!/bin/sh | |
set -e | |
ln -sf /var/opt/docker-sock/docker.sock /var/run/docker.sock | |
exec /usr/sbin/sshd -D -e |
This file contains 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
FROM ubuntu:trusty | |
ENV NOTVISIBLE "in users profile" | |
RUN apt-get update && apt-get dist-upgrade -y \ | |
&& DEBIAN_FRONTEND=noninteractive apt-get install -y openssh-server \ | |
&& mkdir /var/run/sshd \ | |
&& sed -i 's/StrictModes yes/StrictModes no/' /etc/ssh/sshd_config \ | |
&& sed 's@session\s*required\s*pam_loginuid.so@session optional pam_loginuid.so@g' -i /etc/pam.d/sshd \ | |
&& echo "export VISIBLE=now" >> /etc/profile |
This file contains 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
FROM php:7.1-cli | |
RUN apt-get update && apt-get install -y \ | |
openssl \ | |
bash \ | |
locales \ | |
man \ | |
vim \ | |
curl \ | |
wget \ |
This file contains 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
FROM php:7.1-cli | |
RUN apt-get update && apt-get install -y \ | |
openssl \ | |
bash \ | |
locales \ | |
man \ | |
vim \ | |
curl \ | |
wget \ |
This file contains 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
# /etc/crontab: system-wide crontab | |
# Unlike any other crontab you don't have to run the `crontab' | |
# command to install the new version when you edit this file | |
# and files in /etc/cron.d. These files also have username fields, | |
# that none of the other crontabs do. | |
SHELL=/bin/sh | |
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin | |
# m h dom mon dow user command |
OlderNewer