Skip to content

Instantly share code, notes, and snippets.

View vsshs's full-sized avatar

Vaidas Sirtautas vsshs

View GitHub Profile
@vsshs
vsshs / unifi-video-ubuntu-18-04.md
Created September 19, 2021 21:28 — forked from pdrok/unifi-video-ubuntu-18-04.md
Steps to install unifi-video on Ubuntu 18.04

log in as root: sudo su if you don't have MongoDB already installed:

sudo apt-get install mongodb mongodb-server openjdk-8-jre-headless=8u162-b12-1 jsvc

Open terminal (go to your apps and type in terminal, or push the windows key and type in terminal) Type the following commands:

sudo mv /usr/bin/mongod /usr/bin/mongod.bin
Remove GIT from Source Control plugin
Install PowerTools
- https://marketplace.visualstudio.com/items?itemName=VisualStudioPlatformTeam.PowerCommandsforVisualStudio
@vsshs
vsshs / ExtensionsForVisualStudio.txt
Last active November 16, 2018 10:38
Visual Studio Extensions
Visual Studio IntelliCode - Preview - https://marketplace.visualstudio.com/items?itemName=VisualStudioExptTeam.VSIntelliCode
Power Commands for Visual Studio - https://marketplace.visualstudio.com/items?itemName=VisualStudioProductTeam.PowerCommandsforVisualStudio
VSColorOutput - https://marketplace.visualstudio.com/items?itemName=MikeWard-AnnArbor.VSColorOutput
@vsshs
vsshs / ioc.cs
Created April 20, 2017 13:34 — forked from clausjensen/ioc.cs
private void IocRegistration(ApplicationContext applicationContext)
{
var container = new ServiceContainer();
container.RegisterControllers(typeof (UmbracoApplication).Assembly);
container.RegisterApiControllers(typeof (UmbracoApplication).Assembly);
container.RegisterControllers(typeof (Umbraco.Forms.Web.Trees.DataSourceTreeController).Assembly);
container.RegisterApiControllers(typeof (Umbraco.Forms.Web.Trees.DataSourceTreeController).Assembly);
container.RegisterControllers(typeof (Diplo.TraceLogViewer.Controllers.TraceLogTreeController).Assembly);
container.RegisterApiControllers(typeof (Diplo.TraceLogViewer.Controllers.TraceLogTreeController).Assembly);
container.RegisterControllers(typeof(Merchello.Web.Mvc.MerchelloRenderMvcController).Assembly);
@vsshs
vsshs / prepare-commit-msg.sh
Created March 2, 2017 10:00 — forked from bartoszmajsak/prepare-commit-msg.sh
How to automatically prepend git commit with a branch name
#!/bin/bash
# This way you can customize which branches should be skipped when
# prepending commit message.
if [ -z "$BRANCHES_TO_SKIP" ]; then
BRANCHES_TO_SKIP=(master develop test)
fi
BRANCH_NAME=$(git symbolic-ref --short HEAD)
BRANCH_NAME="${BRANCH_NAME##*/}"
%date{yyyy-MM-dd HH:mm:ss,fff} [%thread] %level %logger [%property] %message
@vsshs
vsshs / keybase.md
Created August 31, 2016 21:12
keybase.md

Keybase proof

I hereby claim:

  • I am vsshs on github.
  • I am vaidas (https://keybase.io/vaidas) on keybase.
  • I have a public key whose fingerprint is 875E A503 04A2 F2ED B50A FB0B 258D BC2A 3A54 CE30

To claim this, I am signing this object:

@vsshs
vsshs / logviewerpattern
Last active May 20, 2016 10:07
Log viewer pattern for new umbraco logging scheme (copy it exactly since there is a space at the beginning)
%date{yyyy-MM-dd HH:mm:ss,fff} [%proc] %level %class - %message
@vsshs
vsshs / .gitignore
Last active May 12, 2016 11:52
Git ignore for VS + Umbraco
## based on https://github.com/github/gitignore
## Ignore Visual Studio temporary files, build results, and
## files generated by popular Visual Studio add-ons.
# User-specific files
*.suo
*.user
*.userosscache
*.sln.docstates
@vsshs
vsshs / iis.ps1
Last active April 20, 2016 12:05
Creates iis site and adds entry to hosts.
Import-Module WebAdministration
$iisAppPoolName = Read-Host 'What is IIS app pool name and App Name e.g. "local.mysite.com"?'
$iisAppPoolDotNetVersion = "v4.0"
$iisAppName = $iisAppPoolName
$directoryPath = Read-Host 'Where is the site located? e.g. D:\Git\mySite'
if (Get-Module -ListAvailable -Name PsHosts) {
Write-Host "PsHosts exists. Good. Adding entry to hosts..."
#create hosts entry
Add-HostEntry $iisAppPoolName 127.0.0.1