Skip to content

Instantly share code, notes, and snippets.

View jxsl13's full-sized avatar

John Behm jxsl13

  • Arvato Systems GmbH
  • Germany
  • 10:24 (UTC +02:00)
View GitHub Profile
@andryyy
andryyy / gist:43100cb898d192beb2de05dbaf81883c
Created November 1, 2019 09:42
hardcore sa-rules map
This file has been truncated, but you can view the full file.
header __HS_XM_BLAT_311_WIN32 X-Mailer =~ /^Blat v3\.1\.1, a Win32 SMTP\/NNTP mailer http:\/\/www.blat.net/
header __HS_XOLE_BLAT_311 X-MimeOLE =~ /Produced by Blat v3\.1\.1/
meta HS_HEADER_SPAM_70 (__HS_XM_BLAT_311_WIN32 && __HS_XOLE_BLAT_311)
score HS_HEADER_SPAM_70 3.5
#
# Heinlein Support -- SpamAssassin Regelsätze
# Use it as it is.
#
#
body HS_BODY_2 /Unser ING-DIBA Sicherheits Bereich investiert sehr viel Zeit/
@AngerM
AngerM / http.go
Created October 30, 2018 03:25
High Performance Golang HTTP Client
package utils
import (
"context"
"io"
"io/ioutil"
"net"
"net/http"
"strings"
"time"
@alexandervantrijffel
alexandervantrijffel / pre-commit-for-go-projects
Last active March 18, 2024 05:10
git pre-commit hook script that runs go build, go test, goimports for all packages
#!/bin/bash
# How to use:
# Store this file as .git/hooks/pre-commit and make it executable
# Or, to share the hook with your team, store as .githooks/pre-commit,
# make this file executable and run:
# git config core.hooksPath .githooks
# A pre-commit hook for go projects. In addition to the standard
@ZenGround0
ZenGround0 / client.go
Created January 3, 2018 20:26
Golang HTTP multipart streaming
package main
import (
"io"
"mime/multipart"
"net/http"
"net/url"
"os"
"fmt"
)
@awalterschulze
awalterschulze / .gitignore
Last active June 12, 2024 14:39
compile git version inside go binary
mybinary
@wknapik
wknapik / main.yml
Created November 3, 2017 12:04
Set up a tunnel to tiller to use with the ansible helm module
- set_fact:
tun_pid_file: ...
- name: set up a tunnel to tiller
shell: |
tiller_pod="$(kubectl get pod -l app=helm,name=tiller --namespace kube-system -o name|cut -d/ -f2)"
nohup kubectl port-forward "$tiller_pod" 44134:44134 --namespace kube-system </dev/null >/dev/null 2>&1 &
echo "$!" >{{ tun_pid_file|quote }}
creates: "{{ tun_pid_file }}"
@Mebus
Mebus / sshclient.go
Created May 11, 2017 17:07 — forked from josephspurrier/sshclient.go
Golang SSH Client
package main
import (
"bufio"
"io/ioutil"
"os/signal"
//"syscall"
"fmt"
"log"
"os"
@wagenet
wagenet / glibc.md
Last active July 11, 2024 17:21
glibc Versions

glibc Versions

List of oldest supported version of top 10 Linux Distros and their glibc version according to distrowatch.com.

Summary

Out of all versions with published EOLs, 2.12 is the oldest glibc still active, found in CentOS 6.8.

If CentOS 6 and 7 are eliminated, the oldest glibc is 2.23 in Ubuntu and Slackware.

@Kovrinic
Kovrinic / .gitconfig
Last active July 15, 2024 04:45
git global url insteadOf setup
# one or the other, NOT both
[url "https://github"]
insteadOf = git://github
# or
[url "git@github.com:"]
insteadOf = git://github
"""
A simple example pyside app that demonstrates dragging and dropping
of files onto a GUI.
- This app allows dragging and dropping of an image file
that this then displayed in the GUI
- Alternatively an image can be loaded using the button
- This app includes a workaround for using pyside for dragging and dropping