Skip to content

Instantly share code, notes, and snippets.

View halkeye's full-sized avatar

Gavin Mogan halkeye

View GitHub Profile
# https://github.com/lycheeverse/lychee
# https://lychee.cli.rs/#/usage/config
# Comma-separated list of accepted status codes for valid links.
accept = [200, 429, 403]
# Exclude URLs and mail addresses from checking (supports regex).
exclude = [
# google tag manager is good, and rejects bots
'https://www\.googletagmanager\.com/',
# parses strings such as: 07-31 09:56:08
DATESTAMP_CP [0-9]{2}-[0-9]{2} %{TIME}
# parses strings such as: '\u001b\[0m' or '^[[0m' or '\e[0m'
METACHAR_CP ((\\u001b|\^\[|\e)\[\d+m)?
# assigns regular expression that matches Java classes to a new variable name.
FACILITY_CP %{JAVACLASS}
@halkeye
halkeye / sorted_json.rb
Created April 2, 2012 23:13
Puppet module for outputting json in a sorted consistent way
#
# sorted_json.rb
# Puppet module for outputting json in a sorted consistent way. I use it for creating config files with puppet
require 'json'
def sorted_json(json)
if (json.kind_of? String)
return json.to_json
elsif (json.kind_of? Array)
@halkeye
halkeye / cloudSettings
Last active August 28, 2020 23:40
Work vscode
{"lastUpload":"2020-08-28T23:40:10.446Z","extensionVersion":"v3.4.3"}

As some of you might have noticed, there's been a lot of work done on the plugin site over the last year to upgrade it and get it much more usable for people. As such I wanted to give it a nudge to get people to take a look at it again, and provide feedback.

  • Redirecting from wiki to plugin site.
    • We did a mass import, and now watching logs over the last few months to catch any we've missed.
    • If you notice any google links that are not redirecting, please make an infra ticket with the plugin component
  • Speed
    • We've switched techs to move the system that was very sluggish to something that gets pretty good performance scores
    • We've also moved plugins.jenkins.io and www.jenkins.io to a cdn so things should stay fast wherever you are.
  • Release notes
/* eslint-disable no-console */
const axios = require('axios');
const escapeStringRegexp = require('escape-string-regexp');
const {parse:parseUrl} = require('url');
const requestGET = (url) => {
return axios
.get(url)
.then((results) => {
if (results.status !== 200) {
# Type queries into this side of the screen, and you will
# see intelligent typeaheads aware of the current GraphQL type schema,
# live syntax, and validation errors highlighted within the text.
# We'll get you started with a simple query showing your username!
query {
git_plugin: repository(owner: "jenkinsci", name: "git-plugin") {
object(expression: "master:README.adoc") {
... on Blob {
text
work
/rebel.xml
# Node
node/
node_modules/
# Generated JavaScript Bundles
jsbundles

grabbing all the items in columns in a project

# Type queries into this side of the screen, and you will 
# see intelligent typeaheads aware of the current GraphQL type schema, 
# live syntax, and validation errors highlighted within the text.

# We'll get you started with a simple query showing your username!
query { 
  viewer { 
    login
@halkeye
halkeye / mixed-content.txt
Last active January 10, 2020 07:55
mixed-content.txt
9:15:05 PM: Mixed content detected in: /chatwork/index.html
9:15:05 PM: --> insecure img urls:
9:15:05 PM: - http://sebastian-badge.info/plugins/chatwork.svg
9:15:25 PM: Mixed content detected in: /curseforge-publisher/index.html
9:15:25 PM: --> insecure img urls:
9:15:25 PM: - http://i.imgur.com/w9QAfnn.png
9:15:29 PM: Mixed content detected in: /debian-pbuilder/index.html
9:15:29 PM: --> insecure img urls:
9:15:29 PM: - http://jenkins.rm5248.com/buildStatus/icon?job=debian-pbuilder
9:15:48 PM: Mixed content detected in: /ez-templates/index.html