Skip to content

Instantly share code, notes, and snippets.

 

++ Patrol Detachment -2CP (Chaos - Chaos Space Marines) [83 PL, 1,547pts, 1CP] ++

 

+ Configuration +

 

@josefsalyer
josefsalyer / Jenkinsfile
Created February 22, 2022 15:33 — forked from oifland/Jenkinsfile
Loops in Jenkinsfiles
// Related to https://issues.jenkins-ci.org/browse/JENKINS-26481
abcs = ['a', 'b', 'c']
node('master') {
stage('Test 1: loop of echo statements') {
echo_all(abcs)
}
stage('Test 2: loop of sh commands') {
@josefsalyer
josefsalyer / global-protect.sh
Last active October 21, 2020 15:40 — forked from kaleksandrov/global-protect.sh
Simple script that starts and stops GlobalProtect.app on Mac OSX.
#!/usr/bin/env bash
case $# in
0)
echo "Usage: $0 {start|stop}"
exit 1
;;
1)
case $1 in
start)
@josefsalyer
josefsalyer / DeleteQueryWithGrammar.cs
Created August 21, 2019 13:23 — forked from ScottLilly/DeleteQueryWithGrammar.cs
Source code for my "How to build a fluent interface in C#" blog post.
using System.Collections.Generic;
using BuildAFluentInterface.Interfaces;
namespace BuildAFluentInterface
{
public class DeleteQueryWithGrammar : ICanAddCondition, ICanAddWhereValue, ICanAddWhereOrRun
{
private readonly string _tableName;
private readonly List<WhereCondition> _whereConditions = new List<WhereCondition>();
@josefsalyer
josefsalyer / gist:cb0aa0b80e24aa78939a3e0e1ca3df4f
Created January 9, 2019 16:05 — forked from filipbec/gist:5998034874b119fab0e4
Scannr - Keys for obtaining US Driver's license data
@josefsalyer
josefsalyer / .gitconfig
Created June 7, 2018 15:27 — forked from Wirone/.gitconfig
GIT & GitFlow aliases for ~/.gitconfig
# GIT aliases for ~/.gitconfig file
# @author Grzegorz Korba <grzegorz.korba@codito.net>
# Credits: Miscellaneous places on the Internet...
# GitFlow related sections
[gitflow "branch"]
master = master
develop = develop
[gitflow "prefix"]
feature = feature/
#!/usr/bin/env bash
encode()
{
local string=$1
local strlen=${#string}
for (( pos=0 ; pos<strlen ; pos++ )); do
c=${string:$pos:1}
@josefsalyer
josefsalyer / README.md
Created August 14, 2017 17:46 — forked from mosquito/README.md
Add doker-compose as a systemd unit

Docker compose as a systemd unit

Create file /etc/systemd/system/docker-compose@.service

[Unit]
Description=%i service with docker compose
Requires=docker.service
After=docker.service
@josefsalyer
josefsalyer / 02-Jenkinsfile
Created July 13, 2017 18:37 — forked from abtris/02-Jenkinsfile
Jenkinsfile - imperative style vs declarative style
pipeline {
agent any
environment {
PACKAGE="github.com/abtris/bee"
GOPATH="/Users/abtris/go"
GOROOT="/usr/local/opt/go/libexec"
}
stages {
stage('Preparation') {
steps {
@josefsalyer
josefsalyer / SSLPoke.java
Created June 5, 2017 17:21 — forked from 4ndrej/SSLPoke.java
Test of java SSL / keystore / cert setup. Check the commet #1 for howto.
import javax.net.ssl.SSLSocket;
import javax.net.ssl.SSLSocketFactory;
import java.io.*;
/** Establish a SSL connection to a host and port, writes a byte and
* prints the response. See
* http://confluence.atlassian.com/display/JIRA/Connecting+to+SSL+services
*/
public class SSLPoke {
public static void main(String[] args) {