Use this in your clock.rb
file:
require 'clockwork'
include ClockHelper
module Clockwork
# ...
every 1.day, "do_something", at: steps(every: 3.hours, aligned_at: '01:32') do
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
from __future__ import absolute_import, print_function | |
import logging | |
import puka | |
logger = logging.getLogger("provoke_rabbitmq_queue_crash_with_deadlettering") | |
logger.setLevel(logging.DEBUG) | |
logger.addHandler(logging.StreamHandler()) |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> | |
<meta name="description" content=""> | |
<meta name="viewport" content="width=device-width"> | |
<title>Flot Sparklines for Polymer</title> | |
<link rel="stylesheet" href="bower_components/semantic-ui/dist/semantic.min.css"> |
{ | |
"CN": "Another Intermediate CA", | |
"hosts": [ | |
"" | |
], | |
"key": { | |
"algo": "ecdsa", | |
"size": 384 | |
}, | |
"names": [ |
APP_ABI := armeabi-v7a arm64-v8a | |
APP_OPTIM := release | |
APP_BUILD_SCRIPT := $(NDK_PROJECT_PATH)/Android.mk | |
APP_PLATFORM := android-29 |
#!/bin/sh | |
# | |
# Author: Riyad Preukschas <[email protected]> | |
# License: Mozilla Public License 2.0 | |
# | |
# Extract audio from any file ffmpeg can play (without converting or reencoding!). | |
if [[ $# -ne 3 ]]; then | |
echo "Error: wrong number of arguments" |
#!/usr/bin/env ruby | |
# | |
# Cleanup Sidekiq uniquejobs in Redis | |
# see https://github.com/mhenrixon/sidekiq-unique-jobs/issues/195 | |
# | |
require 'bundler/setup' | |
require 'sidekiq/api' | |
DRY_RUN = true |
Use this in your clock.rb
file:
require 'clockwork'
include ClockHelper
module Clockwork
# ...
every 1.day, "do_something", at: steps(every: 3.hours, aligned_at: '01:32') do
#!/bin/bash | |
# | |
# Author: Riyad Preukschas <[email protected]> | |
# License: Mozilla Public License 2.0 | |
# | |
# Cuts out a part of a media file within the given time stamps (without converting or reencoding!). | |
set -o nounset # complain when reading unset vars | |
# set -o xtrace # print every command as it's executed |
#!/usr/bin/python3 | |
# | |
# Author: Riyad Preukschas <[email protected]> | |
# License: Mozilla Public License 2.0 | |
# | |
# Scaffolding for fetching and parsing emails from IMAP | |
import imaplib | |
import email.parser | |
import email.policy |
#!/bin/bash | |
# | |
# Author: Riyad Preukschas <[email protected]> | |
# License: Mozilla Public License 2.0 | |
# | |
# Run a zrepl job and block/wait until it's finished (with progress indication). | |
# | |
# Note: this is basically a hack until there's a properly integrated solution for this. | |
# see https://github.com/zrepl/zrepl/issues/427 |