Look at LSB init scripts for more information.
Copy to /etc/init.d
:
# replace "$YOUR_SERVICE_NAME" with your service's name (whenever it's not enough obvious)
public class OctopusRestApi : ApiDefinition | |
{ | |
public OctopusRestApi() | |
{ | |
#region Projects | |
Get["/api/projects/all"] = ListAll<ProjectSummaryIndex, Project, ProjectResource>() | |
.WithDescription("Lists the name and ID of all of the projects in the current Octopus installation. The results will be sorted alphabetically by name.") | |
.WithCustomQuery(projects => projects.OrderBy(m => m.Name)); | |
Get["/api/projects/{id}"] = Load<Project, ProjectResource>() |
/** | |
* Console.log with call location and grouping to reduce log noise. | |
* Apply directly to code once. | |
* | |
* Original: http://remysharp.com/2014/05/23/where-is-that-console-log/ | |
*/ | |
var groupable = typeof console.groupCollapsed !== 'undefined'; | |
['log', 'warn'].forEach(function(method) { | |
var old = console[method]; | |
console[method] = function() { |
#!/bin/sh | |
# install build dependencies | |
sudo apt-get install git mono-mcs mono-gmcs mono-devel autoconf libtool g++ gettext libglib2.0-cil-dev libgtk2.0-cil-dev libglade2.0-cil-dev libgnome2.0-cil-dev libgconf2.0-cil-dev | |
# add the ssl certs | |
sudo certmgr -ssl -m https://go.microsoft.com | |
sudo certmgr -ssl -m https://nugetgallery.blob.core.windows.net | |
sudo certmgr -ssl -m https://nuget.org | |
mozroots --import --sync |
Look at LSB init scripts for more information.
Copy to /etc/init.d
:
# replace "$YOUR_SERVICE_NAME" with your service's name (whenever it's not enough obvious)
I work as a full-stack developer at work. We are a Windows & Azure shop, so we are using Windows as our development platform, hence this customization.
For my console needs, I am using Cmder which is based on ConEmu with PowerShell as my shell of choice.
Yes, yes, I know nowadays you can use the Linux subsystem on Windows 10 which allow you to run Ubuntu on Windows. If you are looking for customization of the Ubuntu bash shell, check out this article by Scott Hanselman.