Skip to content

Instantly share code, notes, and snippets.

@mnjstwins
mnjstwins / InstallSqlForDev.ps1
Created October 3, 2017 19:08 — forked from LeeCampbell/InstallSqlForDev.ps1
Install SQL 2016 Dev command line (Powershell)
#Installs SQL Server locally with standard settings for Developers/Testers.
# Install SQL from command line help - https://msdn.microsoft.com/en-us/library/ms144259.aspx
$sw = [Diagnostics.Stopwatch]::StartNew()
$currentUserName = [System.Security.Principal.WindowsIdentity]::GetCurrent().Name;
$SqlServerIsoImagePath = "???\Downloads\Microsoft\SQL Server 2016 Developer Edition\en_sql_server_2016_developer_x64_dvd_8777069.iso"
#Mount the installation media, and change to the mounted Drive.
$mountVolume = Mount-DiskImage -ImagePath $SqlServerIsoImagePath -PassThru
$driveLetter = ($mountVolume | Get-Volume).DriveLetter
$drivePath = $driveLetter + ":"
@mnjstwins
mnjstwins / redis_cheatsheet.bash
Created September 1, 2017 13:36 — forked from LeCoupa/redis_cheatsheet.bash
Redis Cheatsheet - Basic Commands You Must Know
# Redis Cheatsheet
# All the commands you need to know
redis-server /path/redis.conf # start redis with the related configuration file
redis-cli # opens a redis prompt
# Strings.
@mnjstwins
mnjstwins / Angular2DotNetCoreResources.md
Created August 29, 2017 12:43 — forked from jerkovicl/Angular2DotNetCoreResources.md
Angular 2 and .NET Core resources and tutorials
@mnjstwins
mnjstwins / PlayVideoUnity56beta.cs
Created August 28, 2017 17:59 — forked from demonixis/PlayVideoUnity56beta.cs
Playing a video with the new VideoPlayer component with Unity 5.6 beta.
public class VideoManager : MonoBehaviour
{
[SerializeField]
private RenderTexture _renderTexture = null;
[SerializeField]
private VideoClip _videoClip = null;
private IEnumerator Start()
{
Application.runInBackground = true;
s ^%oddENV("callererrorinfo")=1 ; record caller location
s ^%oddENV("callererrorinfo")=2 ; record caller stack
s ^%oddENV("callererrorinfo")=3 ; record caller ^%ETN
Do $SYSTEM.OBJ.DisplayError()
@mnjstwins
mnjstwins / _readme.md
Created February 15, 2017 17:43 — forked from maxivak/_readme.md
Vagrant with Ubuntu 16.04 in VirtualBox

Setup Ubuntu 16.04 to be used with Vagrant and Virtualbox

Prepare Vagrant box with Ubuntu 16.04

We will use official box "ubuntu/xenial64" and modify it to work with Vagrant.

  • Vagrantfile
@mnjstwins
mnjstwins / ResultSetConvertor.java
Created January 9, 2017 17:47 — forked from azakordonets/ResultSetConvertor.java
This class is designed to convert ResultSet data taken as a result of Db query into JSON. Also additional coverter methods are available
import org.json.JSONArray;
import org.json.JSONObject;
import java.sql.ResultSet;
import java.text.DecimalFormat;
import java.text.DecimalFormatSymbols;
import java.util.Locale;
/**
* Utility for converting ResultSets into some Output formats
ftp://ftp.intron.ac/
ftp://ftp.ox.ac/
ftp://ftp.robelle3000.ai/
ftp://ftp.linux.org.ar/
ftp://ftp.secyt.gov.ar/
ftp://eclipt.uni-klu.ac.at/
ftp://ftp.ad.or.at/
ftp://ftp.adis.at/
ftp://ftp.ai.univie.ac.at/
ftp://ftp.cg.tuwien.ac.at/
@mnjstwins
mnjstwins / StudioRoutines.xml
Created December 9, 2016 18:36 — forked from daimor/StudioRoutines.xml
Caché JavaScript Routine
<?xml version="1.0" encoding="UTF-8"?>
<Export generator="Cache" version="25" zv="Cache for UNIX (SUSE Linux Enterprise Server for x86-64) 2014.1 (Build 608U)" ts="2014-05-19 00:22:31">
<Class name="%CJS.RoutineWizard">
<Description><![CDATA[
Studio Template:<br>
Create a new Cache JavaScript Routine.]]></Description>
<StorageStrategy/>
<Super>%ZEN.Template.studioTemplate</Super>
<TimeChanged>63325,86382.045933</TimeChanged>
<TimeCreated>63325,65834.566957</TimeCreated>
@mnjstwins
mnjstwins / ewd3_cache.md
Created December 9, 2016 18:36 — forked from shabiel/ewd3_cache.md
Getting Started with EWD 3

EWD 3 on Cache/Windows

Documentation in Public Domain. No copyright claimed.

I am doing this on Cache/Windows with MinGW.

Everytime I say "test", you need to do a full sanity test. It will be obvious when things don't work.

First need to install Cache and Node.js. Make sure your Cachexxxx.node version and your node.js version are the same.

EWD Xpress Install

Reference: https://groups.google.com/d/msg/enterprise-web-developer-community/Wth-hLoAOpI/j8XyXog-BAAJ