Skip to content

Instantly share code, notes, and snippets.

View slamidtfyn's full-sized avatar

Søren Larsen slamidtfyn

View GitHub Profile
{{text}} and {{text2()}}
@slamidtfyn
slamidtfyn / console.log
Created February 17, 2017 14:48
Build output
******************************************************************************
Starting: Run dotnet
******************************************************************************
==============================================================================
Task : Command Line
Description : Run a command line with arguments
Version : 1.1.2
Author : Microsoft Corporation
Help : [More Information](https://go.microsoft.com/fwlink/?LinkID=613735)
==============================================================================
@slamidtfyn
slamidtfyn / copyfiles.ps1
Last active March 1, 2017 17:34
Copy files from shortcut
## Access WScript Shell features
$shell = New-Object -COM WScript.Shell
## Loop all lnk files in current and subdirectories
Get-ChildItem -recurse -include *.lnk | Foreach-Object {
## Find path of lnk file
$targetdir = $_.Directory.FullName
## Open lnk file to find source file location
$sk = $shell.CreateShortcut($_.FullName);
@slamidtfyn
slamidtfyn / setup.md
Last active September 3, 2018 16:40
My OrangePI setup
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Opdatering igang</title>
</head>
<body>
<h1>Opdatering igang - Vent venligst et øjeblik</h1>
@slamidtfyn
slamidtfyn / job.yaml
Last active February 26, 2019 21:38
k8s-job
apiVersion: batch/v1beta1
kind: CronJob
metadata:
name: hw
spec:
schedule: "*/5 * * * *"
jobTemplate:
spec:
template:
spec:
### Keybase proof
I hereby claim:
* I am slamidtfyn on github.
* I am slamidtfyn (https://keybase.io/slamidtfyn) on keybase.
* I have a public key ASBCPDLFbQhsKlRgVtyqzY9lHYpQeTVHp1w86ysomBASWgo
To claim this, I am signing this object:
console.log('test');
let x= document.createElement('div');
x.style="background-color: red; position: fixed;width:100px;height:100px;bottom: 10px;left: 10px;";
document.body.appendChild(x);
@slamidtfyn
slamidtfyn / server.js
Created June 25, 2020 09:13
express.js - default setup
var PORT = process.env.PORT || 8072;
const express = require('express')
const app = express();
var bodyParser = require('body-parser');
var server = require('http').createServer(app);
app.use(bodyParser.json());
server.listen(PORT, () => console.log(`Server is listening on http://localhost:${PORT}`));
@slamidtfyn
slamidtfyn / code.go
Last active October 29, 2020 10:16
Go Code
package main
import "fmt"
func main() {
fmt.Println("GO CODE")
}