Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@mjaric
mjaric / dum_table_schema.sql
Created March 11, 2020 13:41
Minimalistic MSSQL table schema dump script
/*
TABLE OPTIONS
This options should be used for :
- FileTable
- Partitioning and Filegroups
- WITH options
- TEXTIMAGE_ON
- FILESTREAM_ON
*/
@mjaric
mjaric / Setting-up-Windows-WSL.md
Created September 19, 2019 08:18 — forked from roustem/Setting-up-Windows-WSL1.md
Setting-up-Windows-WSL
@mjaric
mjaric / ring_facade.ex
Last active October 13, 2018 13:30
Ring facade for extreme_system apps
defmodule RingFacade do
@moduledoc """
A hash ring facade calulates to which node and facade in ring command will be sent.
## Example
iex> params = %{"id" => 1, "first_name" => "Foo", "last_name" => "Baz", "email" => "foo.baz@example.com"}
iex> RingFacade.call(:create_user, params, routing_key: 1, timout: 5_000)
{:ok, :created}
"""
@mjaric
mjaric / gist:6387129
Created August 30, 2013 07:23
Revert Scrolling direction for pointer device in Windows 8 (Handy if you get used to Mac OS X )
Get-ItemProperty HKLM:\SYSTEM\CurrentControlSet\Enum\HID\*\*\Device` Parameters FlipFlopWheel -EA 0 | ForEach-Object { Set-ItemProperty $_.PSPath FlipFlopWheel 1 }
<!DOCTYPE html>
<meta charset=utf-8>
<meta name=viewport content="width=device-width, initial-scale=1, maximum-scale=1">
<meta name=apple-mobile-web-app-capable content=yes>
<meta name=apple-mobile-web-app-status-bar-style content=black>
<title>Test fullscreen</title>
<style>
html, body {
margin: 0;
padding: 0;