Skip to content

Instantly share code, notes, and snippets.

View freddie-freeloader's full-sized avatar

Jonas Benn freddie-freeloader

View GitHub Profile

Spring docker notes

  • There is a guide for Spring & Docker here
    • mvn spring-boot:build-image -Dspring-boot.build-image.imageName=xdb/rest
      • Creates an image, that then could be started with docker compose

Debug app in docker container

source

set clipboard=unnamed
unmap <Space>
exmap newfilehere obcommand file-explorer:new-file
nmap <Space>pf :newfilehere
exmap new-file-in-pane obcommand file-explorer:new-file-in-new-pane
nmap <Space>pF :new-file-in-pane
@freddie-freeloader
freddie-freeloader / us_with_umlauts
Created October 22, 2024 16:37
US XKB Layout with umlauts (using lalt)
default partial alphanumeric_keys
xkb_symbols "basic" {
name[Group1]= "English (US)";
key <TLDE> { [ grave, asciitilde ] };
key <AE01> { [ 1, exclam ] };
key <AE02> { [ 2, at ] };
key <AE03> { [ 3, numbersign ] };
key <AE04> { [ 4, dollar ] };
/opt/cisco/secureclient/bin/vpnui
@freddie-freeloader
freddie-freeloader / _check_secrets.yml
Created August 31, 2024 12:59
Check if AWS S3 credentials are available in a Github workflow
name: Check Secrets
on:
workflow_call:
inputs:
stub:
required: false
type: string
default: "stub"
secrets:
S3_BUCKET:
import { z } from 'zod'
import { mapValues, omit, pick } from 'lodash'
function partialSafeParse<Schema extends z.ZodObject<any>> ( schema: Schema, input: unknown ) {
const result = schema.safeParse( input )
if ( result.success ) return result
const { fieldErrors, formErrors } = result.error.flatten()
if ( formErrors.length ) return result
/**
* This is a ESLint config for a Remix project.
*/
/** @type {import('eslint').Linter.Config} */
module.exports = {
root: true,
parserOptions: {
ecmaVersion: "latest",
sourceType: "module",
sudo openconnect --protocol=anyconnect --user=<Username>@tu-berlin.de https://vpn.tu-berlin.de/
@freddie-freeloader
freddie-freeloader / index.html
Last active April 9, 2024 17:08 — forked from leowebguy/index.html
Responsive iframe full screen. Display page without and hide original url address.
<!DOCTYPE html>
<html lang="en" class="no-js">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<style>
html body {width: 100%;height: 100%;padding: 0px;margin: 0px;overflow: hidden;font-family: arial;font-size: 10px;color: #6e6e6e;background-color: #000;} #preview-frame {width: 100%;background-color: #fff;}</style>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.1/jquery.min.js"></script>
<script>
//function to fix height of iframe!
# Edit this configuration file to define what should be installed on your system. Help is available in the configuration.nix(5) man page and in the NixOS manual (accessible by running ‘nixos-help’).
{ config, pkgs, ... }:
{
imports = [ # Include the results of the hardware scan.
./hardware-configuration.nix
./ssd-configuration.nix
./users.nix <home-manager/nixos>
];