Skip to content

Instantly share code, notes, and snippets.

@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 / 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
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)
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),
)
@plieningerweb
plieningerweb / gist:3dc29ed212e2a50841d6fbd614e6f01f
Last active April 4, 2022 07:06
Install zerotier on GL.iNet GL-MT300N-V2 Mini Travel Router
@plieningerweb
plieningerweb / Readme.md
Created October 29, 2019 15:29
openshot edit and cut instagram video