Skip to content

Instantly share code, notes, and snippets.

View kahirul's full-sized avatar
🏠
Working from home

Khairul kahirul

🏠
Working from home
View GitHub Profile
@kahirul
kahirul / parser.rb
Last active November 28, 2018 08:02
Cuk
{
formats: [
{
format: "$date$ $time$ $level$ ip-$ip$ --- \\[$thread$\\] $logger$ : $timestamp$ $method$ $url$ STATUS:$status$",
halt: true
},
{
format: "$date$ $time$ $level$ ip-$ip$ --- \\[$thread$\\] $logger$ : $trace$",
halt: true
}
@kahirul
kahirul / airflow-scheduler.ini
Created June 27, 2020 09:22
cat /etc/systemd/system/airflow-scheduler.service
[Unit]
Description=Airflow scheduler daemon
After=network.target
[Service]
EnvironmentFile=/etc/environment
User=ubuntu
Group=ubuntu
Type=simple
ExecStart=/bin/bash -c 'source /home/ubuntu/.miniconda3/etc/profile.d/conda.sh && conda activate airflow && airflow scheduler'
@kahirul
kahirul / airflow-webserver.ini
Created June 27, 2020 09:23
cat /etc/systemd/system/airflow-webserver.service
[Unit]
Description=Airflow webserver daemon
After=network.target
[Service]
EnvironmentFile=/etc/environment
User=ubuntu
Group=ubuntu
Type=simple
ExecStart=/bin/bash -c 'source /home/ubuntu/.miniconda3/etc/profile.d/conda.sh && conda activate airflow && airflow webserver'
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.