Skip to content

Instantly share code, notes, and snippets.

View peterkir's full-sized avatar

Peter Kirschner peterkir

View GitHub Profile
@peterkir
peterkir / BlogPostTopics.md
Created October 29, 2017 22:48
Topics Blog posts

bnd

  • macros!!!

  • cascading includes of macro bndruns

  • usage of local repos/file uri (especially fileuri macro)

  • launch configs

  • bnd workspace templates

@peterkir
peterkir / GIT-KnowHow.md
Last active October 14, 2023 10:53
GIT KnowHow

GIT Know-How

FAQ - Troubleshooting

Debug

Assure git server connection is working with a specific keyfile ssh -o "IdentitiesOnly=yes" -i ~/.ssh/id_ed25519_pekirsc_AT_git_i_mercedes-benz_com <git-ssh-server, e.g. [email protected]

Activate Trace when cloning

Technical details for https://stackoverflow.com/a/44169445/6730571

Details of investigation:

On a base system, /usr/bin/java is a symlink that points to /System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/java, which is an Apple wrapper tool that locates and executes the actual java.

(Do not touch anything in those 2 system directories. It should actually be impossible due to "System Integrity Protection" anyway.)

If you don't have Java installed, attempting to execute java will open a dialog that invites you to install it.

@peterkir
peterkir / README.md
Last active January 28, 2019 07:05 — forked from hofmannsven/README.md
My simply Git Cheatsheet
@peterkir
peterkir / KnowHow-divers.md
Last active April 26, 2019 21:37
KnowHow-divers

Diverse Info

Local storage of video files from e.g. YouTube

VLC

vlc http:// --sout="#std{access=file,mux=mkv,dst='/tmp/file.mkv'}" vlc://quit

Mplayer

mplayer -dumpstream http://STREAM.mp4 -dumpfile /tmp/file.mp4

@peterkir
peterkir / KnowHow_raspberry-pi_rpi.md
Last active April 27, 2019 20:18
Raspberry Pi - dpi

KnowHow - Raspberry Pi

Headless Raspbian image installation

  1. Download Raspbian Image

  2. Write Image to SD Card

  • Identify sdcard diskutil list e.g. disk4
  • Unmount disk before copying diskutil unmountDisk /dev/disk<disk# from diskutil>
  • Copy image to disk sudo dd bs=1m if=.img of= conv=sync
@peterkir
peterkir / git_difftool.md
Created October 18, 2019 06:32
Git difftool configuration - Beyond Compare

git - DiffTool configuration

MacOSX

Install and Configure Beyond Compare

  1. Menu -> BeyondCompare -> Install Command Line Tools ...
  2. Open a diff session e.g. Folder Compare, the Menu -> Session > Session Settings... > Handling > Follow Symbolic Links. Instead of "Use for this view only" at the bottom, select "Also update session defaults".
  3. execute following cmds inside shell
@peterkir
peterkir / README-Template.md
Created November 25, 2019 13:21 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@peterkir
peterkir / ImportCertificateInKeyStore.java
Created March 24, 2020 14:09
Java import certificate into keystore
package io.klib.certificates;
import java.io.ByteArrayInputStream;
import java.io.DataInputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.security.KeyStore;
@peterkir
peterkir / gradle.md
Last active July 8, 2020 08:47
gradle.md

Gradle

global/general configuration store inside ~/.gradle/gradle.properties

org.gradle.daemon=true
org.gradle.parallel=true
org.gradle.configureondemand=true
org.gradle.jvmargs=-Xmx3g -XX:MaxPermSize=2048m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8