Skip to content

Instantly share code, notes, and snippets.

View Bomberus's full-sized avatar

Pascal Maximilian Bremer Bomberus

  • Sinsheim, Germany
View GitHub Profile
@Bomberus
Bomberus / ENV.Dockerfile
Created November 1, 2020 22:46
Jupyterlab + Docker compose
FROM jupyter/scipy-notebook:latest
RUN pip install xeus-python && \
pip install -U spacy && \
pip install -U spacy-lookups-data && \
python -m spacy download en_core_web_sm && \
python -m spacy download de_core_news_sm
@Bomberus
Bomberus / data.xml
Created October 30, 2020 14:49
XFA Adobe Forms: Count Table Rows per page
<?xml version="1.0" encoding="UTF-8" ?><records>
<record>
<author>Desirae Stephens</author>
<title>et, lacinia vitae, sodales at, velit. Pellentesque ultricies</title>
<price>€744,47</price>
</record>
<record>
<author>Asher D. Francis</author>
<title>Phasellus dapibus quam quis diam. Pellentesque habitant morbi</title>
<price>€047,38</price>
@Bomberus
Bomberus / Readme.md
Last active May 5, 2020 23:21
Remote Connection with Python + tigerVNC + ngrok + Telegram

beispiel

What it does

Present a simple python application. After clicking connect, the sysadmin gets the grok address to connect to client via vnc.

Prerequisites

  • TigerVNC needs to be installed
  • ngrok binary in path
  • Create VNC Authentication file: vncpasswd pass
  • Replace authtoken (telegram/ngrok) with your own!
@Bomberus
Bomberus / script.sh
Created March 29, 2020 13:06
Convert Video Folder for Davinci Resolve Import
# You might need to adjust the initial file selection
#!/bin/bash
for file in *.MOV;
do ffmpeg -y -i $file -c:v mpeg4 -force_key_frames "expr:gte(t,n_forced*1)" -r ntsc-film -b:v 250000k -c:a pcm_s16le "${file}.mov";
done
@Bomberus
Bomberus / data.xml
Created December 22, 2019 19:35
Adobe LiveCycle Designer Extend Item subform till the end of page
<?xml version="1.0"?>
<!-- Source: https://docs.microsoft.com/en-us/previous-versions/windows/desktop/ms762271(v%3Dvs.85)-->
<catalog>
<book id="bk101">
<author>Gambardella, Matthew</author>
<title>XML Developer's Guide</title>
<genre>Computer</genre>
<price>44.95</price>
<publish_date>2000-10-01</publish_date>
<description>An in-depth look at creating applications
@Bomberus
Bomberus / books.xml
Last active December 22, 2019 02:07
Adobe Livecycle Designer, hide pages depending on provided xml data
<?xml version="1.0"?>
<!-- Source: https://docs.microsoft.com/en-us/previous-versions/windows/desktop/ms762271(v%3Dvs.85)-->
<catalog>
<book id="bk101">
<author>Gambardella, Matthew</author>
<title>XML Developer's Guide</title>
<genre>Computer</genre>
<price>44.95</price>
<publish_date>2000-10-01</publish_date>
<description>An in-depth look at creating applications
@Bomberus
Bomberus / main.py
Created June 19, 2019 07:27
asyncqt issue
import functools
from PyQt5.QtWidgets import QApplication, QPushButton, QWidget, QVBoxLayout
import sys
def slot(*args):
def outer(fn):
@functools.wraps(fn)
def wrapper(*args, **kwargs):
print("args", args)
print("kwargs", kwargs)
@Bomberus
Bomberus / main.py
Last active November 8, 2019 01:50
Asyncqt, concurrent executor example
import sys, asyncio, random, threading, datetime
from qtpy.QtWidgets import QApplication, QProgressBar
from asyncqt import QEventLoop, QThreadExecutor
app = QApplication(sys.argv)
loop = QEventLoop(app)
asyncio.set_event_loop(loop)
progress = QProgressBar()
@Bomberus
Bomberus / store.ts
Last active June 14, 2018 06:05
Vuex-persist localstorage sync
import Vuex, {Payload, Store} from 'vuex'
import VuexPersistence from 'vuex-persist'
const vuexLocal = new VuexPersistence<State, Payload> ({
strictMode: true,
storage: window.localStorage,
filter: mutation => mutation.type !== 'RELOAD_MUTATION'
})
const store = new Vuex.Store<State>({
@Bomberus
Bomberus / userscript.js
Last active October 9, 2017 13:52
Userscript : Remove Google Consent Popover EU Law
// ==UserScript==
// @name Kill Google Consent
// @namespace
// @version 0.2
// @description No body got time for this shit !!!
// @author Bomberus
// @include https://*.youtube.tld/*
// @include https://*.google.tld/*
// @grant none
// @require https://code.jquery.com/jquery-3.2.1.slim.min.js