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
#!/bin/bash | |
set -ex | |
UBUNTU_VERSION="14.04" | |
mkdirs(){ | |
#lxc delete hadoop-master --force | |
#lxc delete hadoop-slave-1 --force | |
#lxc delete hadoop-slave-2 --force | |
rm -rf /tmp/* |
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
#Подключить локальную папку в POD. | |
#1. создаем PersistentVolume с привязкой к конкретной ноде | |
#2. создаем PersistentVolumeClaim | |
#3. прописываем volumes и volumeMounts в deployment | |
#В deployment не обязательно привязываться к конкретной ноде, kubernetes сам поймет, | |
#что нужно под запускать на конкретной ноде исходя из настроек PersistentVolumeClaim. | |
apiVersion: v1 | |
kind: PersistentVolume | |
metadata: |
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
unless ARGV.size > 0 | |
puts " Missing executable file argument" | |
puts " Usage (in a Dockerfile)" | |
puts " RUN crystal run ./path/to/list-deps.cr -- ./bin/executable" | |
exit 1 | |
end | |
executable = File.expand_path(ARGV[0]) | |
unless File.exists?(executable) |
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
#!/bin/sh | |
helm upgrade --install gitlab gitlab/gitlab \ | |
--namespace gitlab \ | |
--timeout 600 \ | |
--set nginx-ingress.enabled=false \ | |
--set global.ingress.class=nginx \ | |
--set global.hosts.domain=example.com \ | |
--set global.hosts.externalIP=10.10.10.10 \ | |
--set [email protected] \ | |
--set certmanager.install=true \ |
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
#!/usr/bin/env python | |
# -*- coding:utf-8 vi:noet | |
# RTSP/H264 simple camera DVR | |
__author__ = "Jérôme Carretero <[email protected]>" | |
__license__ = "MIT" | |
import sys, io, os, re, time, datetime | |
import gi |
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
https://ecom.inf.net/api/2.1/json/Chat.event/["d545b2e5-0199-438c-80c5-b2299d449093","00b2fcbe-f27f-437b-a0d5-91072d840ed3",{"skipHandling":1}]?callback=jQuery110207010345680173486_1455730577298&_=1455730577300 | |
https://ecom.inf.net/api/2.1/json/Chat.event/["d545b2e5-0199-438c-80c5-b2299d449093","29e75851-6cae-44f4-8a9c-f6489c4dca88",{"url":"http://demo.nanosemantics.ru/demos/smb_site/1/","count":1}]?callback=jQuery110207010345680173486_1455730577298&_=1455730577301 | |
https://ecom.inf.net/api/2.1/json/Chat.click/["d545b2e5-0199-438c-80c5-b2299d449093","",{"link-id":"pg@4/1455470604245/advert"}]?callback=jQuery110207010345680173486_1455730577298&_=1455730577302 |
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
var STRIP_COMMENTS = /((\/\/.*$)|(\/\*[\s\S]*?\*\/))/mg; | |
var ARGUMENT_NAMES = /([^\s,]+)/g; | |
function getFnParamNames(func) { | |
var fnStr = func.toString().replace(STRIP_COMMENTS, ''); | |
var result = fnStr.slice(fnStr.indexOf('(')+1, fnStr.indexOf(')')).match(ARGUMENT_NAMES); | |
if(result === null) | |
result = []; | |
return result; | |
}; |
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
<?xml version="1.0"?> | |
<document type="freeswitch/xml"> | |
<X-PRE-PROCESS cmd="set" data="local_address=$${local_ip_v4}"/> | |
<X-PRE-PROCESS cmd="set" data="sipnet_proxy=sipnet.ru"/> | |
<X-PRE-PROCESS cmd="set" data="sipnet_login=..."/> | |
<X-PRE-PROCESS cmd="set" data="sipnet_password=..."/> | |
<X-PRE-PROCESS cmd="set" data="sound_prefix=$${sounds_dir}/en/us/callie"/> |
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
<?php | |
$apikey = "changeMe"; | |
$salt = "changeMe"; | |
$url = "http://local.mycallsystems.com/api/callsOnDemand?apikey=".urlencode($apikey)."&checksum=".urlencode(md5($apikey.$salt)); | |
$start = time(); | |
$request = | |
[ | |
"time" => [ | |
"start" => [ | |
"Y"=> date('Y', $start)*1, |
NewerOlder