Skip to content

Instantly share code, notes, and snippets.

View cederlof's full-sized avatar

Erik Cederlöf cederlof

  • TietoEVRY
  • Uppsala
View GitHub Profile
@dogfuntom
dogfuntom / Vim Ideas.md
Last active January 10, 2024 14:40
cheat sheet about registers and marks in vim emulators #vs #vim #vsvim #vsc

Finding opportunities to apply advanced Vim

When it comes to Vim emulators, how to do an advanced operation is not the hard part. The hard part is remembering/recognizing that some routine operation can be helped by Vim.

Log method call

Useful for understanding sloppily/poorly written legacy code. Given a bunch of methods like this:

private void ConfusinglyNamedAndConfusinglyUsedMethod()

@bobbzorzen
bobbzorzen / TicketeerTimesheetIntegration.js
Last active April 30, 2018 07:24
A greasemonkey/tampermonkey script to fetch times from ticketeer and auto report to maconomy
// ==UserScript==
// @name Ticketeer Timesheet Integration Dev
// @namespace my.Home
// @version 1.0
// @description Makes your life better one friday at a time
// @author Tommy Svenningsson
// @grant none
// @match https://ter.istone.com/cgi-bin/Maconomy/*
// @require https://code.jquery.com/jquery-3.1.1.min.js
// ==/UserScript==
@bmoore-msft
bmoore-msft / New-CertificateInKeyVault
Created May 25, 2018 23:05
Create a new cert, base64 encode it and put it in KeyVault
#Requires -Module AzureRM.KeyVault
# Use this script to create a certificate that you can use to secure a Service Fabric Cluster or other VM/SSL scenario
# This script requires an existing KeyVault that is EnabledFor[Template]Deployment (property depends on the scenario)
# To create a new vault and set the EnabledForDeployment/EnabledForTemplateDeployment property run:
#
# New-AzureRmResourceGroup -Name KeyVaults -Location WestUS
# New-AzureRmKeyVault -VaultName $KeyVaultName -ResourceGroupName KeyVaults -Location WestUS -EnabledForDeployment -EnabledForTempalteDeployment
#
# Once the certificate is created and stored in the vault, the script will provide the parameter values needed for template deployment
@Yodapp
Yodapp / gist:78263e2ee2e92413f0f67e9a4cebd350
Created September 24, 2018 09:13 — forked from RickardPettersson/gist:c95f78402d2d59552732
C# hjälp class för Swish API för e-handel, fungerande
using System;
using System.IO;
using System.Net;
using System.Security.Cryptography.X509Certificates;
using System.Text;
using System.Web;
namespace WebShop.Helpers
{
public class SwishAPIHelper