Skip to content

Instantly share code, notes, and snippets.

View bootDataProvider.js
import { stringify } from "query-string";
import { fetchUtils } from "ra-core";
const bootDataProvider = (
httpClient = fetchUtils.fetchJson,
countHeader = "X-Total-Count"
) => ({
getList: (resource, params) => {
const { page, perPage } = params.pagination;
deluan / pm-auctions.20s.rb
Created Oct 25, 2019
Pulsed Media Auction watcher for BitBar
View pm-auctions.20s.rb
#!/usr/bin/env ruby
require 'open-uri'
require 'date'
require 'json'
deluan /
Last active Jun 8, 2019
My ZSH/Bash custom functions
alias vauth='vault login --method=github'
alias pstree='pstree -g 2'
alias l='ls -lah'
alias la='ls -lAh'
alias ll='ls -lh'
alias ls='ls -G'
alias lsa='ls -lah'
alias grep='grep --color=auto --exclude-dir={.bzr,CVS,.git,.hg,.svn}'
alias ddc='docker-compose'
deluan /
Last active Oct 6, 2016
README for Checkman Simulator

Checkman Simulator

This plugin simulates Checkman functionality, allowing you to use all its plugins and configuring checks in external files. It downloads Checkman's plugins on demand, so you don't need to install Checkman itself.

Available check plugins: HTTP, GoCD, Concourse, Jenkins, Travis, Semaphore, Codeship, CircleCI, Airbrake, GitHub, Pivotal Tracker, TDDium and SnapCI.

To learn more about Checkman and its existing plugins, see:

deluan / dependency_pom.xml
Last active Oct 5, 2016
Adding shiro-faces taglib to your maven project
View dependency_pom.xml
<!-- See the latest version on the project's homepage -->
deluan / crypt.go
Created Sep 9, 2016
Testing bcrypt in GoLang
View crypt.go
///usr/bin/env go run "$0" "$@"; exit;
package main
import (
deluan / mc.go
Created Sep 8, 2016
Test for multiconfig on Go 1.7
View mc.go
///usr/bin/env go run "$0" "$@"; exit;
package main
import ""
type Server struct {
Name string `required:"true"`
Port int `default:"6060"`
Enabled bool
deluan /
Created Mar 7, 2016
Script to transform .itc files into images (JPG or PNG)
# Script to transfort .itc files into images (JPG or PNG)
# .itc files are located in ~/Music/iTunes/Album Artwork
# This script uses (/!\ needs ) ImageMagick's convert, hexdump, printf and dd.
# This script might be a little slow, You might want to look at Simon Kennedy's work at
AlbumArtwork="${HOME}/Music/iTunes/Album Artwork"
deluan / subsonic_upgrade.yml
Last active Feb 20, 2016
Upgrade Subsonic on Mac OS X
View subsonic_upgrade.yml
- hosts: all
gather_facts: no
- release_tag: "{{latest_release.stdout}}"
- repository: EugeneKay/subsonic
- war_name: subsonic-{{release_tag}}.war
- release_url:{{repository}}/releases/download/{{release_tag}}/{{war_name}}
- app_path: /Applications/
- war_path: "{{app_path}}/Contents/Resources"
View robot.js
var Robot = function(robot) {
// var robot = ev.robot;
Robot.prototype.onIdle = function(ev) {
var robot = ev.robot;