Skip to content

Instantly share code, notes, and snippets.

Matt Welke welkie

Block or report user

Report or block welkie

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View sdjkhfbsduifbuisdbuisd.ts
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();
}
@welkie
welkie / sdoignuiosdbn.ts
Last active Jul 6, 2018
sdgasedgasegeg
View sdoignuiosdbn.ts
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();
}
View gist:1ab978ff495124700fb8db64d0564364
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
@welkie
welkie / nginx.conf
Created Feb 14, 2018
NGINX Example: As wrapper around Ghost blog.
View nginx.conf
events {
worker_connections 1024;
}
http {
client_max_body_size 10m;
server {
listen 80;
listen 443 ssl;
View browsersync for ghost hbs and css
var gulp = require('gulp');
var browserSync = require('browser-sync').create();
// Static Server + watching css/html files
gulp.task('serve', ['css'], function() {
browserSync.init({
proxy: "http://localhost:2368"
});
@welkie
welkie / ex.c
Last active Jun 8, 2017
sgsgsgsfgsfg
View ex.c
#include "stdio.h"
int main(void) {
// Without arrays
int x = 0;
int y = 0;
// Input
printf("Give me the 1st number: ");
@welkie
welkie / httpSerialLoadTester.js
Created Mar 1, 2017
HTTP serial load tester
View httpSerialLoadTester.js
#!/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;
View gist:e200760852917c68cc9de650362618d3
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
@welkie
welkie / operations_controller.rb
Created Nov 22, 2016
Async Controller Actions in Ruby on Rails
View operations_controller.rb
# Full repo:
# https://gitlab.com/mwelke/rails-async-example
Future = Concurrent::Future
class OperationController < ApplicationController
def sync
ops = [1, 2, 3]
ops.each do |n|
You can’t perform that action at this time.