Skip to content

Instantly share code, notes, and snippets.

View pasrom's full-sized avatar

Roman Passler pasrom

  • 00:22 (UTC +02:00)
View GitHub Profile
pasrom / xmrig.service
Created February 27, 2018 10:19 — forked from Ernillew/xmrig.service
systemd-unit for xmrig
Description=XMRig Daemon
ExecStart=/usr/local/bin/xmrig -c /home/miner/config/config.json -l /home/miner/xmrig.log -B
pasrom /
Last active May 2, 2018 06:54
Ubuntu-Mate resize margin problem
sudo nano /usr/share/themes/Ambiance/metacity-1/metacity-theme-1.xml

change following values to 5 or another value you prefer

"<distance name="left_width" value="1"/>"
pasrom /
Last active May 2, 2018 06:51
Install Eclipse
  1. install java
sudo add-apt-repository ppa:webupd8team/java
sudo apt update
sudo apt install -y oracle-java8-installer
sudo apt install -y oracle-java8-set-default
javac -version
  1. get the latest eclipse
pasrom / InkscapeConvert.bat
Last active November 6, 2020 13:50 — forked from JohannesDeml/
Batch / bash converter for windows / mac / linux using inkscape and the command line
@Echo off
set "inkscapePath=C:\Program Files\Inkscape\inkscape.exe"
set /a count=0
set validInput1=svg
set validInput2=pdf
set validInput3=eps
set validOutput1=eps
set validOutput2=pdf
set validOutput3=png
pasrom /
Last active May 8, 2018 06:05
Git Commands
git submodule add InkscapeConverter
git submodule init
git submodule update

If you run git submodule update --remote, Git will go into your submodules and fetch and update for you.

git submodule update --remote InkscapeConverter
pasrom /
Last active October 19, 2023 12:15
Netbeans 8.2 Mac
pasrom /
Last active June 9, 2019 19:03
install bcm2835

On target-plattofrm (raspberry pi) (source)

sudo apt-get install html-xml-utils curl
mkdir -p bcm2835 && (wget -qO - `curl -sL | hxnormalize -x -e | hxselect -s '\n' -c "div.textblock>p:nth-child(4)>a:nth-child(1)"` | tar xz --strip-components=1 -C bcm2835 )
cd bcm2835
sudo make install
pasrom / Coronavirus.js
Created October 24, 2020 17:48 — forked from planecore/Coronavirus.js
Coronavirus Scriptable Widget
// Variables used by Scriptable.
// These must be at the very top of the file. Do not edit.
// icon-color: deep-green; icon-glyph: user-md;
// change "country" to a value from
const country = "Israel"
const url = `${country}`
const req = new Request(url)
const res = await req.loadJSON()
if (config.runsInWidget) {
pasrom / incidence_at.js
Last active January 30, 2022 12:55 — forked from Baumchen/incidence_at.js
COVID-19 incidence widget for iOS within Austria 🇦🇹 -->
// Lizenz: AGES Dashboard COVID19 AT
// Use 3-digit GKZ (third row of
// Widget Parameter: "204,KFL;312;706" for Klagenfurt Land (shown as KFL), Korneuburg and Landeck
// Based on the german variant:
// - kevinkub
// - Baumchen
// No guarantee on correctness and completeness of the information provided.
const urlTimelineGkz = ""
pasrom / CMakeLists.txt
Created November 4, 2021 14:34
cmake'ing code composer studio builds (ARM-CGT-CLANG)
set(CMAKE_TOOLCHAIN_FILE "${CMAKE_CURRENT_SOURCE_DIR}/ti-cgt-clang-toolchain.cmake")
set(PROJECT_NAME clang-test.elf)
set(SYS_CONFIG ${MCU_PLUS_SDK_PATH}/examples/empty/am64x-evm/r5fss0-0_freertos/example.syscfg)
set(LINKER_FILE ${MCU_PLUS_SDK_PATH}/examples/empty/am64x-evm/r5fss0-0_freertos/ti-arm-clang/linker.cmd)
cmake_minimum_required (VERSION 3.18)