Skip to content

Instantly share code, notes, and snippets.

@mnjstwins
mnjstwins / TerraformCredentials.ps1
Created October 5, 2017 13:28 — forked from bobalob/TerraformCredentials.ps1
Set Environment Variables in PowerShell for Azure RM Terraform
#Set Environment Variables for Azure RM Terraform
$ENV:ARM_SUBSCRIPTION_ID = ""
$ENV:ARM_CLIENT_ID = ""
$ENV:ARM_CLIENT_SECRET = "" # This should end with an '=' symbol
$ENV:ARM_TENANT_ID = ""
@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>