Skip to content

Instantly share code, notes, and snippets.

global
log stdout format raw local0 info
defaults
mode tcp
timeout connect 5s
timeout client 30s
timeout server 30s
# First Kafka node
@jcechace
jcechace / exporter.groovy
Created October 9, 2020 12:32
Exporting of Jenkins Secrets
package src.seeds
import org.apache.commons.io.IOUtils
println('''import com.cloudbees.plugins.credentials.impl.UsernamePasswordCredentialsImpl;
import com.cloudbees.plugins.credentials.SystemCredentialsProvider;
import com.cloudbees.plugins.credentials.CredentialsScope;
import com.cloudbees.jenkins.plugins.sshcredentials.impl.BasicSSHUserPrivateKey;
import com.cloudbees.plugins.credentials.domains.*;
import org.jenkinsci.plugins.plaincredentials.impl.FileCredentialsImpl;
@jcechace
jcechace / keybase.md
Created September 7, 2019 09:55
Keybase Proof

Keybase proof

I hereby claim:

  • I am jcechace on github.
  • I am jcechace (https://keybase.io/jcechace) on keybase.
  • I have a public key ASBVK5SZiOwUk2QzabfoVOvFsxNOGFKJTyKdN_Hwxl4vNQo

To claim this, I am signing this object:

@jcechace
jcechace / init.coffee
Last active July 29, 2016 19:28
Atom settings sync
Here goes notthing
###############################################################################################################
## Use the following functions to preproces data from https://archive.ics.uci.edu/ml/datasets/Bank+Marketing #
###############################################################################################################
# Splits data frame into two parts -- training and testing data frame -- based on learn_ratio
splitDataSet <- function(dataSet, learn_ratio) {
instance_count = nrow(dataSet)
l_instance_count = round(instance_count * learn_ratio, 0)
l_indices = sample(instance_count, l_instance_count)
@jcechace
jcechace / gist:df85de9760a14070299f
Created March 10, 2015 16:57
Attributes in classed based Celery tasks
@celery.task
class test(Task):
def __init__(self):
self.counter = 0
def run(self, inspect=False):
if not inspect:
self.counter += 1
return None
return self.counter