Skip to content

Instantly share code, notes, and snippets.

Jan Killian iki

Block or report user

Report or block iki

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 .gitignore
# Format: https://git-scm.com/docs/gitignore#_pattern_format
*.json
*.yaml
.DS_Store
*.log
*.log.*
/.*/
@iki
iki / docker-compose.yml
Created Sep 15, 2019
Docker-compose nginx CORS proxy
View docker-compose.yml
version: '3.7'
services:
whoami:
image: jwilder/whoami
ports:
- 127.0.0.1:7000:8000
cors:
@iki
iki / Dockerfile
Last active Nov 19, 2018
Test volume mount in docker
View Dockerfile
FROM alpine
WORKDIR /data
COPY . .
CMD ls -l /data
@iki
iki / .gitignore
Last active Jun 25, 2018
Example of using GraphQL API from Micropython with ported Prisma python-graphql-client
View .gitignore
# See https://help.github.com/ignore-files/ for more about ignoring files.
# logs
*.log*
# tools settings and other hidden directories
/.*/
View Medium: remove location hash.user.js
// ==UserScript==
// @name Medium: remove location hash
// @namespace http://efcl.info/
// @description Remove location hash from medium
// @include https://medium.com/*
// @include https://uxdesign.cc/*
// @version 1
// @grant none
// ==/UserScript==
@iki
iki / vc.bat
Last active Nov 19, 2015
Visual Studio 10/11/14 environment setup for python, or node.js/node-gyp. Determines VS version and architecture, calls respective vcVarsAll.bat and sets vcTargetsPath if needed.
View vc.bat
@echo off
setlocal enableextensions
::: echo === "%~f0" %* >&2
set vcArgs=%*
set vcVersions=14 11 10
call :poparg vcArgs vcVersions 10 10 %1 && shift
call :poparg vcArgs vcVersions 11 11 %1 && shift
@iki
iki / gulpfile.js
Last active Jan 18, 2019
generating API documentation from RAML specification using raml2html in gulp
View gulpfile.js
'use strict';
var gulp = require('gulp');
var path = require('path');
var CWD = path.resolve('.');
var API_SPEC = path.resolve(CWD, '../api/api.raml');
var API_DEST = path.resolve(CWD, '../server/static/docs/api');
var API_HTML = 'index.html';
@iki
iki / README.md
Last active Jul 18, 2018 — forked from othiym23/npm-upgrade-bleeding.sh
Update global top level npm packages
View README.md

Update global top level npm packages

Problem

npm update -g updates all global packages and their dependencies, see https://github.com/npm/npm/issues/6247.

Solution

  1. Either use the shell script or windows batch here instead.
View normalize-flow-tsv.py
#!/usr/bin/env python
from __future__ import print_function
import re
import os
import sys
import glob
LF = '\n'
View test-dict-ordering.coffee
fs = require 'fs'
log = console.log
dump = (obj) -> JSON.stringify obj, null, 2
keys = Object.keys
src = process.argv[2] or 'package.json'
log src
pkg = JSON.parse fs.readFileSync src
log 'JSON: ' + dump pkg
You can’t perform that action at this time.