Skip to content

Instantly share code, notes, and snippets.

reply_code_id reply_code
0 No Error
NoError No Error
No Error No Error
1 Format Error
FormErr Format Error
Format Error Format Error
2 Server Failure
ServFail Server Failure
Server Failure Server Failure
@getkub
getkub / n8n-deployment.yml
Created December 26, 2021 18:36 — forked from bacarini/n8n-deployment.yml
N8N - Kubernetes complete configuration
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: n8n-deployment
namespace: standard
labels: &labels
app: n8n
component: deployment
spec:
@getkub
getkub / syslog_severity_facility_priority.md
Last active July 18, 2020 18:36
syslog priority matrix
Facility-Severity Emergency(0) Alert(1) Critical(2) Error(3) Warning(4) Notice(5) Info(6) Debug(7)
kernel(0) 0 1 2 3 4 5 6 7
user-level(1) 8 9 10 11 12 13 14 15
mail(2) 16 17 18 19 20 21 22 23
system(3) 24 25 26 27 28 29 30 31
secur/auth(4) 32 33 34 35 36 37 38 39
syslog(5) 40 41 42 43 44 45 46 47
lpd/printer(6) 48 49 50 51 52 53 54 55
news/nntp(7) 56 57 58 59 60 61 62 63
# /etc/yum.repos.d/kubernetes.repo
[kubernetes]
name=Kubernetes
baseurl=https://packages.cloud.google.com/yum/repos/kubernetes-el7-x86_64
enabled=1
gpgcheck=1
repo_gpgcheck=1
gpgkey=https://packages.cloud.google.com/yum/doc/yum-key.gpg https://packages.cloud.google.com/yum/doc/rpm-package-key.gpg
@getkub
getkub / mssql_table_queries
Created June 11, 2018 21:57
mssql_table_queries
/* CREATE a table */
CREATE TABLE [WebsiteDB].[dbo].[empSalary] (
empId int,
empSalaryBand char,
empSalaryValue int,
empCurrency varchar(8)
);
/* ALTER a table */
ALTER TABLE [empSalary] ALTER COLUMN empSalaryBand varchar(8);
@getkub
getkub / asp_net_web_config
Last active June 11, 2018 06:50
ASP NET web.config connection string and membership provider
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<system.web>
<compilation debug="true" />
<membership>
<providers>
<clear />
<add name="AspNetSqlMembershipProvider"
type="System.Web.Security.SqlMembershipProvider, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
#!/usr/bin/perl
# list all of the perl modules installed
use File::Find ;
for (@INC) { find(\&modules,$_) ; }
sub modules
{
if (-d && /^[a-z]/) { $File::Find::prune = 1 ; return }
return unless /\.pm$/ ;
my $fullPath = "$File::Find::dir/$_";
$fullPath =~ s!\.pm$!!;
@getkub
getkub / wrapperEpoch.sh
Created February 5, 2017 15:46
Wrapper script for a java program
#!/usr/bin/ksh
# Wrapper to run the java file
# Please input the input config file containing epochTimes
# The config file should contain only 1 epoch Time per line
# Basic Batch Epoch Converter : diaryFolio
# Format
# ./runThis.ksh <inputFileDateFormat> <inputConfigFilename>
@getkub
getkub / EpochConverterClass.java
Created February 5, 2017 15:41
Diaryfolio.com : Epoch Human Time Batch Conversion
import java.io.*;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
import java.util.SimpleTimeZone;
import java.util.concurrent.TimeUnit;
public class EpochConverterClass {
@getkub
getkub / logrotate.d
Last active January 18, 2017 19:33
Splunk logrotate example
# An example for rsyslog logrotate daemon config.
# Written by isplunker.com
#/etc/logrotate.d/myrotate.conf
/var/log/syslog/*.log
/var/log/syslog/*/*.log
/var/log/syslog/*/*/*.log
/var/log/syslog/*/*/*/*.log
{
notifempty # Do not rotate the log if it is empty
compress # Old versions of log files are compressed with gzip