Skip to content

Instantly share code, notes, and snippets.

View peterkir's full-sized avatar

Peter Kirschner peterkir

View GitHub Profile
@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 / 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 / README.md
Last active January 28, 2019 07:05 — forked from hofmannsven/README.md
My simply Git Cheatsheet

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 / 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. git@github.com

Activate Trace when cloning

@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 / bindex.cmd
Created February 6, 2017 11:59
Example of cmd line bindex call
#java -jar C:\tmp\BNDarchive\archive\dist\bundles\biz\aQute\bnd\org.osgi.impl.bundle.repoindex.cli\3.4.0-SNAPSHOT\org.osgi.impl.bundle.repoindex.cli-3.4.0-20161003.182247-1.jar ^
#-d C:/jbe5.0.2/repo/download.eclipse.org/eclipse/updates/4.6/R-4.6.1-201609071200 ^
#-n "Eclipse Platform R-4.6.1-201609071200" ^
#-v C:/jbe5.0.2/repo/download.eclipse.org/eclipse/updates/4.6/R-4.6.1-201609071200
java -jar C:\tmp\BNDarchive\archive\dist\bundles\biz\aQute\bnd\org.osgi.impl.bundle.repoindex.cli\3.4.0-SNAPSHOT\org.osgi.impl.bundle.repoindex.cli-3.4.0-20161003.182247-1.jar ^
-d C:/jbe5.0.2/repo/download.eclipse.org/releases/neon/201609281000 ^
-n "Eclipse Simultaneous Release 201609281000" ^
-v C:/jbe5.0.2/repo/download.eclipse.org/releases/neon/201609281000
@peterkir
peterkir / gogo.sh
Created February 6, 2017 11:47
OSGi gogo shell examples
# Gogo Shell Command - inspect
help inspect
# inspect - inspects bundle capabilities and requirements
# scope: felix
# parameters:
# String ('capability' | 'requirement')
# String (<namespace> | 'service')
# Bundle[] target bundles
@peterkir
peterkir / p2-process-artifcats.xml
Last active May 24, 2022 18:28
ANT task for p2.process.artifacts - adding md5 and artifacts sizes to p2 repository
<?xml version="1.0" encoding="UTF-8"?>
<project name="project" default="p2-process-artifcats">
<property name="p2.repo" value="file:///C:/tmp/161.1.9.RC0-20160407-200004" />
<target name="p2-process-artifcats" description="adds md5 and artifacts sizes to p2 repository">
<p2.process.artifacts repositorypath="${p2.repo}" />
</target>
</project>
@peterkir
peterkir / p2.publisher.FeaturesAndBundlesPublisher.cmd
Last active April 18, 2016 05:59
Publish a p2 repo from existing features and plugins (including valid md5 and artifacts sizes) - IGNORING binary artefacts
:: Publish an existing p2 repo with proper sizes for artifact and download and md5 checksums
SET ECLIPSE_SDK=c:\apps\eclipse-SDK-4.5.2-win32-x86_64\
SET EQUINOX_LAUNCHER_VERSION=1.3.100.v20150511-1540
SET REPO_SOURCE=C:/__publisher/exportIDE
SET REPO_TARGET=C:/__publisher/exportPublished
java -jar %ECLIPSE_SDK%\eclipse\plugins\org.eclipse.equinox.launcher_%EQUINOX_LAUNCHER_VERSION%.jar ^
-application org.eclipse.equinox.p2.publisher.FeaturesAndBundlesPublisher ^