Skip to content

Instantly share code, notes, and snippets.

View configuration.nix
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running ‘nixos-help’).
{ config, pkgs, ... }:
{
imports =
[ # Include the results of the hardware scan.
./hardware-configuration.nix
View output.txt
Last login: Wed Aug 14 10:38:51 on ttys027
korCZis-452069:~ korczis$ cd dev
korCZis-452069:dev korczis$ cd tmp
korCZis-452069:tmp korczis$ git clone git@gitlab.skypicker.com:template-automation/nest-egg-be.git
fatal: destination path 'nest-egg-be' already exists and is not an empty directory.
korCZis-452069:tmp korczis$ rm -rf ./*
korCZis-452069:tmp korczis$ git clone git@gitlab.skypicker.com:template-automation/nest-egg-be.git
Cloning into 'nest-egg-be'...
remote: Enumerating objects: 1505, done.
remote: Counting objects: 100% (1505/1505), done.
View keybase.md

Keybase proof

I hereby claim:

  • I am korczis on github.
  • I am korczis (https://keybase.io/korczis) on keybase.
  • I have a public key ASAADjKlRI_2kW2kkTV4PWWYVEbsNdfPdUw-1S5PU3Ko7Ao

To claim this, I am signing this object:

View test.js
function add(a, b) {
return a + b
}
View gist:20561d3c49522eab2b689185b425e4ae
#!/bin/sh
# download
wget http://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-0.20.4.zip
# unzip and start
unzip elasticsearch-0.20.4.zip
cd elasticsearch-0.20.4
# remove data in case you have defined some analyzers in the past (e.g. stop/start)
rm -rf data/
View bit_arithmetic.rs
pub fn inode_get_project(inode: u64) -> u16 {
(inode >> 48) as u16
}
pub fn inode_get_category(inode: u64) -> u8 {
((inode >> 40) & 0xff) as u8
}
pub fn inode_get_item(inode: u64) -> u32 {
((inode >> 8) & 0xffffffff) as u32
@korczis
korczis / triangulate-topojson.js
Last active May 8, 2016
Triangulate Topojson ( => Geojson) using earcut.js
View triangulate-topojson.js
import earcut from 'earcut';
import topojson from 'topojson';
import math from 'mathjs';
const triangulateTopojson = (res) => {
const totalStart = performance.now();
const key = Object.keys(res.objects)[0];
let start = performance.now();
const geojson = topojson.mesh(res, res.objects[key]);
@korczis
korczis / deferred-compute.html
Created May 2, 2016
Example of Deferred Calculation
View deferred-compute.html
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.0/jquery.min.js"></script>
</head>
<body>
<h1>Deferred Calculation</h1>
<div id="results" style="background-color: #FF00FF"></div>
@korczis
korczis / README.md
Last active Jan 17, 2016
Card Trick - 673 King Street - Card Order
View mapoffacts.com.conf
# the IP(s) on which your node server is running. I chose port 8080.
upstream app_mapoffacts {
server 127.0.0.1:8080 weight=1 fail_timeout=60s;
}
# the nginx server instance
server {
listen 0.0.0.0:80;
server_name mapoffacts.com;
access_log /var/log/nginx/mapoffacts.com.log;