Skip to content

Instantly share code, notes, and snippets.

@knxroot
knxroot / Vagrantfile
Created Apr 11, 2021 — forked from akrabat/Vagrantfile
Example Vagrantfile for Windows
View Vagrantfile
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Base box: https://github.com/akrabat/packer-templates
Vagrant.configure("2") do |config|
config.vm.box = "19ft/windows2016"
config.vm.guest = :windows
config.vm.boot_timeout = 600
View setup-modernie-vagrant-boxes.md

Setup modern.ie vagrant boxes

Since modern.ie released vagrant boxes, it' no longer necessary to manually import the ova file to virtualbox, as mentioned here.

However, the guys at modern.ie didn't configured the box to work with WinRM. This how-to addresses that, presenting steps to proper repackage these boxes, adding WinRM support. Additionally configures chocolatey package manager and puppet provisioner.

Pre-requisites

View .editorconfig
#.editorconfig default
root = true
[*]
indent_style = space
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
max_line_length = 80
@knxroot
knxroot / BIPCatalogUtil.cmd
Created Mar 14, 2018 — forked from Dnefedkin/BIPCatalogUtil.cmd
Runs BI Publisher Catalog Utility on Windows OS
View BIPCatalogUtil.cmd
@ECHO OFF
setLocal EnableDelayedExpansion
@REM *************************************************************************
@REM Purpose: Runs BI Publisher Catalog Utility on Windows OS
@REM Author: Dmitry Nefedkin (Dmitry.Nefedkin@oracle.com)
@REM Description: script is based on BIPCatalogUtil.sh
@REM found in $MW_HOME\Oracle_BI1\clients\bipublisher\ of Oracle BI EE 11.1.1.6 installation
@REM Last changed: Oct, 25, 2012 18:00
@REM Version: 0.1
@REM *************************************************************************
@knxroot
knxroot / BIPCatalogUtil.cmd
Created Mar 14, 2018 — forked from Dnefedkin/BIPCatalogUtil.cmd
Runs BI Publisher Catalog Utility on Windows OS
View BIPCatalogUtil.cmd
@ECHO OFF
setLocal EnableDelayedExpansion
@REM *************************************************************************
@REM Purpose: Runs BI Publisher Catalog Utility on Windows OS
@REM Author: Dmitry Nefedkin (Dmitry.Nefedkin@oracle.com)
@REM Description: script is based on BIPCatalogUtil.sh
@REM found in $MW_HOME\Oracle_BI1\clients\bipublisher\ of Oracle BI EE 11.1.1.6 installation
@REM Last changed: Oct, 25, 2012 18:00
@REM Version: 0.1
@REM *************************************************************************
@knxroot
knxroot / gist:faa0e3b2d763feee1348af45ab2473ad
Created Jul 28, 2016 — forked from buhrmi/gist:1344659
Sublime Text 2 Git Annotation Colors - fix background for foreground
View gist:faa0e3b2d763feee1348af45ab2473ad
<!-- ====================================
Colors for git annotation
====================================== -->
<dict>
<key>name</key>
<string>Git Modified Line</string>
<key>scope</key>
<string>git.changes.x</string>
<key>settings</key>
<dict>
View force_unicode.py
def force_unicode(string, codecs=['utf8', 'cp1252']):
""" Force use unicode when you don't know correct codec of the string """
for i in codecs:
try:
return unicode(string, i)
except:
pass
@knxroot
knxroot / rut-flask-restful-validation
Last active Aug 29, 2015 — forked from rbonvall/rut.py
Dígito verificador del RUT en Python
View rut-flask-restful-validation
# encoding=utf-8
# Idea of a Custom data types for validate the Chilean RUT in Flask-RESTful
# by @lacosox
from itertools import cycle
#rut='XXXXXXXX-X'
def chilean_rut(rut_text):
rut_text.upper().strip().replace(".", "").replace("K", "10")
(rut, dv)=rut_text.split('-')
@knxroot
knxroot / laravelUseless.flt
Created Oct 23, 2014
A WinMerge filter for compare 2 Laravel proyects
View laravelUseless.flt
## This is a directory/file filter for WinMerge
## This filter is a helper for compare 2 laravel proyects in Windows
name: Exclude Laravel useless
desc: Exclude additional data from Laravel Proyects
## This is an inclusive (loose) filter
## (it lets through everything not specified)
def: include
## Filters for filenames begin with f:
@knxroot
knxroot / gist:4056369
Created Nov 11, 2012
recursos_paraalumnos_desarrolloweb
View gist:4056369