Skip to content

Instantly share code, notes, and snippets.

View javafun's full-sized avatar

Vincent javafun

View GitHub Profile
@javafun
javafun / EFExtensions.cs
Created June 13, 2016 13:20 — forked from ondravondra/EFExtensions.cs
C# extension for executing upsert (MERGE SQL command) in EF with MSSQL
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity;
using System.Linq;
using System.Linq.Expressions;
using System.Reflection;
using System.Text;
namespace EFExtensions
@javafun
javafun / gist:a46b7886cfc808ff5965a0c116acc4f9
Created June 23, 2016 05:34 — forked from stevenkuhn/gist:5062660
This PowerShell script generates release notes for Octopus Deploy that contain the GitHub commits and JIRA issues from the current build to the latest production release. It will also create the Octopus release based on the TeamCity build number.
#
# Assumptions
#
# 1. If you have a Octopus release deployed, say 1.0.0.73, there is a git
# tag set for that commit in GitHub that is "v1.0.0.73".
#
# 2. You have TeamCity label each successful build in GitHub with the format
# "v{build number}. Sidenote: it appears that TeamCity only labels the
# default branch, but not feature branches.
#
@javafun
javafun / ScheduledNotificationTest.cs
Created June 30, 2016 23:42 — forked from jstemerdink/ScheduledNotificationTest.cs
Using the new EPiServer notification API
using System.Collections.Generic;
using System.Linq;
using System.Web.Security;
using EPiServer.ContentCollaboration.Notification;
using EPiServer.Notification;
using EPiServer.PlugIn;
using EPiServer.Scheduler;
using EPiServer.ServiceLocation;
@javafun
javafun / TrustedSelfSignedCertificate.psm1
Created July 12, 2016 05:15 — forked from richardszalay/TrustedSelfSignedCertificate.psm1
Powershell module for creating trusted self-signed certificates
#requires -Version 2.0
#region Exported Cmdlets
<#
.SYNOPSIS
Creates a self-signed certificate and copies it into the trusted store.
.DESCRIPTION
Creates a self-signed certificate and copies it into the trusted store.
@javafun
javafun / change-post-git-colors.md
Last active July 12, 2016 23:59 — forked from SyntaxC4/change-post-git-colors.md
Changing Colors in Posh-Git

Changing color settings in Poshgit

  1. Navigate to the Poshgit Install Directory

    • [Chocolatey] C:\tools\Poshgit\dahlbyk-posh-git-9d624ca\
    • [Local User] %UserProfile%\Documents\WindowsPowerShell\Modules\posh-git
    • [System] %windir%\System32\WindowsPowerShell\Modules\Poshgit
  2. Right-Click on GitPrompt.ps1 and select Edit

  3. Between line 5 and 39 you will find all of the colour settings

@javafun
javafun / cq_maintenance.sh
Created July 28, 2016 12:32 — forked from jayankandathil/cq_maintenance.sh
Bash shell script to run Adobe CQ (Experience Manager) maintenance operations on Red Hat Enterprise Linux. Tested on RHEL 6.3 and 6.4
#!/bin/bash
# Bash script to run CQ daily maintenance operations, excluding TarPM Optimization and Tar Index Merge
# Author : Jayan Kandathil
# Version : 0.4
# Last updated : May 24, 2013
# Instructions : Copy to CQ's /bin folder, make necessary changes, enable the execute bit and run
@javafun
javafun / aem_repo_check.sh
Created July 28, 2016 12:33 — forked from jayankandathil/aem_repo_check.sh
Script to Trigger Repository Check in AEM 6.0 and 6.1 CRX3
#!/bin/bash
# Bash script to run AEM 6.0 and 6.1 Repository Check
# Author : Jayan Kandathil
# Version : 0.1
# Last updated : July 6, 2015
# Instructions : Copy to CQ's /bin folder, make necessary changes, enable the execute bit and run
@javafun
javafun / download_egghead_videos.md
Created July 30, 2016 14:28 — forked from ldong/download_egghead_videos.md
download egghead videos

Download videos from egghead

Go to the egghead website, i.e. Building a React.js App

run

$.each($('h4 a'), function(index, video){
  console.log(video.href);
});
@javafun
javafun / GIF-Screencast-OSX.md
Created August 19, 2016 08:33 — forked from dergachev/GIF-Screencast-OSX.md
OS X Screencast to animated GIF

OS X Screencast to animated GIF

This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.

Screencapture GIF

Instructions

To capture the video (filesize: 19MB), using the free "QuickTime Player" application:

@javafun
javafun / jenikns_ci_on_osx.md
Created September 4, 2016 01:39 — forked from ostinelli/jenkins_ci_on_osx.md
Setup Jenkins CI on OSX.

Jenkins CI on OSX

Instructions on how to setup a secured Jenkins CI on a Mac.

Download & Install dependencies

All of these operations are done with your admin user.

Developer tools

Install the command line developer tools.