Skip to content

Instantly share code, notes, and snippets.

Kamil Burzynski Nopik

Block or report user

Report or block Nopik

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
@Nopik
Nopik / main.c
Created Sep 26, 2018
nRF52840 crash
View main.c
/**
* Copyright (c) 2017 - 2018, Nordic Semiconductor ASA
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this
* list of conditions and the following disclaimer.
@Nopik
Nopik / main.c
Created Sep 13, 2018
nRF52840 crash on FreeRTOS
View main.c
/**
* Copyright (c) 2017 - 2018, Nordic Semiconductor ASA
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this
* list of conditions and the following disclaimer.
@Nopik
Nopik / convert.sh
Last active Dec 21, 2015
awsm.json to s-function.json
View convert.sh
#!/bin/bash
# Name of your lambda
FN=foo
# Absolute path to some s-function file which will be used as template
TEMPLATE=/absolute/path/to/some/s-function.json
jq ".[0].functions.$FN.handler=(.[1].lambda.cloudFormation.Handler | sub(\"aws_\";\"\"))|.[0].functions.$FN.timeout=.[1].lambda.cloudFormation.Timeout|.[0].functions.$FN.memorySize=.[1].lambda.cloudFormation.MemorySize|.[0].functions.$FN.endpoints[0].path=.[1].apiGateway.cloudFormation.Path|.[0].functions.$FN.endpoints[0].method=.[1].apiGateway.cloudFormation.Method|.[0].functions.$FN.endpoints[0].requestParameters=.[1].apiGateway.cloudFormation.RequestParameters|.[0].functions.$FN.endpoints[0].requestTemplates=.[1].apiGateway.cloudFormation.RequestTemplates|.[0].functions.$FN.endpoints[0].responses=.[1].apiGateway.cloudFormation.Responses|.[0]" --slurp $TEMPLATE awsm.json >s-function.json
git add s-function.json
View gist:0f8a1ee019bd1f000d00
17201 13:26:57 NopiMac ~/Documents/Projects/puzzle/bosh/goldglory$ bosh validate jobs
Processing deployment manifest
------------------------------
Getting deployment properties from director...
Compiling deployment manifest...
Analyzing release directory...
- discovering packages
- discovering jobs
View keybase.md

Keybase proof

I hereby claim:

  • I am Nopik on github.
  • I am nopik (https://keybase.io/nopik) on keybase.
  • I have a public key whose fingerprint is 311B 8E7D 9B37 8ED9 E0F5 FB12 6862 B4E9 3F34 A821

To claim this, I am signing this object:

@Nopik
Nopik / example.coffee
Created Jan 23, 2014
Ember patterns for custom models
View example.coffee
#having Foo object, get some item:
item = foo.get( 'items' ).getBy( 'name', 'item1' )
#Feed this item to the view.
#if item is not loaded yet, is has isLoaded = false,
#so you can easily {{#if item.isLoaded}} {{item.name}} {{else}} Please wait, loading {{/if}} in your view
#you can load the item later on. Once deserialize will be called on foo, it will take care to fill in the item1 properties
View restler.js
This program (using restler 2.0.1):
restler = require( 'restler' );
r1 = restler.get( 'http://localhost:90/undefined-1', {} )
r1.on( 'error', function(){ console.log( "R1 Error" ); } )
r1.on( 'complete', function(){ console.log( "R1 Complete" ); } )
r2 = restler.get( 'http://localhost:90/undefined-2', {} )
r2.on( 'error', function(){ console.log( "R2 Error" ); } )
View ember-20130115.js
// Version: v1.0.0-pre.2-397-gd269fa3
// Last commit: d269fa3 (2013-01-14 21:31:22 -0800)
(function() {
/*global __fail__*/
/**
Ember Debug
View gist:4484175
In controller:
App.DashboardController = Ember.Controller.extend
workspaces: []
currentWorkspace: null //set by /workspace/:id route
fetch: ->
//ajax load workspaces
View gist:3955662
input {
file {
path => "/Users/nopik/Warsztat/logstash/redis.log"
type => "r"
start_position=>"beginning"
}
}
filter {
grok {
You can’t perform that action at this time.