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 -*- | |
import bottle | |
import logging | |
logger = logging.getLogger(__name__) | |
logger.addHandler(logging.StreamHandler()) | |
logger.setLevel(logging.DEBUG) |
#!/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()) |
source 'http://rubygems.org' | |
gem 'rails', '3.0.3' | |
... | |
gem 'declarative_authorization' | |
group :development do | |
# for the graphical overview over your rules | |
# available at /authorization_rules |
#!/bin/bash | |
for f in `grep -rl Gitlab.config app config features lib spec` | |
do | |
for c in `cat gitlab_config_keys.list` | |
do | |
mv $f $f.bak | |
perl -pe $c $f.bak > $f | |
rm -f $f.bak | |
done |
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
<!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"> |
#!/usr/bin/env ruby -rubygems | |
# | |
# Author: Riyad Preukschas <riyad@informatik.uni-bremen.de> | |
# License: Mozilla Public License 2.0 | |
# | |
# Transcode any file ffmpeg can play to mp3. | |
require 'optparse' | |
require 'shellwords' |
#!/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 |
#!/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" |
# -*- coding: utf-8 -*- | |
# | |
# Author: Riyad Preukschas <riyad@informatik.uni-bremen.de> | |
# License: Mozilla Public License 2.0 | |
# | |
from collections import defaultdict | |
class MagicDict(defaultdict): |