Skip to content

Instantly share code, notes, and snippets.

View ruohki's full-sized avatar

Till ruohki

View GitHub Profile
@ruohki
ruohki / content.md
Created August 3, 2020 07:15
Gist from Drafts

Windows Entwicklungs Umgebung

  • WSL2 mit Ubuntu 20

  • Docker Desktop

  • Chocolatey

  • VSCode Insiders mit FiraCode

  • Neues Terminal

  • Git

  • Python, Node

@ruohki
ruohki / 1-rbac.yaml
Last active January 5, 2019 22:01 — forked from carloscarnero/1-rbac.yaml
Traefik on Rancher
---
kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1beta1
metadata:
name: traefik-ingress-controller
rules:
- apiGroups:
- ""
resources:
- services
import React, { Component } from "react";
import { Redirect } from "react-router-dom";
import auth0Client from "./Auth";
class Callback extends Component {
state = {
loading: true
}
componentDidMount() {
@ruohki
ruohki / takeoff.json
Last active September 17, 2018 08:21
{"takeoff":"20181203T020000"}
void ATestActor::CreateMesh() {
Mesh->ClearAllMeshSections();
int x = 0;
int y = 0;
int z = 0;
FVector p0 = FVector(x * (BLOCK_RENDER_SIZE * 2) + BLOCK_RENDER_SIZE, y + BLOCK_RENDER_SIZE, z - BLOCK_RENDER_SIZE);
FVector p1 = FVector(x * (BLOCK_RENDER_SIZE * 2) + BLOCK_RENDER_SIZE, y - BLOCK_RENDER_SIZE, z - BLOCK_RENDER_SIZE);
FVector p2 = FVector(x * (BLOCK_RENDER_SIZE * 2) + BLOCK_RENDER_SIZE, y - BLOCK_RENDER_SIZE, z + BLOCK_RENDER_SIZE);
// Simple Flexbox Layout for Styled Components
import React from "react";
import styled from "styled-components";
const ColorContainer = styled.div`
background-color: ${({ bg }) => (bg ? bg : "inherit")};
`;
export const Main = styled(ColorContainer)`
export const ScrollContainer = styled.div`
${({ height}) => `height: ${height};`}
overflow-y: scroll;
&::-webkit-scrollbar {
width: 10px;
background-color: rgba(0,0,0,0);
-webkit-border-radius: 100px;
}
&::-webkit-scrollbar:hover {
background-color: rgba(255, 255, 255, 0.04);
@ruohki
ruohki / directive.graphql
Last active March 23, 2018 22:46
schema.js
enum UserRoleEnum {
ROOT
ADMIN
USER
}
directive @isAuthenticated(role: UserRoleEnum = USER) on FIELD_DEFINITION | OBJECT
....
const MongoClient = require('mongodb').MongoClient;
const _ = require('lodash')
const { parseString } = require('xml2js')
const fetch = require('node-fetch')
const moment = require('moment')
const MONGO_URL = "mongodb://XXX";
const XML_URL = "http://www.erfurt.de/sve/pls/info_v1.xml";
This file has been truncated, but you can view the full file.
Chocolatey v0.10.8
Chocolatey is running on Windows v 10.0.16299.0
Attempting to delete file "C:/ProgramData/chocolatey/choco.exe.old".
Attempting to delete file "C:\ProgramData\chocolatey\choco.exe.old".
Command line: "C:\ProgramData\chocolatey\choco.exe" install meteor --debug --verbose
Received arguments: install meteor --debug --verbose
RemovePendingPackagesTask is now ready and waiting for PreRunMessage.
Sending message 'PreRunMessage' out if there are subscribers...
[Pending] Removing all pending packages that should not be considered installed...
The source 'https://chocolatey.org/api/v2/' evaluated to a 'normal' source type