Skip to content

Instantly share code, notes, and snippets.

@neowulf
neowulf / GoSnippets.md
Created February 23, 2024 17:08
Go Snippets
go list -f '{{.Version}}' -m github.com/neowulf/reconciler-runtime@f061f6ddda88e6e08295bee7fb4d3559f52e2a98
go mod edit -replace github.com/vmware-labs/reconciler-runtime=github.com/neowulf/[email protected]
@neowulf
neowulf / script.sh
Last active May 19, 2025 16:31
Bash Template
#!/usr/bin/env bash
set -eou pipefail
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)"
PROJECT_DIR=$(git rev-parse --show-toplevel)
function task() {
}
### Keybase proof
I hereby claim:
* I am neowulf33 on github.
* I am neowulf33 (https://keybase.io/neowulf33) on keybase.
* I have a public key ASB0lUKbeBni3dPVVXzCBpHZUH1Wwk9S5c_LQQxftqRjMQo
To claim this, I am signing this object:
import functools
import sys
from collections import namedtuple
Memo = namedtuple('Memo', ['word', 'neighbors', 'visited'])
#sys.setrecursionlimit(10 * 1000 * 1)
#@functools.lru_cache()
def find_words(input, dictionary_set):
"""
@neowulf
neowulf / aws_operations
Last active April 8, 2017 00:53
Writes temp role credentials
Set of AWS commands
FROM ubuntu:16.04
MAINTAINER [email protected]
RUN apt-get update && apt-get install logrotate cron tree less wget systemd dbus
var http = require('http');
http.createServer(function(request, response) {
var headers = request.headers;
var method = request.method;
var url = request.url;
var body = [];
request.on('error', function(err) {
console.log(new Date().toString())
console.error(err);
#!/usr/bin/env node
var fs = require('fs')
, url = require('url');
if (process.argv.length < 3) {
console.log('Usage:\n', process.argv[1] + ' <postman collection JSON file>\n\n');
process.exit();
}
@neowulf
neowulf / readFile.js
Created January 31, 2014 22:35
NodeJS Scripts
#!/usr/bin/env node
"use strict";
var fs = require('fs');
var path = require('path');
var es_stats_file = path.resolve(__dirname, 'file.json');
console.log("Reading: " + es_stats_file);
@neowulf
neowulf / nginx.conf
Last active January 4, 2016 21:19
Riak Dev Script
# http://nginx.org/en/docs/dirindex.html
user nginx;
# http://stackoverflow.com/a/8217856/1216965
worker_processes 1;
error_log /var/log/nginx/error.log warn;
pid /var/run/nginx.pid;
events {