Skip to content

Instantly share code, notes, and snippets.

@plieningerweb
plieningerweb / Readme.md
Created October 29, 2019 15:29
openshot edit and cut instagram video
@plieningerweb
plieningerweb / gist:3dc29ed212e2a50841d6fbd614e6f01f
Last active April 4, 2022 07:06
Install zerotier on GL.iNet GL-MT300N-V2 Mini Travel Router
from airflow.models import DAG
from airflow.operators.dummy_operator import DummyOperator
from airflow.operators.bash_operator import BashOperator
from airflow.utils.dates import days_ago
dag = DAG(
dag_id='example_runtaskonce',
schedule_interval='@once',
start_date=days_ago(1),
)
runonce = RunOnceBranchOperator(
dag=dag,
task_id='runonce_example',
run_once_task_id='downstream_task_id_to_run_once',
skip_task_id='dummy_task_id_used_to_skip_other_task',
)
runonce.set_downstream(downstream_to_run_once)
runonce.set_downstream(dummy_task_used_to_skip_other_task)
@plieningerweb
plieningerweb / runoncebranchoperator.py
Last active December 28, 2018 14:18
Airflow RunOnceBranchOperator
from airflow.operators.python_operator import PythonOperator
from airflow.utils.db import provide_session
class RunOnceBranchOperator(PythonOperator, SkipMixin):
def __init__(
self,
run_once_task_id=None,
skip_task_id=None,
*args, **kwargs):
kwargs['python_callable'] = lambda x: x
@plieningerweb
plieningerweb / zenbook-ux310-ua-ubuntu-16-10.md
Last active February 3, 2021 16:00
Ubuntu 16.10 Linux on Asus ZenBook UX310UA

Ubuntu 16.10 on Asus ZenBook UX310UA

What is working:

  • Keyboard
    • Backlight control
    • Screenlight contro
    • Volumne, Display on/off, Touchbad
    • Seems like everything is working
  • Trackpad is ok
  • Wireless
@plieningerweb
plieningerweb / README.md
Created February 1, 2017 15:16
USB OTG Ethernet Redmi3

USB Ethernet adapter on Redmi 3

Tested Ethernet Adapter:

main@main:~$ lsusb
Bus 002 Device 053: ID 0b95:772b ASIX Electronics Corp. AX88772B

It is not recognized in Redmi 3

@plieningerweb
plieningerweb / Readme.md
Created January 27, 2017 15:02
Ubuntu Linux - Intel fifo irq - black screen flickering

Ubuntu Linux - Intel fifo irq - black screen flickering

The issue: In Ubuntu 16.04 the laptop screen and also on external screen will get black for several seconds, until it is on again. This black screen flickering happens about once a minute and is really annoying.

Checking dmesg or /var/log/messages, the following error can be found:

[drm:intel_cpu_fifo_underrun_irq_handler [i915]] *error* cpu pipe a fifo underrun

or 
@plieningerweb
plieningerweb / Autossh-sytemd.md
Created November 29, 2016 15:50
Autossh Systemd

copy into /etc/systemd/system/autossh-ssh.service

[Unit]
Description=Reverse tunnel for ssh
After=network.target

[Service]
User=pi
Environment="AUTOSSH_GATETIME=0"
ExecStart=/usr/bin/autossh -M 0 -oExitOnForwardFailure=yes -oStrictHostKeyChecking=no -oServerAliveInterval=30 -oServerAliveCountMax=2 -R {{autossh_reverse_remote_port}}:localhost:22 -N {{autossh_remote_host}}
@plieningerweb
plieningerweb / README.md
Last active November 25, 2016 10:51
Write to UART / Serial Console in Carambola2 from ssh

Carambola2 - UART / Serial

Connect serial to a usb port and open it

Connect to Wifi and use ssh to connect over wifi:

ssh root@192.168.17.1 (password root)