Skip to content

Instantly share code, notes, and snippets.

View punkrats's full-sized avatar

Andre Pankratz punkrats

View GitHub Profile
@punkrats
punkrats / vertical-column-titles.html
Last active January 10, 2021 14:32
Table with vertical column titles
<!DOCTYPE html>
<html>
<head>
<title>Table with vertical column titles</title>
<style>
body {
font-family: Arial;
}
.features {
display: table;
@punkrats
punkrats / bakrm.rb
Created October 2, 2019 11:24
Cleans up backup files while keeping hourly, daily, weekly and monthly backups.
#!/usr/bin/env ruby
# Cleans up backup files transferred to a remote directory.
# Place this file in the root of your backup account and it will clean up all
# subdirectories. You may prevent or customize action by a config file.
class Directory
# The script will keep 24 hourly backups by default. So up to 24 files will
# be kept that get stored on the server within one day.
@punkrats
punkrats / cutter.rb
Last active February 15, 2017 15:32
#!/usr/bin/env ruby
# This is a quick cutting and concatenation script for recorded video files.
# It will take a list of files with instructions on how to extract parts of
# the recorded files.
#
# The script was built initially to work with MTS files recorded by a Sony
# video camera but it should work with any MP4 video.
#
# Usage with mapping file:
#!/usr/bin/env ruby
# This is a quick cutting script for Eurucamp 2014 talks. It will take a list
# of talks with instructions on how to extract each talk from the recorded
# MTS files.
#
# Usage:
#
# ruby eurucamp_cutter.rb map.txt
#
#/bin/bash
cd ~
mkdir -p sources
cd sources
wget http://mod-auth-token.googlecode.com/files/mod_auth_token-1.0.6-beta.tar.gz
tar -zxvpf mod_auth_token-1.0.6-beta.tar.gz
cd mod_auth_token
apt-get install automake apache2-threaded-dev
```bash
test
```
@punkrats
punkrats / gist:1073722
Created July 9, 2011 16:35
Highlighting

Headline

With link to Vidibus, an open source toolset for building distributed (video) applications.

Syntax highlighting

This is inline gem "vidibus-validate_uri" code.

This is a code block:

git snippets

Move current changes into a separate branch

# 1. Create a copy of master (or whatever branch you're working on)
git branch experimental master
git checkout experimental

# 2. Find SHA of revision to use as branch root with gitx or `git log`
@punkrats
punkrats / LICENSE.txt
Created May 19, 2011 19:02 — forked from 140bytes/LICENSE.txt
140byt.es -- Click ↑↑ fork ↑↑ to play!
Copyright (c) 2011 YOUR_NAME_HERE, YOUR_URL_HERE
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
@punkrats
punkrats / devise.de.yml
Created May 7, 2011 18:38
Informal German localization for Devise
de:
errors:
messages:
expired: "ist abgelaufen, bitte neu anfordern"
not_found: "wurde nicht gefunden"
already_confirmed: "wurde bereits bestätigt, bitte melde Dich an"
not_locked: "war nicht gesperrt"
not_saved:
one: "Konnte %{resource} nicht speichern: ein Fehler."
other: "Konnte %{resource} nicht speichern: %{count} Fehler."