🏳️🌈
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name AWS SSO Login | |
// @namespace lwille.xyz | |
// @match https://device.sso.eu-central-1.amazonaws.com/* | |
// @match https://*.awsapps.com/start/* | |
// @grant window.close | |
// @version 1.0 | |
// @author Leonhardt Wille <[email protected]> | |
// @description Click required buttons to make AWS SSO dance a bit smoother | |
// ==/UserScript== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
""" | |
Copyright 2023 Leonhardt Wille / The Jodel Venture GmbH. | |
Licensed under the Apache License, Version 2.0 (the "License"); | |
you may not use this file except in compliance with the License. | |
You may obtain a copy of the License at | |
http://www.apache.org/licenses/LICENSE-2.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import hudson.model.* | |
import jenkins.model.* | |
import jenkins.security.* | |
import jenkins.security.apitoken.* | |
def user = User.get("jane-doe", false) | |
def prop = user.getProperty(ApiTokenProperty.class) | |
def forceRecreate = false | |
if(!prop || forceRecreate) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import com.cloudbees.hudson.plugins.folder.Folder | |
import groovy.transform.Field | |
import hudson.model.* | |
import org.jenkinsci.plugins.workflow.job.WorkflowJob | |
@Field def fmt = "%-40s | %-10s | %-20s | %-20s | %-10s\n" | |
printf(fmt, "job", "branch", "queue time/status", "label", "last build") | |
printf(fmt, '-' * 40, '-' * 10, '-' * 20, '-' * 20, '-' * 10) | |
enableBuilds(Hudson.instance.items, 'INFRA-925', false) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Prerequisites: | |
# - `/bin/bash` and `shasum` available in pod | |
function wait_k8sync() { | |
local pod=$1 | |
local file_local=$2 | |
local file_remote=$3 |
I hereby claim:
- I am lwille on github.
- I am lwille (https://keybase.io/lwille) on keybase.
- I have a public key ASB44SRQ25uZN-2kWzloH0OxPqj3TZVUisJH2lhWuJ11ogo
To claim this, I am signing this object:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
number = '9132456781'.split(''); | |
validation = number.pop(); | |
var n = 11, | |
m = 10, | |
product = m, | |
sum = 0; | |
console.log("StIdNr: %s, validation: %s", number.join(''),validation); | |
for (var i in number) { | |
var c = parseInt(number[i], m); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import os, sys | |
try: | |
import boto.s3 | |
from boto.s3.key import Key | |
Key.change_storage_class | |
except ImportError, e: | |
sys.stderr.write('Package boto (svn rev. >= 1595) must be installed.\n') | |
sys.exit(1) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Meteor.autosubscribe -> | |
Meteor.call 'getItemCount', Session.get('currentCustomer'), (err, count)-> | |
Session.set 'itemCount', count |
NewerOlder