Skip to content

Instantly share code, notes, and snippets.

View alevkin's full-sized avatar

Andrei Levkin alevkin

  • Serbia, Belgrade
View GitHub Profile
@android10
android10 / doctl
Created December 24, 2018 16:37 — forked from rgodishela/doctl
Digital Ocean Command Line Interface
DOCTL
Installation
Option 1 – Download a Release from GitHub
Visit the Releases page for the doctl GitHub project.
https://github.com/digitalocean/doctl/releases
tar xf ~/doctl-1.4.0-linux-amd64.tar.gz
sudo mv ~/doctl /usr/local/bin
Configure
@scootcho
scootcho / deployment-tool-ansible-puppet-chef-salt.md
Created April 5, 2016 12:37 — forked from jaceklaskowski/deployment-tool-ansible-puppet-chef-salt.md
Choosing a deployment tool - ansible vs puppet vs chef vs salt

Requirements

  • no upfront installation/agents on remote/slave machines - ssh should be enough
  • application components should use third-party software, e.g. HDFS, Spark's cluster, deployed separately
  • configuration templating
  • environment requires/asserts, i.e. we need a JVM in a given version before doing deployment
  • deployment process run from Jenkins

Solution

@ndemengel
ndemengel / whisper-calculator.py
Last active August 24, 2016 11:36 — forked from jjmaestro/whisper-calculator.py
Add weeks support to jjmaestro's script
#!/usr/bin/env python
# -*- coding: utf-8 -*-
def archive_to_bytes(archive):
def to_seconds(s):
SECONDS_IN_A = {
's': 1,
'm': 1 * 60,
'h': 1 * 60 * 60,
@dreamcat4
dreamcat4 / debug.sh
Last active April 27, 2019 07:32
entrypoint script to take core files, and another script to take a stacktrace (while program is hung running, deadlocked / live-locked)
#!/bin/bash
# Tvheadend Debugging Guide
# https://tvheadend.org/projects/tvheadend/wiki/Debugging
_cleanup ()
{
if [ "$core_pattern_orig" ]; then
# Restore core path
echo "$core_pattern_orig" > /proc/sys/kernel/core_pattern
@diyan
diyan / pci_dss.md
Last active September 30, 2024 15:12
PCI DSS. Useful resources
@wofeiwo
wofeiwo / gist:3634357
Created September 5, 2012 10:00
Golang daemonize
/* ivan(a.t)mysqlab.net */
package main
import (
"syscall"
"os"
"log"
)
func daemon(nochdir, noclose int) int {
@tritonrc
tritonrc / ldap_admin.rb
Created January 17, 2011 19:55
Simple Sinatra based LDAP admin tool
require 'rubygems'
require 'sinatra'
require 'net-ldap'
require 'digest/sha1'
require 'base64'
require 'haml'
LDAP_HOST = 'localhost'
ADMIN_DN = 'cn=admin,dc=company,dc=com'