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
  • 20:08 (UTC +02:00)
View GitHub Profile
@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 / 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
<?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>
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;
@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: [email protected]
# 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
#