Skip to content

Instantly share code, notes, and snippets.

@daniilyar-confyrm
daniilyar-confyrm / stacktrace
Created July 19, 2016 21:49
The full error stacktrace from browser
StackStorm Stanley
<html> <head> <title>Pecan - Application Error</title> <link rel="stylesheet" type="text/css" href="data:text/css;base64,LyoqCiAqIFN5bnRheEhpZ2hsaWdodGVyCiAqIGh0dHA6Ly9hbGV4Z29yYmF0Y2hldi5jb20vU3ludGF4SGlnaGxpZ2h0ZXIKICoKICogU3ludGF4SGlnaGxpZ2h0ZXIgaXMgZG9uYXRpb253YXJlLiBJZiB5b3UgYXJlIHVzaW5nIGl0LCBwbGVhc2UgZG9uYXRlLgogKiBodHRwOi8vYWxleGdvcmJhdGNoZXYuY29tL1N5bnRheEhpZ2hsaWdodGVyL2RvbmF0ZS5odG1sCiAqCiAqIEB2ZXJzaW9uCiAqIDMuMC44MyAoSnVseSAwMiAyMDEwKQogKgogKiBAY29weXJpZ2h0CiAqIENvcHlyaWdodCAoQykgMjAwNC0yMDEwIEFsZXggR29yYmF0Y2hldi4KICoKICogQGxpY2Vuc2UKICogRHVhbCBsaWNlbnNlZCB1bmRlciB0aGUgTUlUIGFuZCBHUEwgbGljZW5zZXMuCiAqLwouc3ludGF4aGlnaGxpZ2h0ZXIgYSwKLnN5bnRheGhpZ2hsaWdodGVyIGRpdiwKLnN5bnRheGhpZ2hsaWdodGVyIGNvZGUsCi5zeW50YXhoaWdobGlnaHRlciB0YWJsZSwKLnN5bnRheGhpZ2hsaWdodGVyIHRhYmxlIHRkLAouc3ludGF4aGlnaGxpZ2h0ZXIgdGFibGUgdHIsCi5zeW50YXhoaWdobGlnaHRlciB0YWJsZSB0Ym9keSwKLnN5bnRheGhpZ2hsaWdodGVyIHRhYmxlIHRoZWFkLAouc3ludGF4aGlnaGxpZ2h0ZXIgdGFibGUgY2FwdGlvbiwKLnN5bnRheGhpZ2hsaWdodGVyIHRleHRhcmVhIHsKICAt
@daniilyar-confyrm
daniilyar-confyrm / Dockerfile
Created July 19, 2016 21:15
Dockerfile to test if st2 setup oneliner works on Ubuntu 14.04 LTS
FROM ubuntu:14.04
RUN apt-get -qqy update && apt-get -qqy install curl
RUN curl -sSL https://stackstorm.com/packages/install.sh | bash -s -- --user=st2admin --password=st2admin
@daniilyar-confyrm
daniilyar-confyrm / check_cpu_credits.sh
Last active May 17, 2023 08:34
[Nagios-check] AWS EC2 - check how much CPU credits are left at the instance
#!/bin/bash
set -e
OK=0
WARN=1
CRIT=2
UNKNOWN=3
function get_warning_limit {
@daniilyar-confyrm
daniilyar-confyrm / check_partition_need_to_be_resized.sh
Last active May 4, 2016 09:34
[Nagios check, Linux] Check if physical disk size is bigger enough than total size of it's logical partitions (helps to identify partitions which could be extended with resize2fs util)
#!/bin/bash
set -e
OK=0
WARN=1
CRIT=2
UNKNOWN=3
SENSITIVITY_THRESHOLD_PERCENTS=10