Skip to content

Instantly share code, notes, and snippets.

View mattwelke's full-sized avatar

Matt Welke mattwelke

View GitHub Profile
Started GET "/users" for 173.230.169.16 at 2017-03-01 02:54:26 +0000
Cannot render console from 173.230.169.16! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255
Processing by UsersController#index as HTML
Rendering users/index.html.erb within layouts/application
Rendered users/index.html.erb within layouts/application (2.0ms)
Completed 200 OK in 17ms (Views: 16.0ms)
Started GET "/users" for 173.230.169.16 at 2017-03-01 02:54:26 +0000
Cannot render console from 173.230.169.16! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255
@mattwelke
mattwelke / httpSerialLoadTester.js
Created March 1, 2017 03:04
HTTP serial load tester
#!/usr/bin/nodejs
const axios = require('axios');
let count = 0;
const uri = process.argv[2];
console.log(`Starting with uri = ${uri}.`);
let timeBefore = undefined;
let timeAfter = undefined;
@mattwelke
mattwelke / ex.c
Last active June 8, 2017 18:47
sgsgsgsfgsfg
#include "stdio.h"
int main(void) {
// Without arrays
int x = 0;
int y = 0;
// Input
printf("Give me the 1st number: ");
@mattwelke
mattwelke / nginx.conf
Created February 14, 2018 22:21
NGINX Example: As wrapper around Ghost blog.
events {
worker_connections 1024;
}
http {
client_max_body_size 10m;
server {
listen 80;
listen 443 ssl;
Starting OmniSharp server at 2018-5-8 21:30:56
Target: /home/mwelke/MyAs
OmniSharp server started wth Mono
Path: /home/mwelke/.vscode/extensions/ms-vscode.csharp-1.14.0/.omnisharp/omnisharp/OmniSharp.exe
PID: 6048
[info]: OmniSharp.Stdio.Host
Starting OmniSharp on arch 0.0 (x64)
[warn]: OmniSharp.MSBuild.Discovery.Providers.MonoInstanceProvider
@mattwelke
mattwelke / sdoignuiosdbn.ts
Last active July 6, 2018 20:24
sdgasedgasegeg
class Parent {
private readonly _child: Child;
constructor() {
// Make a DataDog counter and wrap the child's functions
this._child = new Child();
const dataDogCounter = new DataDogCounter();
}
class Parent {
private readonly _child: Child;
constructor() {
// Make a DataDog counter and wrap the child's functions
this._child = new Child();
const dataDogCounter = new DataDogCounter();
}
├── CONTRIBUTING.md
├── LICENSE.txt
├── NOTICE.txt
├── README.md
├── build.gradle
├── core
│   ├── java8
│   │   ├── CHANGELOG.md
│   │   ├── Dockerfile
│   │   ├── build.gradle
public class Test {
public static void main(String[] args) {
System.out.println("Hello, world!");
}
}
@mattwelke
mattwelke / gist:8626ac5aee4e2fbfa2c6572594eba898
Created August 21, 2021 01:03
Javalin log message when query string param parsing fails
[qtp247944893-23] INFO io.javalin.Javalin - Parameter 'from' with value '123' is not a valid Instant
[qtp247944893-23] WARN io.javalin.Javalin -
-------------------------------------------------------------------
Missing dependency 'Jackson'. Add the dependency.
pom.xml:
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<version>2.12.3</version>