Skip to content

Instantly share code, notes, and snippets.

@deluan
deluan / README.md
Last active October 6, 2016 16:33
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
deluan / mc.go
Created September 8, 2016 22:08
Test for multiconfig on Go 1.7
///usr/bin/env go run "$0" "$@"; exit;
package main
import "github.com/koding/multiconfig"
type Server struct {
Name string `required:"true"`
Port int `default:"6060"`
Enabled bool
@deluan
deluan / crypt.go
Created September 9, 2016 12:33
Testing bcrypt in GoLang
///usr/bin/env go run "$0" "$@"; exit;
package main
import (
"fmt"
"os"
"golang.org/x/crypto/bcrypt"
)
@deluan
deluan / alias.sh
Last active June 8, 2019 16:15
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
deluan / pm-auctions.20s.rb
Created October 25, 2019 14:31
Pulsed Media Auction watcher for BitBar
#!/usr/bin/env ruby
require 'open-uri'
require 'date'
require 'json'
AUCTION_URL="http://pulsedmedia.com/seedbox-auctions.php"
PRODUCT_INFO_URL="http://pulsedmedia.com/clients/widgets/productsinfo.php"
BUY_URL="http://pulsedmedia.com/clients/cart.php?a=add&pid=210&billingcycle=monthly"
import { stringify } from "query-string";
import { fetchUtils } from "ra-core";
const bootDataProvider = (
apiUrl,
httpClient = fetchUtils.fetchJson,
countHeader = "X-Total-Count"
) => ({
getList: (resource, params) => {
const { page, perPage } = params.pagination;