- Switch to window manager Ubuntu (Gnome 3 on Xorg) during login
- Uninstall Unity:
sudo apt purge unity -y && sudo apt autoremove -y
sudo apt install dconf-editor
dconf-editor # /org/gnome/desktop/interface/enable-animations
CREATE OR REPLACE FUNCTION excel_time(in timestamp, out double precision) | |
AS $$ | |
SELECT (EXTRACT(epoch FROM $1) / 86400) + 25569 | |
$$ | |
LANGUAGE SQL IMMUTABLE PARALLEL SAFE; | |
CREATE OR REPLACE FUNCTION excel_time(in timestamptz, out double precision) | |
AS $$ | |
SELECT (EXTRACT(epoch FROM $1) / 86400) + 25569 | |
$$ |
import { useEffect, useRef } from 'react' | |
import PropTypes from 'prop-types' | |
import { Terminal } from 'xterm' | |
import { Unicode11Addon } from 'xterm-addon-unicode11' | |
import { CanvasAddon } from 'xterm-addon-canvas' | |
import { WebglAddon } from 'xterm-addon-webgl'; | |
import { WebLinksAddon } from 'xterm-addon-web-links' | |
import FontFaceObserver from 'fontfaceobserver' | |
import 'xterm/css/xterm.css' |
function dewpoint(tempCelsius, relHumidity) { | |
const a = tempCelsius < 0 ? 7.6 : 7.5 | |
const b = tempCelsius < 0 ? 240.7 : 237.3 | |
const sdd = 6.1078 * Math.pow(10, (a * tempCelsius) / (b + tempCelsius)) | |
const dd = relHumidity / 100 * sdd | |
const v = Math.log10(dd / 6.1078) | |
const dewPointCelsius = b * v / (a - v) | |
return dewPointCelsius | |
} |
<?xml version="1.0"?> | |
<!-- Imperfect syntax grammar for YAML by Tobias Kiertscher <[email protected]> --> | |
<SyntaxDefinition xmlns="http://icsharpcode.net/sharpdevelop/syntaxdefinition/2008" | |
name="YAML" extensions=".yaml,.yml"> | |
<Color name="Comment" foreground="LightSlateGray" fontStyle="italic" /> | |
<Color name="String" foreground="DarkGreen" fontWeight="normal" /> | |
<Color name="Array" foreground="DarkMagenta" fontWeight="bold" /> | |
<Color name="MultilineStringIndicator" foreground="DarkMagenta" fontWeight="bold" /> | |
<Color name="MapKey" foreground="Firebrick" /> |
param ( | |
$Host, | |
$User = "Administrator", | |
$Service | |
) | |
$driveName = "tmpRemoteConnDrive" | |
$cred = Get-Credential -Credential "$Host\$User" | |
New-PSDrive -Name $driveName -PSProvider FileSystem -Root "\\$Host\c`$" -Credential $cred | |
Get-Service -ComputerName $Host $Service | Restart-Service |
using System.Threading; | |
using System.Threading.Tasks; | |
using Microsoft.Extensions.Hosting; | |
using Microsoft.Extensions.Logging; | |
namespace Mastersign.Playground.Hosted.Cli | |
{ | |
public class CliService : IHostedService | |
{ | |
private ILogger Log { get; } |
{ | |
"uuid": "{B5D3F76E-9611-4BD5-83A5-3778BEFDDE0C}", | |
"name": "FiveThree", | |
"type": "grid", | |
"info": | |
{ | |
"rows": 4, | |
"columns": 6, | |
"rows-percentage": [3300, 1700, 1600, 3400], | |
"columns-percentage": [2000, 2000, 1000, 1000, 2000, 2000], |
@ECHO OFF | |
SETLOCAL | |
SET COUNTRY=DE | |
SET STATE=Bundesland | |
SET LOCATION=Stadtname | |
SET ORG=Unternehmen | |
SET ORG_UNIT=Abteilung | |
SET COMMON_NAME=servername.unternehmen.de |
<# | |
.SYNOPSIS | |
Konvertiert ein PowerShell-Skript in eine Batch-Datei | |
.DESCRIPTION | |
Dieses Skript nimmt eine PowerShell-Datei entgegen und kopiert sie in eine | |
Batch-Datei. Die Kopie wird dabei um einen Header ergänzt, der, als Batch | |
aufgerufen, das ursprüngliche Skript wieder in eine temporäre Datei | |
extrahiert und per PowerShell ausführt. |