Skip to content

Instantly share code, notes, and snippets.

View yannicklamprecht's full-sized avatar
🏠
Working from home

Yannick Lamprecht yannicklamprecht

🏠
Working from home
  • Germany, Frankfurt
  • 18:43 (UTC +02:00)
View GitHub Profile
@yannicklamprecht
yannicklamprecht / remove_gitlab_artifacts.sh
Created December 23, 2019 01:07 — forked from carceneaux/remove_gitlab_artifacts.sh
Script for removing GitLab Job Artifacts.
#!/bin/bash
#
# Written by Chris Arceneaux
# GitHub: https://github.com/carceneaux
# Email: carcenea@gmail.com
# Website: http://arsano.ninja
#
# Note: This code is a stop-gap to erase Job Artifacts for a project. I HIGHLY recommend you leverage
# "artifacts:expire_in" in your .gitlab-ci.yml
#
package de.zh32.slp;
import com.google.gson.Gson;
import java.io.ByteArrayOutputStream;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.OutputStream;
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>de.craftstuebchen</groupId>
<artifactId>freebuild</artifactId>
<version>0.2-SNAPSHOT</version>
@yannicklamprecht
yannicklamprecht / git_clone_all.bash
Last active February 13, 2019 20:17
A script that clones all repositories you have access to of a gitlab instance. (It requires jq to parse and access JSON easily)
#!/bin/bash
if [ $# -ne 3 ]
then
echo "$0 <gitlab_url> <private_token> <per_page>"
exit 1
fi
gitlab_url=$1
private_token=$2
@yannicklamprecht
yannicklamprecht / CountOpenSafariTabs.scpt
Created July 6, 2018 14:54 — forked from edenwaith/CountOpenSafariTabs.scpt
AppleScript: Count the number of open tabs in Safari
-- CountOpenSafariTabs.scpt
-- Author: Chad Armstrong
-- Date: 13 May 2016
-- Description: Count the number of open tabs in Safari
-- To run from CLI: osascript CountOpenSafariTabs.scpt
tell application "Safari"
--Variables
set winlist to every window
@yannicklamprecht
yannicklamprecht / App.java
Created February 25, 2018 21:45 — forked from thomasdarimont/App.java
Secure REST API Example with Spring Security, Spring Session, Spring Boot
package demo;
import java.io.Serializable;
import java.security.Principal;
import java.util.Collection;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
import java.util.UUID;
package org.bukkit.pathfinding.goals;
import org.bukkit.entity.Insentient;
import org.bukkit.pathfinding.PathfinderGoal;
import org.bukkit.Material;
import org.bukkit.entity.LivingEntity;
public class PathfinderGoalMoveToLocation implements PathfinderGoal {
### Keybase proof
I hereby claim:
* I am ysl3000 on github.
* I am ysl3000 (https://keybase.io/ysl3000) on keybase.
* I have a public key ASBdXp0p2PCGye-nlOfxSuC0pA_cGbxR4nAQstK1Tdslugo
To claim this, I am signing this object:
using System;
using System.Linq;
using System.Threading;
using BenchmarkDotNet.Attributes;
using BenchmarkDotNet.Configs;
using BenchmarkDotNet.Extensions;
using BenchmarkDotNet.Jobs;
using BenchmarkDotNet.Loggers;
using BenchmarkDotNet.Reports;
using BenchmarkDotNet.Running;
fileVersion: '3'
circuits:
- owner: 94cb88bc-42fd-460b-a267-4342eb644ac3
world: world
delay: 0
receiver:
- delay: 0
location_z: 264
location_x: 76
location_world: world