Skip to content

Instantly share code, notes, and snippets.

View esecules's full-sized avatar

Eric Secules esecules

View GitHub Profile
@esecules
esecules / 0.README.md
Created January 15, 2020 21:17 — forked from ijokarumawak/0.README.md
NiFi example template, using Wait and Notify with different counter names.

NiFi example template, using Wait and Notify with different counter names

Configurations to note:

  • Notify
    • Release Signal Identifier: ${batch.id}
    • Signal Counter Name: ${filetype}
  • Wait
    • Release Signal Identifier: ${batch.id}
  • Signal Counter Name: blank (to count total)
@esecules
esecules / 0.README.md
Created January 15, 2020 21:17 — forked from ijokarumawak/0.README.md
NiFi example template, using Wait and Notify with different counter names.

NiFi example template, using Wait and Notify with different counter names

Configurations to note:

  • Notify
    • Release Signal Identifier: ${batch.id}
    • Signal Counter Name: ${filetype}
  • Wait
    • Release Signal Identifier: ${batch.id}
  • Signal Counter Name: blank (to count total)
@esecules
esecules / gist:a422849352261c860e5cf1426e65b5bc
Last active September 16, 2016 21:08
imgur sourced wallpaper switcher: full solution
####################################
Scripts Needed
####################################
eric@eric-UX305CA:~$ cat /usr/local/bin/wallpaperSwitcher
#! /bin/bash
PID=$(pgrep gnome-session)
export DBUS_SESSION_BUS_ADDRESS=$(grep -z DBUS_SESSION_BUS_ADDRESS /proc/$PID/environ|cut -d= -f2-)
gsettings set org.gnome.desktop.background picture-uri file://"$(wprand)"
eric@eric-UX305CA:~$ cat /usr/local/bin/wpdownload
#! /usr/bin/python
@esecules
esecules / imgurDownloader.py
Created September 8, 2016 22:09
Download the top 15 images from an imgur subreddit
#! /usr/bin/python
import json
import requests
import os
dest='/home/eric/Pictures/wallpaper/'
subreddit='wallpaper'
baseurl = 'http://imgur.com'
r = requests.get(baseurl + '/r/%s/top.json' % subreddit)
j = json.loads(r.text)