Skip to content

Instantly share code, notes, and snippets.

View jurby's full-sized avatar

Jaroslav Urbánek jurby

View GitHub Profile
{
"Logging": {
"LogLevel": {
"Default": "Debug",
"System": "Information",
"Microsoft": "Information"
},
"Console": {
"IncludeScopes": true,
"LogLevel": {
@jurby
jurby / gatsby_performance_build_script.sh
Created June 29, 2018 14:47 — forked from calcsam/gatsby_performance_build_script.sh
Build script used for Gatsby performance benchmarking
export GITHUB_USER=freeCodeCamp
export REPO=guide
export COMMIT_HASH=6f35bcd61103545136a3ed130124da9822b761ed
#export GITHUB_USER=calcsam
#export REPO=gatsby-image-performance-benchmarking
#export COMMIT_HASH=d2d358ed54ade68c057333666777fd56bef5ebf2
#export COMMIT_HASH=f05103a1c3e0b25ea4beafd63b6df72953d657b2
sudo -E su
@jurby
jurby / background.js
Created August 30, 2017 11:09 — forked from delfrrr/background.js
react-native requestAnimationFrame and d3-interpolate
//this is an example of background animation from my weather comparsion app
//you can get early build of app at http://zowni.com
//full source of background.js below
const React = require('react');
const Svg = React.createFactory(require('react-native-svg').Svg);
const {interpolate} = require('d3-interpolate');
//...
/**
#r "Newtonsoft.Json"
#r "System.Configuration"
#r "Microsoft.IdentityModel.Clients.ActiveDirectory.dll"
using System.Net;
using System.Configuration;
using System.Security.Claims;
using System.Net.Http.Headers;
using Newtonsoft.Json;
using Microsoft.IdentityModel.Clients.ActiveDirectory;
@jurby
jurby / .gitignore
Created September 21, 2016 15:40 — forked from karmi/.gitignore
Example Nginx configurations for Elasticsearch
nginx/
!nginx/.gitkeep
!nginx/logs/.gitkeep
src/
tmp/
@jurby
jurby / Docker Compose + NATS example
Created September 13, 2016 12:14 — forked from wallyqs/Docker Compose + NATS example
NATS Docker blog post/HTTP Server
FROM golang:1.6.2
COPY . /go
RUN go get github.com/nats-io/nats
RUN go build api-server.go
EXPOSE 8080
ENTRYPOINT ["/go/api-server"]

Keybase proof

I hereby claim:

  • I am jurby on github.
  • I am jurby (https://keybase.io/jurby) on keybase.
  • I have a public key ASDYYvXpFAaMWzLvNZxgCClfYjWfQyyYlrwOTj3Ngswa0go

To claim this, I am signing this object:

@jurby
jurby / pbkdf2.c
Created March 1, 2016 13:48 — forked from bdd/pbkdf2.c
Generate a key from a passpharse w/ PBKDF2
/*
* Copyright (c) 2011 Berk D. Demir <[email protected]>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
@jurby
jurby / ssh.cs
Created March 1, 2016 13:13 — forked from 0xF1o/ssh.cs
ssh.net Example - Keybased Authentication, File Upload, Shell Commands
/*
get SSH.NET (BSD License: http://sshnet.codeplex.com/license)
with NuGet:
>Install-Package SSH.NET -Version 2013.4.7
or just get the dll from here: http://j.mp/sshNet
*/
using System;
public RetailStreamHandler(IDocumentRepository<ShoppingCart> cartRepository)
{
_cartRepository = cartRepository;
Get["/cart"] = x => GetListing();
Post["/cart"] = x => PostNewShoppingCart(Request.Body.FromJson<ShoppingCartForm>());
Get["/cart/{id}"] = x => GetById(x.id);
}
[RequiresAuthentication]
public virtual Response PostNewShippingCart(ShoppingCartForm form)