Skip to content

Instantly share code, notes, and snippets.

Bruno Hildenbrand hd9

Block or report user

Report or block hd9

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@hd9
hd9 / LocalFunctions-Razor-AspNetCore.cshtml
Last active Aug 29, 2018
Simplifying Razor logic with C# Local Functions in Asp.Net Core | blog.hildenco.com
View LocalFunctions-Razor-AspNetCore.cshtml
@using Microsoft.AspNetCore.Mvc.Controllers
@{
var controllerName = ((ControllerActionDescriptor)ViewContext.ActionDescriptor).ControllerName;
string GetClass(string controller)
{
return $"nav-link { (controllerName == controller ? "active admin" : "" ) }";
}
}
<nav class="navbar navbar-expand-lg navbar-light bg-light">
@hd9
hd9 / gh-integrated-sec-vuln.md
Created Nov 1, 2018
GitHub - Integrated Security
View gh-integrated-sec-vuln.md
@hd9
hd9 / js-pdf-exporter.html
Last active Nov 1, 2018
A simple js-pdf exporter
View js-pdf-exporter.html
<html>
<head>
<script src="https://code.jquery.com/jquery-1.12.3.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jspdf/0.9.0rc1/jspdf.min.js"></script>
<script>
$(document).ready(function(){
$('#cmd').click(function () {
doc.fromHTML($('#content').html(), 15, 15, {
'width': 170,
@hd9
hd9 / Vue-ChatRoom.js
Created Jan 24, 2019
A simple chatroom to demo how simple and elegant Vue.Js is
View Vue-ChatRoom.js
// Vue-ChatRoom.js: A simple chatroom to demo how simple and elegant Vue.Js is
// By: Bruno Hildenbrand
// Source: https://github.com/hd9/vue-chatroom
// blog post available at: blog.hildenco.com
const app = new Vue({
el: '#chat',
data: {
name: 'Bruno',
msg: '',
@hd9
hd9 / Azure-migrate-data-between-servers.sql
Created Feb 1, 2019
AZURE: Migrate data between Sql Server databases using Sql and PolyBase
View Azure-migrate-data-between-servers.sql
-- Script to migrate data between Azure Databases
-- Author: Bruno Hildenbrand (https://github.com/hd9)
-- Full post detailed here: https://blog.hildenco.com
-- Note: replace everything between <> with your own configuration
print '--- STARTING MIGRATION ---'
-- create master key
print 'Creating master key...'
CREATE MASTER KEY ENCRYPTION BY PASSWORD = '<super-strong-password>';
You can’t perform that action at this time.