This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"workbench.colorTheme": "Nord", | |
"editor.suggestSelection": "first", | |
"vsintellicode.modify.editor.suggestSelection": "automaticallyOverrodeDefaultValue", | |
"java.configuration.checkProjectSettingsExclusions": false, | |
"files.autoSave": "afterDelay", | |
"extensions.ignoreRecommendations": false, | |
"amVim.bindCtrlCommands": false, | |
"workbench.settings.editor": "json", | |
"workbench.editorAssociations": [ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using Microsoft.AspNetCore.Builder; | |
using Microsoft.AspNetCore.Hosting; | |
using Microsoft.AspNetCore.Hosting.Builder; | |
using Microsoft.AspNetCore.Http; | |
using Microsoft.Extensions.DependencyInjection; | |
namespace Swerve | |
{ | |
public static class ApplicationBuilderExtensions |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Write-Host "Mountebank Installer" | |
if (-NOT ([Security.Principal.WindowsPrincipal] [Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] "Administrator")) { | |
Write-Warning "This setup needs admin permissions. Please run this file as admin." | |
break | |
} | |
### Version Check | |
if (Get-Command node -ErrorAction SilentlyContinue) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"ext": "ts", | |
"exec": "npm start" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import {expect} from 'chai' | |
describe('When we run tests', () => { | |
it('Should actually work' , () => { | |
expect(true).to.be.eq(true) | |
}) | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import express, {Express} from 'express' | |
const port: number = 3000 | |
const app: Express = express() | |
app.get('/', (req, res) => { | |
res.json({message: 'Hello World'}) | |
}) | |
app.listen(port, () => { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function extractNumber(element) { | |
const numberString = element.className.toLowerCase().split(" ")[1].split("fm-")[1]; | |
return parseInt(numberString, 10); | |
} | |
function fixRow(number) { | |
let selectedRow = document.querySelectorAll(`.container-${number} #row-${number} > div`); | |
let rowArray = Array.prototype.slice.call(selectedRow); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo 'deb http://www.ubnt.com/downloads/unifi/debian stable ubiquiti' | sudo tee /etc/apt/sources.list.d/100-ubnt-unifi.list | |
sudo wget -O /etc/apt/trusted.gpg.d/unifi-repo.gpg https://dl.ubnt.com/unifi/unifi-repo.gpg | |
sudo apt-get update | |
sudo apt-get upgrade | |
sudo apt-get install unifi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM resin/rpi-raspbian | |
MAINTAINER Erik de Vries <[email protected]> | |
RUN echo 'deb http://www.ubnt.com/downloads/unifi/debian unifi5 ubiquiti' | tee -a /etc/apt/sources.list.d/ubnt.list > /dev/null && \ | |
apt-key adv --keyserver keyserver.ubuntu.com --recv C0A52C50 && \ | |
apt-get update && \ | |
apt-get upgrade && \ | |
apt-get install -y \ | |
unifi \ | |
&& \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
if git describe --exact-match --tags HEAD | |
then | |
tag=$(git describe --exact-match --tags HEAD) | |
echo "Found tag $tag" | |
sbt jdkPackager:packageBin | |
ghr -u divanvisagie $tag target/universal/jdkpackager/bundles | |
else | |
echo "Tag not found" |
NewerOlder