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
function FindProxyForURL(url, host) { | |
host_ip = dnsResolve(host) | |
// local net | |
if (isInNet(host_ip, "10.0.0.0", "255.0.0.0") || | |
isInNet(host_ip, "172.16.0.0", "255.240.0.0") || | |
isInNet(host_ip, "192.168.0.0", "255.255.0.0")) | |
{ | |
return "DIRECT"; | |
} | |
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
FROM ubuntu:xenial | |
ENV DEBIAN_FRONTEND noninteractive | |
RUN set -ex \ | |
&& echo "deb http://archive.ubuntu.com/ubuntu/ xenial multiverse" > /etc/apt/sources.list.d/multiverse.list \ | |
&& dpkg --add-architecture i386 \ | |
&& apt-get update \ | |
&& apt-get -y dist-upgrade \ | |
&& apt-get install --no-install-recommends --no-install-suggests -y \ |
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
$($(docker images --format "{{.Repository}}:{{.Tag}}" --filter "dangling=false") -match "[^>]$") | ForEach-Object -Process { docker pull $_ } |
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
@echo off | |
setlocal EnableExtensions | |
IF NOT DEFINED LOCALAPPDATA set LOCALAPPDATA=%HOMEDRIVE%%HOMEPATH%\Local Settings\Application Data | |
for /D %%i in ("%LOCALAPPDATA%\1C\1Cv8\*-*-*-*-*") do (rmdir /q /s "%%i") | |
for /D %%i in ("%LOCALAPPDATA%\1C\1Cv82\*-*-*-*-*") do (rmdir /q /s "%%i") |
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
[CmdletBinding()] | |
param( | |
[parameter(Mandatory=$true, Position=1)] | |
[string]$Text | |
) | |
function SReplace($str) | |
{ | |
[string]$ret = $str | |
[string[]] $Del = "`n,`r,`t, ,`",`",`',`'," -split "," |
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
Процедура ДополнитьМассив(Приемник, Источник) | |
Для Каждого ТекЭлемент Из Источник Цикл | |
Приемник.Добавить(ТекЭлемент); | |
КонецЦикла; | |
КонецПроцедуры | |
LOCALAPPDATA = ПолучитьПеременнуюСреды("LOCALAPPDATA"); | |
Если Неопределено = LOCALAPPDATA Тогда //для windows xp | |
HOMEDRIVE = ПолучитьПеременнуюСреды("HOMEDRIVE"); | |
HOMEPATH = ПолучитьПеременнуюСреды("HOMEPATH"); |
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
# -*- coding: utf-8 -*- | |
""" | |
simple calculator for time | |
based on fourFn.py (pyparsing module examlple) | |
""" | |
from pyparsing import Literal,CaselessLiteral,Word,Combine,Optional,\ | |
ZeroOrMore,Forward,nums,alphas | |
import sys, operator |
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
{ | |
"listeners": { | |
"*:80": { | |
"application": "timecalc" | |
} | |
}, | |
"applications": { | |
"timecalc": { | |
"type": "python", | |
"processes": 1, |
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
$here = Split-Path -Parent $MyInvocation.MyCommand.Path | |
Push-Location $here | |
$D_Machine = 'default' | |
& docker-machine start $D_Machine | |
& docker-machine env $D_Machine | Invoke-Expression | |
$Env:DOCKER_CERT_PATH = $Env:DOCKER_CERT_PATH -replace "^${Env:SystemDrive}\\Users\\[^\\]+","${Env:USERPROFILE}" |
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
function Which_Cmd(){ | |
$(Get-Command $args).Definition | |
} | |
New-Alias which Which_Cmd |