As an introduction into Luigi, I am following this tutorial with some modifications, e.g. installation using conda.
The problems and solutions described in the examples below have led to the development of sciluigi,
| # 0 is too far from ` ;) | |
| set -g base-index 1 | |
| # Automatically set window title | |
| set-window-option -g automatic-rename on | |
| set-option -g set-titles on | |
| #set -g default-terminal screen-256color | |
| set -g status-keys vi | |
| set -g history-limit 10000 |
| git ls-tree -r --name-only HEAD | while read filename; do | |
| echo "$(git log -1 --format="%at | %h | %an | %ad |" -- $filename) $filename" | |
| done |
| #import <Foundation/Foundation.h> | |
| #import <Cocoa/Cocoa.h> | |
| #import <unistd.h> | |
| BOOL copy_to_clipboard(NSString *path) | |
| { | |
| // http://stackoverflow.com/questions/2681630/how-to-read-png-image-to-nsimage | |
| NSImage * image; | |
| if([path isEqualToString:@"-"]) | |
| { | |
| // http://caiustheory.com/read-standard-input-using-objective-c |
| """dbox_sync.py | |
| One-way sync of local directory to Dropbox using Dropbox API V2 and python3. | |
| Dependencies: | |
| - dropbox (`pip3 install dropbox`) | |
| Minimal modifications from: | |
| https://github.com/dropbox/dropbox-sdk-python/blob/master/example/updown.py |
| # Use the todoist API to get tasks from the current day | |
| import todoist | |
| from datetime import datetime | |
| # Log user in; switch to OAuth eventually... | |
| api = todoist.TodoistAPI() | |
| def get_todays_tasks(email, password): |
As an introduction into Luigi, I am following this tutorial with some modifications, e.g. installation using conda.
The problems and solutions described in the examples below have led to the development of sciluigi,
| How to manually setup flake8 as PyCharm external tool | |
| File / Settings / Tools / External Tools / Add | |
| Name: Flake8 | |
| Program: $PyInterpreterDirectory$/python | |
| Parameters: -m flake8 --max-complexity 10 --ignore E501 $FilePath$ | |
| Working directory: $ProjectFileDir$ | |
| Output Filters / Add | |
| Name: Filter 1 |
| #!/usr/bin/env python | |
| # vim: set fileencoding=utf-8 | |
| # | |
| # USAGE: | |
| # Back up your tmux old config, run the script and redirect stdout to your conf | |
| # file. Example: | |
| # | |
| # $ cp ~/.tmux.conf ~/.tmux.conf.orig | |
| # $ python ./tmux-migrate-options.py ~/.tmux.conf.orig > ~/.tmux.conf | |
| # |
| #!/bin/bash | |
| echo "Restarting bluetooth service..." | |
| blueutil -p 0 && sleep 1 && blueutil -p 1 | |
| echo "Waiting bluetooth service to be restored..." | |
| until blueutil -p | grep "1" >/dev/null; do sleep 1; done | |
| echo "Searching for devices not connected..." | |
| devices=($(blueutil --paired | grep "not connected" | awk -F '[ ,]' '{print $2}')) |
As an introduction into Luigi, I am following this tutorial with some modifications, e.g. installation using conda.
The problems and solutions described in the examples below have led to the development of sciluigi,