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/sh | |
# | |
# Author: Riyad Preukschas <riyad@informatik.uni-bremen.de> | |
# License: Mozilla Public License 2.0 | |
# SPDX-License-Identifier: MPL-2.0 | |
# | |
# OpenWRT firewall script for configuring NPTv6 (network prefix translation). | |
# | |
# # Installation | |
# |
#!/bin/bash | |
# | |
# Riyad Preukschas <riyad@informatik.uni-bremen.de> | |
# License: Mozilla Public License 2.0 | |
# SPDX-License-Identifier: MPL-2.0 | |
# | |
# List all processes and how much swap they use. | |
# The output format is: "<swap used> : <pid> : <process name>" | |
# | |
# To get the top 10 processes using swap you can run: |
#!/bin/bash | |
# | |
# Author: Riyad Preukschas <riyad@informatik.uni-bremen.de> | |
# 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 |
#!/usr/bin/python3 | |
# | |
# Author: Riyad Preukschas <riyad@informatik.uni-bremen.de> | |
# 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 <riyad@informatik.uni-bremen.de> | |
# 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 |
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 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 |
#!/bin/sh | |
# | |
# Author: Riyad Preukschas <riyad@informatik.uni-bremen.de> | |
# 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" |
APP_ABI := armeabi-v7a arm64-v8a | |
APP_OPTIM := release | |
APP_BUILD_SCRIPT := $(NDK_PROJECT_PATH)/Android.mk | |
APP_PLATFORM := android-29 |
{ | |
"CN": "Another Intermediate CA", | |
"hosts": [ | |
"" | |
], | |
"key": { | |
"algo": "ecdsa", | |
"size": 384 | |
}, | |
"names": [ |