Skip to content

Instantly share code, notes, and snippets.

View mirekphd's full-sized avatar


  • EU
View GitHub Profile
wphicks / Fraud_Detection_Example.ipynb
Last active January 28, 2023 12:44
Notebook example for fraud detection with the Triton FIL Backend
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
maxivak /
Last active April 16, 2024 21:48
Let's encrypt SSL certificates using certbot in docker

Directories on host machine:

  • /data/certbot/letsencrypt

  • /data/certbot/www

  • Nginx server in docker container

docker run -d --name nginx \
steven-terrana / kill_all.groovy
Created September 10, 2019 17:48
[Kill All Builds] kill all queued and running jobs #Jenkins
import java.util.ArrayList
import hudson.model.*;
// Remove everything which is currently queued
def q = Jenkins.instance.queue
for (queued in Jenkins.instance.queue.items) {
// stop all the currently running jobs
eddex / Install CUDA 10.1 on Ubuntu
Last active November 22, 2023 16:12
How to install CUDA 10.1 on Ubuntu 18.04

How to install CUDA 10.1 on Ubuntu 18.04

A clean installation of Ubuntu 18.04.02 LTS was used.

This gist is an extension to the official docs, adding missing parts and instructions.

2 pre-install actions

follow the pre-installation actions on:

teeks99 / Jenkinsfile
Created June 29, 2018 15:02
Jenkinsfile with e-mail
pipeline {
agent any
stages {
steps {
echo "Running job: ${env.JOB_NAME}\nbuild: ${env.BUILD_ID} - ${env.BUILD_URL}\nblue ocean: ${env.RUN_DISPLAY_URL}"
dudash /
Last active April 21, 2022 19:42
OpenShift CLI wait for argument pod to go "Running" - or prompt if no pod name given
# Simple script to wait for named pod
# if no arguments are specified it will prompt
# if 1 argument is specified it will look for a pod with that name
# if more than 1 argument is specified it will only use the 1st and ignore the rest
# tested against oc 3.9 - might not work with other versions
petitviolet / nginx_deployment.yaml
Created March 11, 2018 11:04
sample Nginx configuration on Kubernetes using ConfigMap to configure nginx.
apiVersion: v1
kind: ConfigMap
name: nginx-conf
nginx.conf: |
user nginx;
worker_processes 3;
error_log /var/log/nginx/error.log;
events {
pierrejoubert73 /
Last active May 20, 2024 22:17
How to add a collapsible section in markdown.

How to add a collapsible section in markdown

1. Example

Click me


  1. Foo
  2. Bar
    • Baz
  • Qux
tamas-molnar /
Last active May 9, 2024 05:45
aliases and shortcuts for kubectl
alias kc='kubectl'
alias kclf='kubectl logs --tail=200 -f'
alias kcgs='kubectl get service -o wide'
alias kcgd='kubectl get deployment -o wide'
alias kcgp='kubectl get pod -o wide'
alias kcgn='kubectl get node -o wide'
alias kcdp='kubectl describe pod'
alias kcds='kubectl describe service'
alias kcdd='kubectl describe deployment'
alias kcdf='kubectl delete -f'
glynnbird /
Created September 26, 2016 10:24
Python script to convert simple Redis commands to raw Redis protocol
# reads a sequence of REDIS commands from stdin e.g.
# SET mykey "hello world
# into Redis protocol e.g.
# *3
# $3
# $5
# mykey