Skip to content

Instantly share code, notes, and snippets.

View kernel-memory-dump's full-sized avatar
💼
Software Architecture is Love, Software Architecture is Life

Sebastian Novak kernel-memory-dump

💼
Software Architecture is Love, Software Architecture is Life
View GitHub Profile
OArguments arguments = new OArguments();
arguments.add(Arrays.asList(1));
JSONObject argsJSON = new JSONObject();
JSONObject kwargs = new JSONObject();
JSONObject context = new JSONObject();
try {
argsJSON.put("kwargs", kwargs);
@kernel-memory-dump
kernel-memory-dump / JwtMiddlewareCORE.cs
Last active December 3, 2018 15:57
JWT middleware CORE
// https://stackoverflow.com/questions/52928670/jwt-role-authentication-in-controller-asp-net-core-2-1
// MIDDLEWARE CODE
// MIDDLEWARE CODE
public class AuthenticationMiddleware
{
private readonly RequestDelegate _next;
// Dependency Injection
public AuthenticationMiddleware(RequestDelegate next)
@kernel-memory-dump
kernel-memory-dump / introrx.md
Created January 21, 2019 08:02 — forked from staltz/introrx.md
The introduction to Reactive Programming you've been missing
@kernel-memory-dump
kernel-memory-dump / import_json_appsscript.js
Created April 2, 2019 07:45 — forked from chrislkeller/import_json_appsscript.js
Adds what amounts to an =ImportJSON() function to a Google spreadsheet... To use go to Tools --> Script Editor and add the script and save.
/**
* Retrieves all the rows in the active spreadsheet that contain data and logs the
* values for each row.
* For more information on using the Spreadsheet API, see
* https://developers.google.com/apps-script/service_spreadsheet
*/
function readRows() {
var sheet = SpreadsheetApp.getActiveSheet();
var rows = sheet.getDataRange();
var numRows = rows.getNumRows();
@kernel-memory-dump
kernel-memory-dump / RXJSAngular7.ts
Last active April 11, 2019 11:32
RX JS Angular7.ts
// see https://alligator.io/angular/takeuntil-rxjs-unsubscribe/
// UsersModule ==========================================================================
{
path: 'users',
component: UsersComponent,
resolve: {
@kernel-memory-dump
kernel-memory-dump / devAppend.js
Last active February 26, 2020 16:46
devAppend.js
setTimeout(async () => {
sync('./topkek.txt', "kek");
});
function sync(path, data) {
const fs = require('fs');
options = {
encoding: 'utf8',
mode: 438 /*=0666*/
};
@kernel-memory-dump
kernel-memory-dump / cdk-asg-userdata.ts
Created June 8, 2020 16:45 — forked from darko-mesaros/cdk-asg-userdata.ts
AWS CDK - Launch an EC2 Autoscaling Group with userdata read of disk
// VPC
const vpc = new ec2.Vpc(this, 'VPC');
// Security group
const webSg = new ec2.SecurityGroup(this, 'WebSG',{
vpc: vpc,
allowAllOutbound: true,
description: "Web Server Security Group"
});
webSg.addIngressRule(ec2.Peer.anyIpv4(), ec2.Port.tcp(8080), 'Web from anywhere')
; BOOTSEC signature bruh
bits 16
org 0x7C00
start:
jmp entry
printmsg db "TOP KEK",13,10,0

What Hiring Should Look Like

This is definitely not the first time I've written about this topic, but I haven't written formally about it in quite awhile. So I want to revisit why I think technical-position interviewing is so poorly designed, and lay out what I think would be a better process.

I'm just one guy, with a bunch of strong opinions and a bunch of flaws. So take these suggestions with a grain of salt. I'm sure there's a lot of talented, passionate folks with other thoughts, and some are probably a lot more interesting and useful than my own.

But at the same time, I hope you'll set aside the assumptions and status quo of how interviewing is always done. Just because you were hired a certain way, and even if you liked it, doesn't mean that it's a good interview process to repeat.

If you're happy with the way technical interviewing currently works at your company, fine. Just stop, don't read any further. I'm not going to spend any effort trying to convince you otherwise.

@kernel-memory-dump
kernel-memory-dump / .eslintrc.js
Created September 16, 2020 15:35 — forked from nkbt/.eslintrc.js
Strict ESLint config for React, ES6 (based on Airbnb Code style)
{
"env": {
"browser": true,
"node": true,
"es6": true
},
"plugins": ["react"],
"ecmaFeatures": {