Skip to content

Instantly share code, notes, and snippets.

View strike's full-sized avatar

Alexander Zubarev strike

  • Avride
  • Tel Aviv
View GitHub Profile
@strike
strike / chproxy.service
Created May 15, 2018 12:02
chproxy.service
[Unit]
Description=ClickHouse balancer chproxy
After=network.target
[Service]
ExecStart=/opt/chproxy/chproxy -config=/opt/chproxy/config.yml
ExecReload=/bin/kill -HUP $MAINPID
Type=simple
#Restart=always
@strike
strike / gist:997e42ed6f5d3b005a35
Created November 19, 2015 14:11
Create new AD OID
' oidgen.vbs
'
' THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
' OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR
' FITNESS FOR A PARTICULAR PURPOSE.
'
' Copyright (c) Microsoft Corporation. All rights reserved
'
' This script is not supported under any Microsoft standard support program or service.
' The script is provided AS IS without warranty of any kind. Microsoft further disclaims all
@strike
strike / SyncADWith1C.ps1
Created April 16, 2015 16:05
SyncADWith1C
<#
.DESCRIPTION
This script sync AD (tree and users) with csv files (exported from 1c)
.AUTHOR Zubarev Alexander aka Strike ([email protected])
.LINK
http://...
#>
@strike
strike / README.md
Last active August 29, 2015 14:16 — forked from yannrouillard/README.md

Dashing Hot Status Widget

You like the Dashing Hotness Widget and you like the text widget ? You will love the Dashing Hot Status Widget !

About

This widget is heavily inspired by the hotness widget except it will change its color based on the text displayed instead of the status text displayed (OK, WARNING, CRITICAL, RUNNING or UNKNOWN)

@strike
strike / mytelnet
Last active April 10, 2017 14:02
telnetpass - noninteractive ssh password provider (primitive sshpass for telnet)
#!/bin/bash
ip=`gethostip -d "$1"`
echo $ip
read -p "Which user-pass use? (G - GUU, M - marina or nothing) " prompt
case $prompt in
[Gg])
telnetpass "$ip" login pass en
;;
[Mm])