System: Debian/Ubuntu/Fedora. Might work for others as well.
As mentioned here, to update a go version you will first need to uninstall the original version.
To uninstall, delete the /usr/local/go
directory by:
/* | |
To Compile: | |
PATH\\TO\\jsc.exe QueryDotnet.js | |
This example is based on: | |
https://docs.microsoft.com/en-us/dotnet/framework/migration-guide/how-to-determine-which-versions-are-installed | |
*/ | |
import System; | |
import Microsoft.Win32; |
/* | |
MIT License | |
Copyright (c) 2016 Heiswayi Nrird | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the Software is |
package main | |
import ( | |
"io/ioutil" | |
"log" | |
"strings" | |
"net/http" | |
"encoding/json" | |
"fmt" | |
"time" |
package main | |
import ( | |
"bytes" | |
"encoding/json" | |
"fmt" | |
"io" | |
"log" | |
"net/http" | |
"os" |
package main | |
import ( | |
"github.com/gin-gonic/gin" | |
"os" | |
"log" | |
"net/http" | |
"encoding/json" | |
) |
package controllers | |
import ( | |
"net/http" | |
"strings" | |
) | |
type AddressController struct { | |
*Controller | |
} |
from subprocess import Popen, PIPE | |
from os import path | |
git_command = ['/usr/bin/git', 'status'] | |
repository = path.dirname('/path/to/dir/') | |
git_query = Popen(git_command, cwd=repository, stdout=PIPE, stderr=PIPE) | |
(git_status, error) = git_query.communicate() | |
if git_query.poll() == 0: | |
# Do stuff |
System: Debian/Ubuntu/Fedora. Might work for others as well.
As mentioned here, to update a go version you will first need to uninstall the original version.
To uninstall, delete the /usr/local/go
directory by:
ko.utils.arrayForEach | |
ko.utils.arrayFirst | |
ko.utils.arrayFilter | |
ko.utils.arrayGetDistinctValues | |
ko.utils.arrayIndexOf | |
ko.utils.arrayMap | |
ko.utils.arrayPushAll | |
ko.utils.arrayRemoveItem | |
ko.utils.extend | |
ko.utils.fieldsIncludedWithJsonPost |
<Project DefaultTargets="CopyOutputs;DeployService" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0"> | |
<!-- These settings control what the service's name, description etc appear in services.msc task panel. --> | |
<PropertyGroup Label="ServiceMetaData"> | |
<ServiceName>ShinyNewService</ServiceName> | |
<ServiceDisplayName>Shiny New Service</ServiceDisplayName> | |
<ServiceDescription>A shiny new service, that changes the world for the greater good.</ServiceDescription> | |
</PropertyGroup> | |
<Choose> |