Collection of startup scripts for headless OpenOffice/LibreOffice soffice listener server
For SysV Generic Startup Script
$ sudo -s
# Adding a User and Assign a System Level Privileges | |
sudo adduser ubuntu | |
sudo adduser ubuntu sudo | |
sudo nano /etc/sudoers | |
# or | |
sudo /usr/sbin/visudo | |
# Then change the following | |
# %sudo ALL=(ALL:ALL) NOPASSWD: ALL |
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Label</key> | |
<string>com.npmjs.mehserve</string> | |
<key>ProgramArguments</key> | |
<array> | |
<string>sh</string> | |
<string>-i</string> |
The primary goal is to swap command and option. | |
The secondary goal is to remap Caps Lock to Control. | |
The tertiary goal is to share modifier keys across keyboards, so you can emacs with two keyboards. | |
The following instructions are good as of 2016-08-24, for OS X El Capitan 10.11.6. | |
Mac OS Sierra broke Seil support; Seil instructs us to consider Karabiner Elements. | |
But when Karabiner Elements swaps command and option, it does it for all keyboards; | |
meaning the native keyboard also gets its command and option swapped, which is bad! |
# Showing the necessary part of adding the logging config to the python path | |
COPY config/log_config.py config/log_config.py | |
COPY config/__init__.py config/__init__.py | |
RUN chown -R airflow: ${AIRFLOW_HOME} | |
ENV PYTHONPATH ${PYTHONPATH}:/usr/lib/python2.7/site-packages/:${AIRFLOW_HOME}/config/ |
""" | |
Code that goes along with the Airflow tutorial located at: | |
https://github.com/airbnb/airflow/blob/master/airflow/example_dags/tutorial.py | |
""" | |
from airflow import DAG | |
from airflow.operators.python_operator import PythonOperator | |
from airflow.operators.generic_transfer import GenericTransfer | |
from airflow.contrib.hooks import FTPHook | |
from airflow.hooks.mysql_hook import MySqlHook |
# Use envFrom to load Secrets and ConfigMaps into environment variables | |
apiVersion: apps/v1beta2 | |
kind: Deployment | |
metadata: | |
name: mans-not-hot | |
labels: | |
app: mans-not-hot | |
spec: | |
replicas: 1 |
""" | |
Copies all keys from the source Redis host to the destination Redis host. | |
Useful to migrate Redis instances where commands like SLAVEOF and MIGRATE are | |
restricted (e.g. on Amazon ElastiCache). | |
The script scans through the keyspace of the given database number and uses | |
a pipeline of DUMP and RESTORE commands to migrate the keys. | |
Requires Redis 2.8.0 or higher. |
To remove a submodule you need to: