Skip to content

Instantly share code, notes, and snippets.

View Cyberlane's full-sized avatar
Automating everything

Justin Nel Cyberlane

Automating everything
View GitHub Profile
@Cyberlane
Cyberlane / cloudSettings
Created March 28, 2017 12:02
Visual Studio Code Sync Settings Gist
{"lastUpload":"2017-03-28T12:02:37.719Z","extensionVersion":"v2.6.1"}
Analyzing build script...
Analyzing Z:/Documents/Projects/SimpleTest/build.cake...
Processing build script...
Creating script session...
Downloading and installing Roslyn...
Installing packages (using https://packages.nuget.org/api/v2)...
Copying files...
Copying Roslyn.Compilers.CSharp.dll...
Copying Roslyn.Compilers.dll...
Deleting installation directory...
Preparing to run build script...
VERBOSE: Downloading packages.config...
VERBOSE: GET http://cakebuild.net/bootstrapper/packages with 0-byte payload
VERBOSE: received 106-byte response of content type text/xml; charset=utf-8
VERBOSE: Trying to find nuget.exe in PATH...
VERBOSE: Downloading NuGet.exe...
VERBOSE: Restoring tools from NuGet...
VERBOSE: Feeds used:
C:\Users\justinnel\AppData\Local\NuGet\Cache
C:\Users\justinnel\.nuget\packages\
Preparing to run build script...
VERBOSE: Restoring tools from NuGet...
VERBOSE: Feeds used:
C:\Users\justinnel\AppData\Local\NuGet\Cache
C:\Users\justinnel\.nuget\packages\
https://api.nuget.org/v3/index.json
http://nuget.episerver.com/feed/packages.svc/
All packages listed in Z:\Documents\Projects\SimpleTest\tools\packages.config are already installed.
Running build script...

Keybase proof

I hereby claim:

  • I am cyberlane on github.
  • I am cyberlane (https://keybase.io/cyberlane) on keybase.
  • I have a public key ASBpBQkmoUrchmgjzqVFkPprQCDvxxfQVyJsRO8AYTkFJgo

To claim this, I am signing this object:

# Finding Session[ followed by "Order"
# Can be done with a single grep, but done this way to demo multi-grep
find . -name "*.cs" | xargs grep "Session\[" | grep -nHe "\"Order\""
@Cyberlane
Cyberlane / 0_reuse_code.js
Last active August 29, 2015 14:15
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@Cyberlane
Cyberlane / iframe_downloader.js
Created July 11, 2014 10:09
A simple little script I use for performing downloads via an iframe, and having control over errors (rather than a file not found screen)
var downloadFile = function(href){
if (!window.download_iframe) {
window.download_iframe = document.createElement('iframe');
window.download_iframe.style.display = 'none';
window.download_iframe.onload = function () {
var doc = (window.download_iframe.contentWindow || window.download_iframe.contentDocument);
if (doc.document) doc = doc.document;
var content = doc.body.innerText || doc.body.textContent;
if (content.length > 0) {
var msg;
@Cyberlane
Cyberlane / HuBoard TamperMonkey script.js
Created February 28, 2014 15:49
If you have TamperMoney installed on your web browser and make use of HuBoard, then you may like this handy script I made. It simple adds totals to each column - maybe in a future version of HuBoard this will no longer be required!
// ==UserScript==
// @name Counts on HuBoard
// @namespace http://www.cyber-lane.com/
// @version 0.1
// @description enter something useful
// @include http*://huboard.com/*
// @match http://huboard.com/*
// @match https://huboard.com/*
// @copyright 2014+, You
// ==/UserScript==
@Cyberlane
Cyberlane / SS Generic route mapping.cs
Created July 23, 2012 12:30
Generic route mapping for ServiceStack
// Some how make this
var myMethod = new Method
{
ReturnType: typeof(object),
Attributes: [new Attribute{ObjectA, parameter1}],
ExecutionMethod: {
DoStuff(parameter1);
return null;
}
};