Skip to content

Instantly share code, notes, and snippets.

Kevin Krummenauer kekru

Block or report user

Report or block kekru

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@thaJeztah
thaJeztah / README.md
Last active Aug 20, 2019
Docker Changelog CLI plugin
View README.md
View Invoke-Hyper.ps1
param([String]$hyperProfile = 'default')
if ( Test-Path $env:USERPROFILE\.hyper.js ) { Remove-Item $env:USERPROFILE\.hyper.js }
& cmd.exe "/c mklink $env:USERPROFILE\.hyper.js $env:USERPROFILE\.hyper\launch\$hyperProfile.hyper.js" *> $null
& hyper *> $null
@thaJeztah
thaJeztah / README.md
Last active Sep 8, 2019
Docker Compose as a Docker CLI plugin
View README.md
@dettmering
dettmering / ping.1m.py
Created Jan 30, 2019
BitBar plugin for showing host availability
View ping.1m.py
#!/usr/local/bin/python3
import os
hosts = [
'google.com',
'microsoft.com'
]
header = []
@MetalArend
MetalArend / swarm.yml
Last active Oct 8, 2019
Run a GitLab Runner on your Swarm
View swarm.yml
version: '3.4'
secrets:
# Find your registration token at: "Your project" > "Settings" > "CI/CD" > "Runners settings" > "Specific Runners" (look for registration token)
# Register it as `GITLAB_REGISTRATION_TOKEN`: `docker secret create GITLAB_REGISTRATION_TOKEN YOUR_REGISTRATION_TOKEN`
GITLAB_REGISTRATION_TOKEN:
external: true
# Find your personal access token at: "Your user account" > "Settings" > "Access Tokens" > "Create personal access token" (for api)
# Register it as `GITLAB_PERSONAL_ACCESS_TOKEN`: `docker secret create GITLAB_PERSONAL_ACCESS_TOKEN <YOUR ACCESS TOKEN>`
View hyperstart.bat
@ECHO off
:top
CLS
ECHO Choose a shell:
ECHO [1] cmd
ECHO [2] bash
ECHO [3] PowerShell
ECHO [4] Python
ECHO.
ECHO [5] restart elevated
@Tiberriver256
Tiberriver256 / PowerShellNTFSStaticFileServer.ps1
Last active Nov 14, 2019
This script starts a small web server listening on localhost:8080 that will impersonate the authenticated user and serve static content. This means if they do not have NTFS permissions to the file they will get an access denied or a 404 file not found if they do not have NTFS access to list contents of the directory.
View PowerShellNTFSStaticFileServer.ps1
function Get-DirectoryContent {
<#
.SYNOPSIS
Function to get directory content
.EXAMPLE
Get-DirectoryContent -Path "C:\" -HeaderName "poshserver.net" -RequestURL "http://poshserver.net" -SubfolderName "/"
@iffy
iffy / .gitignore
Last active Nov 10, 2019
Example using electron-updater with `generic` provider.
View .gitignore
node_modules
dist/
yarn.lock
wwwroot
@bendisposto
bendisposto / core.clj
Created Mar 16, 2017
REPL Session - Generative Testing, Softwerkskammer Ruhr, 15.3.2017
View core.clj
(ns bsp.core
(:require [clojure.repl :refer :all]
[clojure.spec :as spec]
[clojure.test.check :refer [quick-check]]
[clojure.test.check.generators :as gen]
[clojure.test.check.properties :refer [for-all]]
[clojure.test :refer [is are run-tests deftest]]))
(defn ultrasort [coll] (seq (into (sorted-set) coll)))
@razbomi
razbomi / gulpfile.js
Created Nov 16, 2016
Gulp pipe function
View gulpfile.js
'use strict';
var gulp = require('gulp');
var through = require('through2');
// https://gulp.readme.io/docs
gulp.task('default', () => {
gulp.src('src/**/*')
.pipe(pipeFunction())
.pipe(gulp.dest('dist'))
You can’t perform that action at this time.