Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Max Barrass wildone

🎯
Focusing
View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am wildone on github.
  • I am maxbarrass (https://keybase.io/maxbarrass) on keybase.
  • I have a public key ASAxoYdiRTDAhfH75sFZNU80hJLVWrMrDkqzCcXGxIhImQo

To claim this, I am signing this object:

@wildone
wildone / solr-filter.conf
Created Aug 13, 2018 — forked from sebnmuller/solr-filter.conf
Logstash config for ingesting Solr logs
View solr-filter.conf
input {
file {
path => "/Users/sebastienmuller/comperio/projects/sintef/tmp/logs/indexing_logs_2/solr.log.3"
start_position => "beginning"
sincedb_path => "/dev/null"
}
}
filter {
# Extract event severity and timestamp
@wildone
wildone / fix_virtualenv
Created Jan 18, 2018 — forked from ttimasdf/fix_virtualenv
Fix python virtualenv after python update, forked version for choice of python executable
View fix_virtualenv
#!/usr/bin/env bash
ENV_PATH="$(dirname "$(dirname "$(which pip)")")"
SYSTEM_VIRTUALENV="$(which -a virtualenv|tail -1)"
echo "Ensure the root of current virtualenv:"
echo " $ENV_PATH"
read -p "‼️ Say no if you are not sure (y/N) " -n 1 -r
echo
PYEXC_DEF="$(sed -n '1s/^#!//p' $SYSTEM_VIRTUALENV)"
read -p "🐍 Choose which python to use? [$PYEXC_DEF] " PYEXC
@wildone
wildone / unclosedTagFinder.txt
Created Jul 26, 2017
HTML Unclosed Tag Finder
View unclosedTagFinder.txt
<!--demo: http://jona.ca/blog/unclosed-tag-finder/ -->
<!--source: http://jonathanaquino.com/unclosedTagFinder.txt -->
<textarea id="unclosed-tag-finder-input" style="width:100%;height:300px">
</textarea>
<div><input type="button" id="unclosed-tag-finder-button" value="Submit" ></input></div>
<br />
<h3>Results</h3>
<pre id="unclosed-tag-finder-results">
</pre>
View designer.html
<link rel="import" href="../topeka-elements/theme.html">
<link rel="import" href="../topeka-elements/topeka-resources.html">
<link rel="import" href="../topeka-elements/topeka-app.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
View .extra
# Git credentials
GIT_AUTHOR_NAME="Max Barrass"
GIT_COMMITTER_NAME="$GIT_AUTHOR_NAME"
git config --global user.name "$GIT_AUTHOR_NAME"
GIT_AUTHOR_EMAIL="max.barrass@gmail.com"
GIT_COMMITTER_EMAIL="$GIT_AUTHOR_EMAIL"
git config --global user.email "$GIT_AUTHOR_EMAIL"
# Pip should only run if there is a virtualenv currently activated
export PIP_REQUIRE_VIRTUALENV=true
@wildone
wildone / convoy
Created Jan 24, 2016 — forked from colebrumley/convoy
Convoy init.d script
View convoy
#!/bin/sh
set -e
### BEGIN INIT INFO
# Provides: convoy
# Required-Start: $syslog $remote_fs
# Required-Stop: $syslog $remote_fs
# Should-Start: cgroupfs-mount cgroup-lite
# Should-Stop: cgroupfs-mount cgroup-lite
# Default-Start: 2 3 4 5
@wildone
wildone / nginx.conf
Created Nov 25, 2015 — forked from plentz/nginx.conf
Best nginx configuration for improved security(and performance). Complete blog post here http://tautt.com/best-nginx-configuration-for-security/
View nginx.conf
# to generate your dhparam.pem file, run in the terminal
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048
View cq_trigger_blobgc.sh
#!/bin/bash
# Bash script to trigger AEM 6.0 Blob GC using curl via JMX
# Author : Jayan Kandathil
# Version : 0.1
# Last updated : May 14, 2015
# Instructions : Copy to CQ/AEM Linux instance's /tmp folder, make necessary changes, enable the execute bit and run
View aem_repo_check.sh
#!/bin/bash
# Bash script to run AEM 6.0 and 6.1 Repository Check
# Author : Jayan Kandathil
# Version : 0.1
# Last updated : July 6, 2015
# Instructions : Copy to CQ's /bin folder, make necessary changes, enable the execute bit and run